1
Fork 0
satellite/hosts/nixos/iso/default.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2024-08-27 16:28:49 +02:00
# See the wiki for more details https://wiki.nixos.org/wiki/Creating_a_NixOS_live_CD
#
# Can be built with
# nix build .#nixosConfigurations.iso.config.system.build.isoImage
2024-08-27 21:32:51 +02:00
{
modulesPath,
inputs,
pkgs,
...
}:
2024-08-26 17:38:47 +02:00
{
2024-08-27 16:28:49 +02:00
# {{{ Imports
2024-08-26 17:38:47 +02:00
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
2024-08-27 21:32:51 +02:00
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
../../../common
../common/global/wireless
../common/global/services/openssh.nix
2024-08-27 16:28:49 +02:00
../common/users/pilot.nix
../common/optional/desktop
2024-08-27 13:30:17 +02:00
../common/optional/wayland/hyprland.nix
2024-08-27 16:28:49 +02:00
../common/optional/services/kanata.nix
2024-08-26 17:38:47 +02:00
];
2024-08-27 16:28:49 +02:00
# }}}
2024-08-27 13:30:17 +02:00
# {{{ Automount hermes
fileSystems."/hermes" = {
device = "/dev/disk/by-uuid/7FE7-CA68";
neededForBoot = true;
options = [
"nofail"
"x-systemd.automount"
];
};
# }}}
2024-08-27 21:32:51 +02:00
# {{{ Nix config
nix = {
# Flake support and whatnot
package = pkgs.lix;
# Enable flakes and new 'nix' command
settings.experimental-features = [
"nix-command"
"flakes"
];
};
# }}}
2024-08-27 16:28:49 +02:00
# Tell sops-nix to use the hermes keys for decrypting secrets
sops.age.sshKeyPaths = [ "/hermes/secrets/hermes/ssh_host_ed25519_key" ];
2024-08-27 21:32:51 +02:00
# Set username
satellite.pilot.name = "moon";
2024-08-27 16:28:49 +02:00
# Fast but bad compression
# isoImage.squashfsCompression = "gzip -Xcompression-level 1";
2024-08-26 17:38:47 +02:00
}