flocon/modules/nix/core/users.nix
Anthony Rodriguez 99b6b41de3
treewide: migrate config/system/core to modules
Moved everything from core into modules. I want to get all the NixOS
stuff moved first, and do home-manager after. I used the different
profiles to disable configuration that might break my server, as it has
its own configuration already. This will need to be refactored later, as
I want to ultimately only use the local module system.
2025-01-14 12:01:33 +01:00

19 lines
372 B
Nix

{
lib,
config,
...
}: {
config = lib.mkIf (!config.local.profiles.server.enable) {
users.users.${config.local.systemVars.username} = {
isNormalUser = true;
description = config.local.homeVars.fullName or "User";
extraGroups = [
"networkmanager"
"audio"
"video"
"wheel"
"plugdev"
];
};
};
}