oizys/modules/nix.nix

39 lines
762 B
Nix
Raw Normal View History

2024-01-23 11:51:13 -06:00
{
2024-01-24 17:37:15 -06:00
inputs,
self,
2024-01-23 11:51:13 -06:00
pkgs,
...
}: {
nixpkgs.config.allowUnfree = true;
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
dates = "weekly";
2024-01-23 19:13:42 -06:00
options = "--delete-older-than 7d";
2024-01-23 11:51:13 -06:00
};
2024-01-23 19:13:42 -06:00
2024-01-23 11:51:13 -06:00
environment.systemPackages = with pkgs; [
2024-02-19 12:51:03 -06:00
# nix-output-monitor
2024-01-23 11:51:13 -06:00
alejandra
self.packages.${pkgs.system}.oizys
2024-02-15 16:05:24 -06:00
inputs.pinix.packages.${pkgs.system}.default
2024-01-23 11:51:13 -06:00
];
2024-01-23 12:05:12 -06:00
2024-01-23 19:13:42 -06:00
nix.settings = {
trusted-users = ["@wheel"];
accept-flake-config = true;
substituters = [
"https://daylin.cachix.org"
];
trusted-public-keys = [
"daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k="
];
2024-01-23 12:05:12 -06:00
};
2024-01-23 11:51:13 -06:00
}