mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
refactor: Use haumea for filesystem-based module system for flake outputs
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
pkgs,
|
||||
agenix,
|
||||
mysecrets,
|
||||
username,
|
||||
myvars,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
@@ -31,7 +31,7 @@
|
||||
};
|
||||
user_readable = {
|
||||
mode = "0500";
|
||||
owner = username;
|
||||
owner = myvars.username;
|
||||
};
|
||||
in {
|
||||
# ---------------------------------------------
|
||||
@@ -128,7 +128,7 @@
|
||||
system.activationScripts.postActivation.text = ''
|
||||
${pkgs.nushell}/bin/nu -c '
|
||||
if (ls /etc/agenix/ | length) > 0 {
|
||||
sudo chown ${username} /etc/agenix/*
|
||||
sudo chown ${myvars.username} /etc/agenix/*
|
||||
}
|
||||
'
|
||||
'';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
pkgs,
|
||||
agenix,
|
||||
mysecrets,
|
||||
username,
|
||||
myvars,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
@@ -20,7 +20,7 @@ with lib; let
|
||||
};
|
||||
user_readable = {
|
||||
mode = "0500";
|
||||
owner = username;
|
||||
owner = myvars.username;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
@@ -160,7 +160,7 @@ in {
|
||||
"agenix/ssh-key-romantic" = {
|
||||
source = config.age.secrets."ssh-key-romantic".path;
|
||||
mode = "0600";
|
||||
user = username;
|
||||
user = myvars.username;
|
||||
};
|
||||
|
||||
"agenix/ryan4yin-gpg-subkeys.priv.age" = {
|
||||
|
||||
Reference in New Issue
Block a user