oizys/modules/nix.nix

46 lines
939 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,
...
2024-05-06 14:32:00 -05:00
}:
{
imports = [ inputs.nix-index-database.nixosModules.nix-index ];
2024-02-20 13:11:57 -06:00
2024-01-23 11:51:13 -06:00
nixpkgs.config.allowUnfree = true;
2024-05-06 14:15:05 -05:00
# nix.package = pkgs.nixVersions.latest;
2024-01-23 11:51:13 -06:00
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-05-03 12:39:28 -05:00
environment.systemPackages = [
pkgs.nixd
pkgs.nixfmt-rfc-style
2024-03-31 16:40:21 -05:00
self.packages.${pkgs.system}.default
2024-01-23 11:51:13 -06:00
];
2024-01-23 12:05:12 -06:00
2024-02-20 13:11:57 -06:00
programs.nix-index-database.comma.enable = true;
# nix-index didn't like this being enabled?
programs.command-not-found.enable = false;
2024-01-23 19:13:42 -06:00
nix.settings = {
2024-05-06 14:32:00 -05:00
trusted-users = [ "@wheel" ];
2024-01-23 19:13:42 -06:00
accept-flake-config = true;
2024-02-27 12:51:16 -06:00
# 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
}