snowflake/modules/nix.nix

62 lines
1.9 KiB
Nix
Raw Normal View History

2024-01-27 19:18:19 -05:00
{inputs, ...}: {
2023-04-23 17:45:37 -04:00
nixpkgs = {
2024-01-17 14:41:08 -05:00
overlays = [
inputs.nur.overlay
2024-01-22 19:15:53 -05:00
inputs.helix.overlays.default
2024-01-17 14:41:08 -05:00
inputs.yazi.overlays.default
2024-02-26 15:01:27 -05:00
inputs.hypridle.overlays.default
inputs.hyprlock.overlays.default
2024-05-13 11:15:21 -04:00
inputs.hyprpaper.overlays.default
2024-02-26 15:01:27 -05:00
inputs.hyprpicker.overlays.default
2024-04-12 21:30:03 -04:00
inputs.atuin.overlays.default
2024-04-26 17:21:43 -04:00
inputs.eww.overlays.default
2024-05-26 16:43:16 -04:00
inputs.wezterm.overlays.default
2024-01-17 14:41:08 -05:00
];
2023-04-22 03:21:08 -04:00
config = {
allowUnfree = true;
2024-05-29 10:30:02 -04:00
permittedInsecurePackages = [];
2023-04-22 03:21:08 -04:00
};
};
programs.nh = {
2023-09-24 17:17:59 -04:00
enable = true;
2023-09-24 22:59:00 -04:00
clean = {
enable = true;
dates = "weekly";
extraArgs = "--keep-since 3d --keep 5";
};
2023-09-24 17:17:59 -04:00
};
2023-04-23 17:45:37 -04:00
nix = {
2024-05-13 10:18:35 -04:00
channel.enable = false;
2023-04-23 17:45:37 -04:00
settings = {
2023-05-14 10:15:47 -04:00
extra-experimental-features = ["flakes" "nix-command"];
2023-06-19 06:33:46 -04:00
warn-dirty = false;
2023-04-22 03:21:08 -04:00
auto-optimise-store = true;
builders-use-substitutes = true;
keep-outputs = true;
2024-05-04 22:05:38 -04:00
keep-derivations = true;
2023-05-14 10:15:47 -04:00
allowed-users = ["@wheel"];
2023-04-26 21:21:46 -04:00
trusted-users = ["root" "@wheel"];
2023-04-22 03:21:08 -04:00
substituters = [
2024-05-04 22:05:38 -04:00
"https://cache.nixos.org?priority=10"
2024-01-22 02:51:56 -05:00
"https://cache.flake.sh/kyasshu"
2023-04-23 17:45:37 -04:00
"https://hyprland.cachix.org"
2023-11-15 02:00:50 -05:00
"https://nix-gaming.cachix.org"
2023-11-15 05:46:47 -05:00
"https://anyrun.cachix.org"
2023-11-30 22:28:42 -05:00
"https://viperml.cachix.org"
2024-01-22 02:51:56 -05:00
"https://nix-community.cachix.org"
2023-04-22 03:21:08 -04:00
];
trusted-public-keys = [
2024-05-04 22:05:38 -04:00
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
2024-01-22 02:51:56 -05:00
"kyasshu:g1heIgCgG7M4San6nRsz/omcVQ1GTc7+zKKm3L9Co7o="
2023-04-23 17:45:37 -04:00
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
2023-11-15 02:00:50 -05:00
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
2023-11-15 05:46:47 -05:00
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
2023-11-30 22:28:42 -05:00
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
2024-01-22 02:51:56 -05:00
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2023-04-22 03:21:08 -04:00
];
2023-04-23 17:45:37 -04:00
};
};
}