system/users/jan/default.nix

40 lines
1,020 B
Nix
Raw Normal View History

2022-10-08 22:45:35 +03:00
{ config, pkgs, lib, inputs, fontSize ? null, ... }:
2022-10-10 07:35:00 +03:00
let secrets = import ./secrets.nix; in
2022-10-08 22:45:35 +03:00
{
2022-10-09 21:25:07 +03:00
nixpkgs.overlays = lib.mkAfter ((import ../../overlays) ++ [
2022-10-08 22:45:35 +03:00
inputs.wired.overlays.default
inputs.myneovim.overlays.default
inputs.vnetod.overlay
inputs.nil.overlays.default
2022-10-09 21:25:07 +03:00
]);
2022-10-08 22:45:35 +03:00
users.users.jan = {
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo for the user.
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
(lib.mkIf config.virtualisation.docker.enable "docker")
2022-10-08 22:45:35 +03:00
];
shell = pkgs.zsh;
2022-10-10 07:35:00 +03:00
inherit (secrets) initialHashedPassword;
2022-10-08 22:45:35 +03:00
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jan = { lib, ... }: {
imports = [
inputs.wired.homeManagerModules.default
./home.nix
];
progs.alacritty.fontSize = lib.mkIf (fontSize != null) fontSize;
home.stateVersion = config.system.stateVersion;
};
};
2022-10-09 21:25:07 +03:00
nix.settings.trusted-users = lib.mkAfter [ "jan" ];
2022-10-08 22:45:35 +03:00
}