mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-29 20:27:07 +02:00
fix: agenix on nix-darwin
This commit is contained in:
@@ -25,19 +25,25 @@
|
||||
# smb-credentials is referenced in /etc/fstab, by ../hosts/ai/cifs-mount.nix
|
||||
age.secrets."smb-credentials" = {
|
||||
file = "${mysecrets}/smb-credentials.age";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
"wg-business.conf" = {
|
||||
file = "${mysecrets}/wg-business.conf.age";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
# alias-for-work
|
||||
"alias-for-work.nushell" = {
|
||||
file = "${mysecrets}/alias-for-work.nushell.age";
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
"alias-for-work.bash" = {
|
||||
file = "${mysecrets}/alias-for-work.bash.age";
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -52,11 +58,11 @@
|
||||
# So we need to make then readable by the user
|
||||
"agenix/alias-for-work.nushell" = {
|
||||
source = config.age.secrets."alias-for-work.nushell".path;
|
||||
mode = "0644";
|
||||
mode = "0644"; # both the original file and the symlink should be readable and executable by the user
|
||||
};
|
||||
"agenix/alias-for-work.bash" = {
|
||||
source = config.age.secrets."alias-for-work.bash".path;
|
||||
mode = "0644";
|
||||
mode = "0644"; # both the original file and the symlink should be readable and executable by the user
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user