2024-11-10 17:54:08 -05:00
|
|
|
{ inputs, outputs, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
settings = {
|
|
|
|
trusted-users = [ "@wheel" "root" ];
|
2024-11-18 18:15:20 -05:00
|
|
|
experimental-features = lib.mkDefault [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
"pipe-operators"
|
|
|
|
];
|
2024-11-10 17:54:08 -05:00
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 14d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
overlays = [ outputs.overlays.unstable-packages ];
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnfreePredicate = (_: true);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
sudo.enable = lib.mkDefault false;
|
|
|
|
doas = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
extraRules = [{
|
|
|
|
groups = [ "wheel" ];
|
|
|
|
keepEnv = true;
|
|
|
|
persist = true;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
polkit.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-11-21 19:45:33 -05:00
|
|
|
networking = {
|
|
|
|
firewall.enable = true;
|
|
|
|
networkmanager.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-11-10 17:54:08 -05:00
|
|
|
time.timeZone = "America/Detroit";
|
|
|
|
|
2024-11-21 19:45:33 -05:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = inputs.self.outPath;
|
|
|
|
flags = [
|
|
|
|
"--update-input"
|
|
|
|
"nixpkgs"
|
|
|
|
"-L"
|
|
|
|
];
|
|
|
|
dates = "Sat *-*-* 06:00:00";
|
|
|
|
randomizedDelaySec = "45min";
|
|
|
|
allowReboot = true;
|
|
|
|
};
|
|
|
|
|
2024-11-10 17:54:08 -05:00
|
|
|
programs = {
|
|
|
|
git.enable = true;
|
|
|
|
htop.enable = true;
|
|
|
|
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.neovim-unwrapped;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
promptInit = ''
|
|
|
|
PS1="%m%% "
|
|
|
|
'';
|
|
|
|
loginShellInit = ''
|
|
|
|
if command -v motd &> /dev/null; then
|
|
|
|
motd
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
curl
|
|
|
|
fd
|
|
|
|
ripgrep
|
|
|
|
rsync
|
|
|
|
];
|
|
|
|
}
|