2025-10-06 11:56:19 -07:00
|
|
|
{ inputs, outputs, lib, config, pkgs, variables, ... }:
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "25.05";
|
|
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
./modules/index.nix
|
2026-01-16 14:07:36 -08:00
|
|
|
./modules/machines/index.nix
|
2025-10-06 11:56:19 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
|
config = {
|
|
|
|
|
allowUnfree = true;
|
|
|
|
|
allowUnfreePredicate = (_: true);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nix = let
|
|
|
|
|
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gc = { # garbage collection
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
options = "--delete-older-than 14d";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
2026-01-13 12:19:58 -08:00
|
|
|
boot.initrd.luks.devices."luks-ac595b45-1286-49af-9945-1fd203e3c281".device = "/dev/disk/by-uuid/ac595b45-1286-49af-9945-1fd203e3c281";
|
|
|
|
|
|
|
|
|
|
|
2025-10-06 11:56:19 -07:00
|
|
|
users.users = {
|
|
|
|
|
${variables.username} = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "wireshark" ];
|
2025-10-06 12:21:20 -07:00
|
|
|
shell = pkgs.bash;
|
2025-10-06 11:56:19 -07:00
|
|
|
description= "${variables.userDescription}";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|