allow rundirnum specify

This commit is contained in:
Deepak Mallubhotla 2025-03-07 00:55:39 +00:00
parent d8ed750c8e
commit d85a6f9ca6
Signed by: deepak
GPG Key ID: 8F904A3FC7021497
2 changed files with 9 additions and 5 deletions

View File

@ -185,12 +185,11 @@ in
# It's also possible to use a ssh key, but only when it has no password:
#age.sshKeyPaths = [ "/home/user/path-to-ssh-key" ];
defaultSopsFile = ./secrets.yaml;
# defaultSymlinkPath = "/run/user/1000/secrets";
# defaultSecretsMountPoint = "/run/user/1000/secrets.d";
defaultSymlinkPath = "/run/${specialArgs.rundirnum}/secrets";
defaultSecretsMountPoint = "/run/${specialArgs.rundirnum}/secrets.d";
secrets = {
anthropic_api_key = {
sopsFile = ./secrets.yaml;
path = "${config.sops.defaultSymlinkPath}/anthropic_api_key";
};
hello = {};

View File

@ -16,6 +16,7 @@ in
home-manager.extraSpecialArgs = {
withGUI = true;
gitSigningKey = "976F3357369149AB";
rundirnum = "1000";
};
home-manager.useGlobalPkgs = true;
home-manager.users.deepak = {
@ -38,16 +39,19 @@ in
home-manager.extraSpecialArgs = {
withGUI = false;
gitSigningKey = "8F904A3FC7021497";
rundirnum = "1001";
inherit nixpkgs-unstable;
};
home-manager.useGlobalPkgs = true;
home-manager.users.deepak = {
imports = [
../home/deepak/home.nix
inputs.sops-nix.homeManagerModules.sops
];
};
home-manager.sharedModules = [
inputs.sops-nix.homeManagerModules.sops
];
}
NixOS-WSL-2405.nixosModules.wsl
@ -66,6 +70,7 @@ in
home-manager.extraSpecialArgs = {
withGUI = false;
gitSigningKey = "47831B15427F5A55";
rundirnum = "1000";
inherit nixpkgs-unstable;
};
home-manager.useGlobalPkgs = true;