mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
44 lines
956 B
Nix
Executable file
44 lines
956 B
Nix
Executable file
{
|
|
config,
|
|
flake,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
hostname = config.networking.hostName;
|
|
inherit (flake.config.people) user1;
|
|
inherit (flake.config.people.user.${user1}) name;
|
|
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 = ./justfile;
|
|
"./.steam/steam/steam_dev.cfg".source = ../../nixos/modules/steam/steam_dev.cfg;
|
|
};
|
|
sessionVariables = {};
|
|
};
|
|
imports = [
|
|
{home.stateVersion = config.system.stateVersion;}
|
|
(import ./configs/${hostname}.nix {flake = flake;})
|
|
];
|
|
};
|
|
};
|
|
}
|