parent
82b9cfae5e
commit
724594d19a
22
flake.nix
22
flake.nix
|
@ -37,7 +37,12 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
userSecret = path: {
|
||||||
|
file = path;
|
||||||
|
owner = username;
|
||||||
|
};
|
||||||
|
in {
|
||||||
config = {
|
config = {
|
||||||
nixpkgs.overlays = [overlays];
|
nixpkgs.overlays = [overlays];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -49,18 +54,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
ssh-config = {
|
ssh-config = userSecret ./secrets/shared/ssh-config.age;
|
||||||
file = ./secrets/shared/ssh-config.age;
|
ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age;
|
||||||
owner = username;
|
spotify-pw = userSecret ./secrets/shared/spotify-pw.age;
|
||||||
};
|
|
||||||
ssh-config-work = {
|
|
||||||
file = ./secrets/shared/ssh-config-work.age;
|
|
||||||
owner = username;
|
|
||||||
};
|
|
||||||
spotify-pw = {
|
|
||||||
file = ./secrets/shared/spotify-pw.age;
|
|
||||||
owner = username;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue