Add live ISO
This commit is contained in:
parent
9fc91bf87b
commit
4085835b01
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Ignore ISO builds and whatever
|
||||
result/
|
||||
result
|
11
flake.nix
11
flake.nix
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
39
hosts/fruesos-live/default.nix
Normal file
39
hosts/fruesos-live/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue