programs: add sops

This commit is contained in:
DashieTM 2024-05-14 20:38:33 +02:00
parent ac51db1c7e
commit fcf4fc3064
10 changed files with 151 additions and 29 deletions

View file

@ -47,6 +47,7 @@ in
neofetch
brave
greetd.regreet
sops
(callPackage
../override/oxinoti.nix
{ })
@ -110,4 +111,16 @@ in
{
FLAKE = "home/dasshie/gits/dotFiles/nix";
};
sops = {
gnupg = {
home = "~/.gnupg";
sshKeyPaths = [ ];
};
defaultSopsFile = ../secrets/secrets.yaml;
secrets.hub = { };
secrets.lab = { };
secrets.dashie = { };
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}

View file

@ -6,6 +6,7 @@ let
inputs.anyrun.homeManagerModules.default
inputs.ironbar.homeManagerModules.default
inputs.nix-flatpak.homeManagerModules.nix-flatpak
inputs.sops-nix.homeManagerModules.sops
];
in
{

View file

@ -4,5 +4,6 @@
./yazi.nix
./fish.nix
./ncspot.nix
./ssh.nix
];
}

View file

@ -0,0 +1,10 @@
{ config, ... }: {
home.file.".ssh/config".text = ''
Host github.com
IdentityFile ${config.sops.secrets.hub.path}
Host gitlab.com
IdentityFile ${config.sops.secrets.lab.path}
Host dashie.org
IdentityFile ${config.sops.secrets.dashie.path}
'';
}