programs: add sops
This commit is contained in:
parent
ac51db1c7e
commit
fcf4fc3064
10 changed files with 151 additions and 29 deletions
|
|
@ -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" ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,5 +4,6 @@
|
|||
./yazi.nix
|
||||
./fish.nix
|
||||
./ncspot.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
10
nix/programs/individual_configs/ssh.nix
Normal file
10
nix/programs/individual_configs/ssh.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue