nixos-config/hosts/common.nix

35 lines
816 B
Nix
Raw Normal View History

2024-12-23 11:59:13 -05:00
{ pkgs, ... }:
2024-12-19 02:32:58 -05:00
{
2024-12-13 22:26:27 -05:00
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
flake-registry = "";
};
channel.enable = false;
optimise = {
automatic = true;
2024-12-19 02:32:58 -05:00
dates = [ "03:45" ];
2024-12-13 22:26:27 -05:00
};
gc = {
automatic = true;
dates = "19:00";
persistent = true;
2024-12-23 17:18:18 -05:00
options = "--delete-older-than 14d";
2024-12-13 22:26:27 -05:00
};
};
time.timeZone = "America/Toronto";
2024-12-16 20:36:32 -05:00
networking.firewall.logRefusedConnections = false;
2024-12-22 21:07:38 -05:00
# this is true by default and mutually exclusive with
# programs.nix-index
programs.command-not-found.enable = false;
2024-12-25 00:07:33 -05:00
programs.nix-index.enable = false;
2024-12-22 21:07:38 -05:00
2024-12-25 04:58:40 +00:00
users.users.yt.shell = pkgs.zsh;
programs.zsh.enable = true;
# needed for zsh.enableCompletion to work
environment.pathsToLink = [ "/share/zsh" ];
2024-12-13 22:26:27 -05:00
}