aboutsummaryrefslogtreecommitdiff
path: root/hosts/wonderland
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/wonderland')
-rw-r--r--hosts/wonderland/home.nix8
-rw-r--r--hosts/wonderland/sops.nix6
2 files changed, 11 insertions, 3 deletions
diff --git a/hosts/wonderland/home.nix b/hosts/wonderland/home.nix
index 1d8f3a7..a970261 100644
--- a/hosts/wonderland/home.nix
+++ b/hosts/wonderland/home.nix
@@ -1,4 +1,9 @@
-{ flakeRoot, inputs, ... }:
+{
+ flakeRoot,
+ inputs,
+ config,
+ ...
+}:
{
home-manager = {
useGlobalPkgs = true;
@@ -6,6 +11,7 @@
sharedModules = [ { imports = [ (flakeRoot + /share/cfg) ]; } ];
extraSpecialArgs = {
inherit inputs;
+ inherit (config) sops;
};
};
diff --git a/hosts/wonderland/sops.nix b/hosts/wonderland/sops.nix
index 8c2268f..9b76b24 100644
--- a/hosts/wonderland/sops.nix
+++ b/hosts/wonderland/sops.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ config, ... }:
{
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
@@ -15,7 +15,9 @@
# "spotify/username" = {
# mode = "444";
# };
- "irc/libera-password" = { };
+ "irc/libera-password" = {
+ owner = config.users.users.alice.name;
+ };
};
}; # end of sops
}