Serenity/modules/hosts/install-iso/default.nix
2026-09-28 18:42:34 +10:00

67 lines
1.2 KiB
Nix

{ self, inputs, ... }:
{
# defines the hades specific configuration
flake.nixosConfigurations.installer = inputs.nixpkgs.lib.nixosSystem {
# modules that comprise the host specific configuration
modules = with self.nixosModules; [
# shared system modules
core
#user-options
# host-specific options
installer-configuration
# extra modules to include on host
terminal
zfs-support
virtual-reality
network-proxy
virtualisation
# users to include on host
serenity
];
};
# host module declaration
flake.nixosModules.installer-configuration =
{
pkgs,
lib,
...
}:
{
# other modules to import
imports = [ ];
# set hostname
networking.hostName = "serenityos";
# bootloader settings
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# supported filesystems at boot
boot.supportedFilesystems = [
"vfat"
"ext4"
"ntfs"
];
# specifies x64 uArch
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
};
}