chore: use features in iso

This commit is contained in:
2026-03-27 22:12:19 +01:00
parent 315de3696a
commit baeb10a48e
3 changed files with 7 additions and 25 deletions

View File

@@ -12,6 +12,8 @@ in
nixos = nixos =
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.zsh.enable = true;
users.users.matej = { users.users.matej = {
uid = 1000; uid = 1000;
isNormalUser = true; isNormalUser = true;

View File

@@ -67,6 +67,7 @@ in
# nixos-rebuild build-image --image-variant install-iso --flake .#iso # nixos-rebuild build-image --image-variant install-iso --flake .#iso
iso = mkHost "iso" { iso = mkHost "iso" {
system = "x86_64-linux"; system = "x86_64-linux";
user = "matej";
features = [ features = [
"openssh" "openssh"
]; ];

View File

@@ -1,32 +1,11 @@
{ _: {
userKeys,
...
}:
{
image.modules.iso-installer = { image.modules.iso-installer = {
isoImage.squashfsCompression = "zstd -Xcompression-level 6"; isoImage.squashfsCompression = "zstd -Xcompression-level 6";
}; };
networking.firewall.allowedTCPPorts = [ 22 ]; # live iso: passwordless login and sudo
users.users.matej.initialHashedPassword = "";
users = { security.sudo.wheelNeedsPassword = false;
groups.matej = {
gid = 1000;
};
users.matej = {
group = "matej";
uid = 1000;
isNormalUser = true;
home = "/home/matej";
createHome = true;
password = "burek123";
extraGroups = [
"wheel"
"users"
];
openssh.authorizedKeys.keys = userKeys.sshAuthorizedKeys or [ ];
};
};
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }