Add sops-nix
This commit is contained in:
parent
b2079ab04d
commit
2a8f0b0564
2 changed files with 7 additions and 2 deletions
|
|
@ -8,9 +8,13 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.11";
|
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.11";
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, ... }@inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, sops-nix, ... }@inputs:
|
||||||
let
|
let
|
||||||
hosts = import ./hosts.nix inputs;
|
hosts = import ./hosts.nix inputs;
|
||||||
helper = import ./helper.nix inputs;
|
helper = import ./helper.nix inputs;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, ... }:
|
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, sops-nix, ... }:
|
||||||
let
|
let
|
||||||
# Set of environment specific modules
|
# Set of environment specific modules
|
||||||
environments = {
|
environments = {
|
||||||
|
|
@ -22,6 +22,7 @@ let
|
||||||
modules = [
|
modules = [
|
||||||
./config/common
|
./config/common
|
||||||
./config/hosts/${name}
|
./config/hosts/${name}
|
||||||
|
sops-nix.nixosModules.sops
|
||||||
] ++ (if environment != "" then environments.${environment} else []);
|
] ++ (if environment != "" then environments.${environment} else []);
|
||||||
}) hosts;
|
}) hosts;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue