Settei modules now should be reusable by others. Started migrating legion (home server) over to the new config. Added initial setup for hercules-ci. Updated all flake inputs.
36 lines
777 B
Nix
36 lines
777 B
Nix
{config, ...}: let
|
|
inherit (config.assets) sshKeys;
|
|
in {
|
|
configurations.nixos.legion = {
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware.nix
|
|
# ./disks.nix
|
|
];
|
|
|
|
nixpkgs.system = "x86_64-linux";
|
|
|
|
specialisation = {
|
|
nas.configuration = ./nas;
|
|
};
|
|
|
|
boot = {
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "legion";
|
|
hostId = builtins.substring 0 8 (builtins.readFile ./machine-id);
|
|
networkmanager.enable = true;
|
|
useDHCP = true;
|
|
firewall.trustedInterfaces = ["tailscale0"];
|
|
};
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
};
|
|
}
|