1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

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 = [ imports = [
./uid.nix
./secrets.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. # avoid triggering infinite recursion.
userSecretsName = "user-myuser"; userSecretsName = "user-myuser";
home = { home = {
inherit (config.users.users.${myuser}) uid;
username = config.users.users.${myuser}.name; username = config.users.users.${myuser}.name;
}; };

View file

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