remove unneeded nixpkgs config

pull/50/head
Tudor Roman 2024-01-17 18:51:09 +01:00
parent 6b437e731d
commit e3564dd7b3
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
2 changed files with 3 additions and 13 deletions

View File

@ -91,18 +91,13 @@
nixosConfigurations = let
mkNixOSSystem = name: system: let
modules = [
{
nixpkgs = {
config = self.lib.nixpkgs.defaultConfig;
overlays = self.lib.nixpkgs.mkDefaultOverlays { inherit system; };
};
}
inputs.agenix.nixosModules.default
{
environment.systemPackages = [ inputs.agenix.packages.${system}.default ];
# enable ssh host key generation
services.openssh.enable = true;
}
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
@ -115,6 +110,7 @@
./hosts/${name}
];
in nixpkgs.lib.nixosSystem {
pkgs = self.lib.nixpkgs.mkPkgs { inherit system; };
inherit system modules specialArgs;
};
in {
@ -130,12 +126,6 @@
extraSpecialArgs = specialArgs;
modules = (self.lib.hm-modules) ++ [
{
nixpkgs = {
config = self.lib.nixpkgs.defaultConfig;
overlays = self.lib.nixpkgs.mkDefaultOverlays { inherit system; };
};
}
{
home = {
homeDirectory = "/home/${user}";

View File

@ -8,7 +8,7 @@
(final: prev: {
unstable = import inputs.unstable {
inherit system;
config = self.defaultConfig;
inherit (final) config;
};
})
];