mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
chore: remove unnecessary uid module
This commit is contained in:
parent
32e9896154
commit
dee73f191d
4 changed files with 0 additions and 22 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./uid.nix
|
||||
./secrets.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
];
|
||||
|
||||
home = {
|
||||
inherit (config.users.users.root) uid;
|
||||
username = config.users.users.root.name;
|
||||
|
||||
packages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue