nextcloud and sops-nix

This commit is contained in:
Tristan 2024-02-22 17:16:38 +00:00
parent a49f3d34ab
commit c32ab6ba1f
10 changed files with 175 additions and 119 deletions

View file

@ -6,7 +6,7 @@
...
}: modules: home-modules:
let
inherit (inputs) home-manager nixpkgs hyprland agenix;
inherit (inputs) home-manager nixpkgs hyprland sops-nix;
in
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
@ -17,7 +17,7 @@ in
modules
++ [
home-manager.nixosModules.home-manager
agenix.nixosModules.default
sops-nix.nixosModules.sops
{
home-manager = {
useGlobalPkgs = true;
@ -33,6 +33,11 @@ in
}
];
};
sops = {
defaultSopsFile = ../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/${user}/.config/sops/age/keys.txt";
};
imports = [
{
options.user = nixpkgs.lib.mkOption {default = user;};