aboutsummaryrefslogtreecommitdiff
path: root/hosts/underworld
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-09-12 19:15:09 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-09-15 05:55:39 +0200
commitbf375e2eb4af03ac1ebfd56e1a1b5d708a537628 (patch)
tree1b473abc159d8a560e4d44d54cd80911fa8b29e5 /hosts/underworld
parent684d7e3fe4be707b606dfec75e5164b7c406e6a8 (diff)
Fix sops config
Diffstat (limited to 'hosts/underworld')
-rw-r--r--hosts/underworld/default.nix1
-rw-r--r--hosts/underworld/home.nix13
-rw-r--r--hosts/underworld/sops.nix12
3 files changed, 24 insertions, 2 deletions
diff --git a/hosts/underworld/default.nix b/hosts/underworld/default.nix
index a271765..7aaeea8 100644
--- a/hosts/underworld/default.nix
+++ b/hosts/underworld/default.nix
@@ -11,6 +11,7 @@
./disko.nix
./home.nix
+ ./sops.nix
(flakeRoot + /share/system/client-common.nix)
#(flakeRoot + /share/system/spotifyd.nix)
{
diff --git a/hosts/underworld/home.nix b/hosts/underworld/home.nix
index bf652d0..f43148b 100644
--- a/hosts/underworld/home.nix
+++ b/hosts/underworld/home.nix
@@ -1,4 +1,9 @@
-{ flakeRoot, inputs, ... }:
+{
+ flakeRoot,
+ inputs,
+ config,
+ ...
+}:
{
home-manager = {
useGlobalPkgs = true;
@@ -6,11 +11,15 @@
sharedModules = [ { programs.fish.enable = true; } ];
extraSpecialArgs = {
inherit inputs;
+ inherit (config) sops;
};
};
home-manager.users.osiris = {
- imports = [ (flakeRoot + /share/cfg) ];
+ imports = [
+ (flakeRoot + /share/cfg)
+ (flakeRoot + /share/cfg/senpai.nix)
+ ];
custom.hyprdesktop = {
enable = true;
enableGaming = true;
diff --git a/hosts/underworld/sops.nix b/hosts/underworld/sops.nix
new file mode 100644
index 0000000..9c4a211
--- /dev/null
+++ b/hosts/underworld/sops.nix
@@ -0,0 +1,12 @@
+{ config, ... }:
+{
+ sops = {
+ age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
+ defaultSopsFile = ../../secrets/credentials.json;
+ secrets = {
+ "irc/libera-password" = {
+ owner = config.users.users.osiris.name;
+ };
+ };
+ }; # end of sops
+}