nixos-config/profiles/nix/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2021-07-07 15:44:12 +04:00
{ pkgs, lib, inputs, ... }: {
2021-01-21 22:13:53 +04:00
nix = rec {
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
2021-07-27 17:13:35 +04:00
binaryCaches = [
"https://cache.nixos.org"
];
trustedBinaryCaches = [
2021-07-27 17:13:35 +04:00
"s3://serokell-private-cache?endpoint=s3.eu-central-1.wasabisys.com&profile=serokell-private-cache-wasabi"
];
2021-01-21 22:13:53 +04:00
registry.self.flake = inputs.self;
2021-06-21 22:20:38 +04:00
registry.np.flake = inputs.nixpkgs;
2021-01-21 22:13:53 +04:00
trustedUsers = [ "root" "balsoft" "@wheel" ];
nrBuildUsers = 16;
optimise.automatic = true;
2021-03-11 02:57:37 +04:00
binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
2021-07-27 17:13:35 +04:00
"serokell-1:aIojg2Vxgv7MkzPJoftOO/I8HKX622sT+c0fjnZBLj0="
2021-03-11 02:57:37 +04:00
];
2021-01-21 22:13:53 +04:00
2021-07-07 15:44:12 +04:00
package = inputs.nix.defaultPackage.x86_64-linux.overrideAttrs (oa: {
2021-09-26 12:17:35 +04:00
patches = [ ./nix.patch ./unset-is-macho.patch ] ++ oa.patches or [ ];
2021-07-07 15:44:12 +04:00
# HAHA
doInstallCheck = false;
});
2021-01-21 22:13:53 +04:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2021-03-11 02:57:37 +04:00
requireSignedBinaryCaches = true;
2021-01-21 22:13:53 +04:00
};
2021-06-08 20:35:21 +04:00
2021-06-13 21:59:08 +04:00
persist.state.directories = [ "/home/balsoft/.local/share/nix" ];
2021-06-08 20:35:21 +04:00
2021-01-21 22:13:53 +04:00
environment.etc.nixpkgs.source = inputs.nixpkgs;
2021-06-03 23:37:14 +04:00
environment.etc.self.source = inputs.self;
2021-01-21 22:13:53 +04:00
}