tofu workflow
This commit is contained in:
parent
6972897c46
commit
acc0dac234
26 changed files with 674 additions and 156 deletions
34
hive.nix
34
hive.nix
|
|
@ -4,36 +4,9 @@ inputs @ {
|
|||
sops-nix,
|
||||
simple-nixos-mailserver,
|
||||
# home-manager,
|
||||
overlays,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
specialArgs.flakeInputs = inputs;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
lib,
|
||||
name,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./machines/_default
|
||||
./machines/modules
|
||||
sops-nix.nixosModules.sops
|
||||
# home-manager.nixosModules.home-manager
|
||||
];
|
||||
nixpkgs = {
|
||||
inherit overlays;
|
||||
system = lib.mkDefault "x86_64-linux";
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
deployment.tags = [config.nixpkgs.system name];
|
||||
};
|
||||
|
||||
sandbox = {name, ...}: {
|
||||
imports = [./machines/${name}/definition.nix];
|
||||
deployment.tags = ["sandbox"];
|
||||
|
|
@ -56,4 +29,9 @@ inputs @ {
|
|||
];
|
||||
deployment.tags = ["mail"];
|
||||
};
|
||||
|
||||
photos = {name, ...}: {
|
||||
imports = [./machines/${name}/definition.nix];
|
||||
deployment.tags = ["ente"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue