Add live ISO

This commit is contained in:
Pedro Rey Anca 2024-07-12 12:42:50 +02:00
parent 9fc91bf87b
commit 4085835b01
3 changed files with 53 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
# Ignore ISO builds and whatever
result/
result

View file

@ -75,6 +75,17 @@
inherit self inputs username;
};
};
fruesos-live = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
(import ./hosts/fruesos-live)
];
specialArgs = {
host = "fruesos-live";
inherit self inputs username;
};
};
};
};
}

View file

@ -0,0 +1,39 @@
{
pkgs,
username,
lib,
...
}: {
imports = [
./../../modules/core
];
networking.hostName = "fruesos-live";
powerManagement.cpuFreqGovernor = "balanced";
systemd.services.sshd.wantedBy = pkgs.lib.mkForce ["multi-user.target"];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJji4h4bgzgmp7YoRX/8ePN0TcCYRfI2wlrEeZkBQ/y2 personal@peprolinbot.com"
];
# Less compression, but faster build
# isoImage.squashfsCompression = "gzip -Xcompression-level 1";
# You can not use networking.networkmanager with networking.wireless.
networking.wireless.enable = false;
# Automatically log in at the virtual consoles.
services.getty.autologinUser = lib.mkForce "pedro";
# Allow the user to log in as pedro without a password.
users.users.${username}.initialHashedPassword = "";
# Autologin
services.greetd.settings.initial_session = {
command = "Hyprland";
user = "pedro";
};
home-manager.users.${username}.services.nextcloud-client.enable = lib.mkForce false;
}