dotfiles/configuration.nix

47 lines
1,007 B
Nix
Raw Normal View History

{ inputs, outputs, lib, config, pkgs, variables, ... }:
{
system.stateVersion = "25.05";
imports = [
./modules/index.nix
./modules/machines/index.nix
];
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";
users.users = {
${variables.username} = {
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "wireshark" ];
shell = pkgs.bash;
description= "${variables.userDescription}";
};
};
}