added secrets to both vms.
This commit is contained in:
parent
6ae38b1d2f
commit
3cddd823c1
6 changed files with 40 additions and 13 deletions
|
@ -17,7 +17,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
../../roles/nixos/graphical-vm.nix
|
||||
../../configs/nixos/printing.nix
|
||||
../../configs/nixos/sound.nix
|
||||
../../configs/nixos/networking.nix
|
||||
../../configs/nixos/interactive-networking.nix
|
||||
../../configs/nixos/nfsv2.nix
|
||||
../../configs/nixos/i3
|
||||
../../configs/nixos/common.nix
|
||||
|
|
|
@ -4,17 +4,11 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
secretsDirectory = builtins.toString inputs.nix-secrets;
|
||||
in {
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
}: {
|
||||
imports=[
|
||||
../../configs/nixos/secrets.nix
|
||||
];
|
||||
sops = {
|
||||
defaultSopsFile = "${secretsDirectory}/common.yaml";
|
||||
validateSopsFiles = false;
|
||||
secrets.gv-password={
|
||||
neededForUsers=true;
|
||||
};
|
||||
sops.secrets.gv-password = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue