2023-12-10 22:15:42 +00:00
|
|
|
{ system, stateVersion, home-manager, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2023-12-11 14:16:47 +00:00
|
|
|
users.jrpotter = args@{ pkgs, lib, ... }:
|
|
|
|
let
|
2023-12-11 14:36:33 +00:00
|
|
|
base = import ../../users/jrpotter args // {
|
|
|
|
dconf.settings = {
|
|
|
|
"org/virt-manager/virt-manager/connections" = {
|
|
|
|
autoconnect = ["qemu:///system"];
|
|
|
|
uris = ["qemu:///system"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-12-11 14:16:47 +00:00
|
|
|
in
|
|
|
|
lib.attrsets.updateManyAttrsByPath [
|
|
|
|
{
|
|
|
|
path = [ "home" "packages" ];
|
|
|
|
update = old: old ++ (with pkgs; [
|
|
|
|
anki-bin
|
|
|
|
bitwarden
|
2023-12-12 21:46:59 +00:00
|
|
|
chromium
|
2023-12-11 14:16:47 +00:00
|
|
|
firefox
|
|
|
|
gimp
|
2023-12-11 14:36:33 +00:00
|
|
|
virt-manager
|
2023-12-11 14:16:47 +00:00
|
|
|
wezterm
|
|
|
|
zotero
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
] base;
|
|
|
|
|
2023-12-10 22:15:42 +00:00
|
|
|
# Used to pass non-default parameters to submodules.
|
|
|
|
extraSpecialArgs = { inherit system stateVersion; };
|
|
|
|
};
|
|
|
|
|
2023-12-11 14:36:33 +00:00
|
|
|
# virt-manager requires dconf to remember settings.
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2023-12-10 22:15:42 +00:00
|
|
|
users.users.jrpotter = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"docker"
|
|
|
|
"networkmanager"
|
2023-12-11 14:36:33 +00:00
|
|
|
"libvirtd"
|
2023-12-10 22:15:42 +00:00
|
|
|
"wheel"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = stateVersion;
|
|
|
|
}
|