system/users/jan/default.nix
janabhumi 7903732c09
refac: add extra home module...
to configure polybar wifi device manually for each machine
2022-10-12 02:01:16 +03:00

42 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, lib, inputs, extraHomeModule ? null, ... }:
{
nixpkgs.overlays = lib.mkMerge [
(lib.mkBefore (import ../../overlays))
(lib.mkAfter [
inputs.wired.overlays.default
inputs.myneovim.overlays.default
inputs.vnetod.overlay
inputs.nil.overlays.default
])
];
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")
];
shell = pkgs.zsh;
passwordFile = config.age.secrets.users-jan-passfile.path;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jan = { lib, ... }: {
imports = [
inputs.wired.homeManagerModules.default
./home.nix
extraHomeModule
];
home.stateVersion = config.system.stateVersion;
};
};
nix.settings.trusted-users = lib.mkAfter [ "jan" ];
age.secrets.users-jan-passfile.file = ../../secrets/users-jan-passfile.age;
}