test first time secret generation
This commit is contained in:
@@ -29,6 +29,7 @@ in
|
|||||||
# I prefer to use json format for the secrets
|
# I prefer to use json format for the secrets
|
||||||
defaultSopsFormat = "json";
|
defaultSopsFormat = "json";
|
||||||
|
|
||||||
|
# Define file and key for each secret
|
||||||
secrets = {
|
secrets = {
|
||||||
"clusterPassword" = {
|
"clusterPassword" = {
|
||||||
sopsFile = ./secrets/build.json;
|
sopsFile = ./secrets/build.json;
|
||||||
@@ -45,12 +46,12 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
|
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
SECRETKEY = "${config.sops.secrets."clusterPassword".path}";
|
LEAKYKEY = builtins.readFile config.sops.secrets."clusterPassword".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
|
||||||
|
|
||||||
# set up DNS with nginx
|
# set up DNS with nginx
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|||||||
Reference in New Issue
Block a user