clean up nix config

This commit is contained in:
Tim Schubert 2021-11-14 13:06:18 +01:00
parent fe0b5710e6
commit 90b549f5a9
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 37 additions and 37 deletions

View file

@ -8,27 +8,6 @@
, scripts
}:
let adapterModule = system: {
nix.nixPath = [
"home-manager=${home-manager}"
"nixpkgs=${nixpkgs}"
"dadada=${self}"
];
nix.registry = {
home-manager.flake = home-manager;
nixpkgs.flake = nixpkgs;
dadada.flake = self;
};
nix.binaryCaches = [
https://cache.nixos.org/
https://nix-community.cachix.org/
];
nix.binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"gorgon:eEE/PToceRh34UnnoFENERhk89dGw5yXOpJ2CUbfL/Q="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
nix.requireSignedBinaryCaches = true;
nix.useSandbox = true;
nixpkgs.overlays = (nixpkgs.lib.attrValues self.overlays) ++ [
(final: prev: { homePage = homePage.defaultPackage.${system}; })
(final: prev: { s = scripts; })
@ -68,12 +47,6 @@ in
(adapterModule system)
./modules/profiles/server.nix
./surgat/configuration.nix
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules = (nixpkgs.lib.attrValues self.hmModules);
home-manager.users.dadada = import ../home/work;
}
];
};
pruflas = nixosSystem rec {