chore: reorganise common modules
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
eebd71f003
commit
7230527d95
13 changed files with 109 additions and 124 deletions
20
hosts/common/users/lander/default.nix
Normal file
20
hosts/common/users/lander/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in
|
||||
{
|
||||
users.users.lander = {
|
||||
isNormalUser = true;
|
||||
description = "Lander";
|
||||
extraGroups = ifTheyExist [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
pkgs.home-manager
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.lander = import ../../../../home/lander/${config.networking.hostName}.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue