2023-12-23 21:07:35 +00:00
|
|
|
{ system, home-manager, ... }:
|
2023-12-10 22:15:42 +00:00
|
|
|
{
|
|
|
|
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-23 21:02:45 +00:00
|
|
|
vlc
|
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.
|
2023-12-23 21:07:35 +00:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit system;
|
|
|
|
stateVersion = "23.05";
|
|
|
|
};
|
2023-12-10 22:15:42 +00:00
|
|
|
};
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-23 21:07:35 +00:00
|
|
|
system.stateVersion = "23.05";
|
2023-12-10 22:15:42 +00:00
|
|
|
}
|