aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-09 01:48:31 +0900
committerOphestra <cat@gensokyo.uk>2025-11-09 01:48:31 +0900
commitb1a1e732388f5681664f7473e58726347f36d657 (patch)
treed1aa548ba35cf327b5da2acc399af3c9b97a7322
parent38e9128a8cb991355f192241975fed02a49533d4 (diff)
nix: update names to reflect new terminology
These are terminology from way early days. Update them now to be less confusing. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--nixos.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/nixos.nix b/nixos.nix
index b23be279..efa659c2 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -68,7 +68,7 @@ in
home-manager =
let
- privPackages = mapAttrs (username: fid: {
+ privPackages = mapAttrs (username: userid: {
home.packages = foldlAttrs (
acc: id: app:
[
@@ -199,15 +199,15 @@ in
++ [
{
type = "bind";
- src = getsubhome fid app.identity;
+ src = getsubhome userid app.identity;
write = true;
ensure = true;
}
];
- username = getsubname fid app.identity;
+ username = getsubname userid app.identity;
inherit (cfg) shell;
- home = getsubhome fid app.identity;
+ home = getsubhome userid app.identity;
path =
if app.path == null then
@@ -310,15 +310,15 @@ in
users =
let
- getuser = fid: aid: {
+ getuser = userid: appid: {
isSystemUser = true;
createHome = true;
- description = "Hakurei subordinate user ${toString aid} (u${toString fid})";
- group = getsubname fid aid;
- home = getsubhome fid aid;
- uid = getsubuid fid aid;
+ description = "Hakurei subordinate user ${toString appid} (u${toString userid})";
+ group = getsubname userid appid;
+ home = getsubhome userid appid;
+ uid = getsubuid userid appid;
};
- getgroup = fid: aid: { gid = getsubuid fid aid; };
+ getgroup = userid: appid: { gid = getsubuid userid appid; };
in
{
users = mkMerge (