nix/nixos/configuration.nix
2023-07-22 05:35:03 -05:00

37 lines
849 B
Nix
Executable file

{ packages, host, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
users.groups.plugdev = {}; # Create plugdev group
networking.hostName = host.hostName;
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
users.users.${host.username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"plugdev"
"video"
];
};
security.pam.services.swaylock = {};
time.timeZone = "America/Chicago";
# Enable flakes and unfree packages
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "00:00";
options = "--delete-older-than 14d";
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "22.11";
}