add sops-nix module by default

This commit is contained in:
emily 2024-05-09 16:41:01 +02:00
parent 0382bb8748
commit 60f1cff5d7
Signed by: emily
GPG key ID: F6F4C66207FCF995
3 changed files with 3 additions and 8 deletions

View file

@ -1,7 +1,4 @@
{ config, inputs, pkgs, ... }: { { config, pkgs, ... }: {
imports = [
inputs.sops-nix.nixosModules.sops
];
sops.secrets."services/forgejo/mailerPassword" = { sops.secrets."services/forgejo/mailerPassword" = {
sopsFile = ../../secrets/services/forgejo.yaml; sopsFile = ../../secrets/services/forgejo.yaml;
owner = "forgejo"; owner = "forgejo";

View file

@ -1,7 +1,4 @@
{ config, inputs, pkgs, ... }: { { config, pkgs, ... }: {
imports = [
inputs.sops-nix.nixosModules.sops
];
sops.secrets."services/vaultwarden/environmentFile" = { sops.secrets."services/vaultwarden/environmentFile" = {
sopsFile = ../../secrets/services/vaultwarden.yaml; sopsFile = ../../secrets/services/vaultwarden.yaml;
owner = "vaultwarden"; owner = "vaultwarden";

View file

@ -28,6 +28,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
../../config/hosts/${hostname}/configuration.nix ../../config/hosts/${hostname}/configuration.nix
inputs.sops-nix.nixosModules.sops
({ ... }: { ({ ... }: {
nixpkgs.overlays = [ self.overlays.kyouma ]; nixpkgs.overlays = [ self.overlays.kyouma ];
nixpkgs.hostPlatform = system; nixpkgs.hostPlatform = system;