container friendly passing of current system

This commit is contained in:
zuckerberg
2021-09-24 14:11:39 -04:00
parent b7f6576d64
commit be2828ee29
4 changed files with 33 additions and 24 deletions

View File

@@ -33,12 +33,13 @@
./common/common.nix
inputs.simple-nixos-mailserver.nixosModule
inputs.agenix.nixosModules.age
{
({ lib, ... }: {
environment.systemPackages = [ inputs.agenix.defaultPackage.${system} ];
# because nixos specialArgs doesn't work for containers... need to pass in inputs a different way
options.inputs = lib.mkOption { default = inputs; };
}
options.currentSystem = lib.mkOption { default = system; };
})
];
# specialArgs = {};
};