chore: remove unnecessary uid module

This commit is contained in:
oddlama 2024-11-13 19:49:09 +01:00
parent 32e9896154
commit dee73f191d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 0 additions and 22 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./uid.nix
./secrets.nix
];
}

View file

@ -1,19 +0,0 @@
{
config,
lib,
...
}: {
options.home.uid = lib.mkOption {
type = lib.types.int;
example = 1000;
description = "The user's uid.";
};
config = {
assertions = [
{
assertion = config.home.uid != "";
message = "UID could not be determined";
}
];
};
}

View file

@ -51,7 +51,6 @@ in
# avoid triggering infinite recursion.
userSecretsName = "user-myuser";
home = {
inherit (config.users.users.${myuser}) uid;
username = config.users.users.${myuser}.name;
};

View file

@ -20,7 +20,6 @@
];
home = {
inherit (config.users.users.root) uid;
username = config.users.users.root.name;
packages = with pkgs; [