mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
55 lines
1 KiB
Nix
Executable file
55 lines
1 KiB
Nix
Executable file
{
|
|
config,
|
|
flake,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (flake) self;
|
|
inherit (flake.config.people) user1;
|
|
inherit (flake.config.machines) devices;
|
|
inherit (flake.config.people.users.${user1}) name;
|
|
hostname = config.networking.hostName;
|
|
in
|
|
{
|
|
users = {
|
|
users.${user1} = {
|
|
description = name;
|
|
isNormalUser = true;
|
|
shell = pkgs.nushell;
|
|
extraGroups = [
|
|
"libvirtd"
|
|
"disk"
|
|
"networkmanager"
|
|
"vboxusers"
|
|
"wheel"
|
|
"adbusers"
|
|
"netdev"
|
|
];
|
|
};
|
|
};
|
|
home-manager.users = {
|
|
${user1} = {
|
|
home = {
|
|
username = user1;
|
|
homeDirectory = "/home/${user1}";
|
|
file = {
|
|
"./justfile" = {
|
|
source = ./files/justfile;
|
|
};
|
|
};
|
|
sessionVariables = { };
|
|
};
|
|
imports = [
|
|
{
|
|
home.stateVersion = config.system.stateVersion;
|
|
}
|
|
{
|
|
imports = [
|
|
self.homeModules."${devices.${hostname}.name}-${user1}"
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|