allow rundirnum specify
This commit is contained in:
parent
d8ed750c8e
commit
d85a6f9ca6
@ -185,12 +185,11 @@ in
|
|||||||
# It's also possible to use a ssh key, but only when it has no password:
|
# It's also possible to use a ssh key, but only when it has no password:
|
||||||
#age.sshKeyPaths = [ "/home/user/path-to-ssh-key" ];
|
#age.sshKeyPaths = [ "/home/user/path-to-ssh-key" ];
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
# defaultSymlinkPath = "/run/user/1000/secrets";
|
defaultSymlinkPath = "/run/${specialArgs.rundirnum}/secrets";
|
||||||
# defaultSecretsMountPoint = "/run/user/1000/secrets.d";
|
defaultSecretsMountPoint = "/run/${specialArgs.rundirnum}/secrets.d";
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
anthropic_api_key = {
|
anthropic_api_key = {
|
||||||
sopsFile = ./secrets.yaml;
|
|
||||||
path = "${config.sops.defaultSymlinkPath}/anthropic_api_key";
|
path = "${config.sops.defaultSymlinkPath}/anthropic_api_key";
|
||||||
};
|
};
|
||||||
hello = {};
|
hello = {};
|
||||||
|
@ -16,6 +16,7 @@ in
|
|||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
withGUI = true;
|
withGUI = true;
|
||||||
gitSigningKey = "976F3357369149AB";
|
gitSigningKey = "976F3357369149AB";
|
||||||
|
rundirnum = "1000";
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.deepak = {
|
home-manager.users.deepak = {
|
||||||
@ -38,15 +39,18 @@ in
|
|||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
withGUI = false;
|
withGUI = false;
|
||||||
gitSigningKey = "8F904A3FC7021497";
|
gitSigningKey = "8F904A3FC7021497";
|
||||||
|
rundirnum = "1001";
|
||||||
inherit nixpkgs-unstable;
|
inherit nixpkgs-unstable;
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.deepak = {
|
home-manager.users.deepak = {
|
||||||
imports = [
|
imports = [
|
||||||
../home/deepak/home.nix
|
../home/deepak/home.nix
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,6 +70,7 @@ in
|
|||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
withGUI = false;
|
withGUI = false;
|
||||||
gitSigningKey = "47831B15427F5A55";
|
gitSigningKey = "47831B15427F5A55";
|
||||||
|
rundirnum = "1000";
|
||||||
inherit nixpkgs-unstable;
|
inherit nixpkgs-unstable;
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user