oizys/modules/nix.nix

29 lines
492 B
Nix

{
input,
pkgs,
...
}: {
imports = [
./styx
];
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";
options = "--delete-older-than 30d";
};
environment.systemPackages = with pkgs; [
nix-output-monitor
alejandra
];
nix.settings = {
trusted-users = ["daylin"];
};
}