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:
Ryan Yin
2024-03-09 01:32:58 +08:00
parent d7738efed2
commit b382999a70
167 changed files with 1570 additions and 955 deletions

View File

@@ -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/*
}
'
'';

View File

@@ -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" = {