{pkgs, ...}: { # fucking linux vulnerability # enable flakes nix = { # gc = # { # automatic = true; # options = "--delete-older-than 7d"; # } # // ( # if pkgs.stdenv.isDarwin # then { # interval = { # Weekday = 0; # Hour = 20; # Minute = 0; # }; # } # else {dates = "weekly";} # ); # package = pkgs.nixFlakes; extraOptions = '' experimental-features = nix-command flakes ''; settings = { substituters = [ "https://cache-nixos.org" "https://cuda-maintainers.cachix.org" "https://nix-community.cachix.org" "https://nix-gaming.cachix.org" ]; trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ]; keep-outputs = true; keep-derivations = true; trusted-users = ["root" "y"]; }; }; programs.nh = { enable = true; clean.enable = true; clean.extraArgs = "--keep-since 4d --keep 3"; # flake = "/home/user/my-nixos-config"; }; #direnv # programs.direnv.enable = true; }