nixos-configuration/hive/framework/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

{ system, stateVersion, home-manager, ... }:
{
imports = [
./hardware-configuration.nix
./configuration.nix
home-manager.nixosModules.home-manager
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
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"];
};
};
};
in
lib.attrsets.updateManyAttrsByPath [
{
path = [ "home" "packages" ];
update = old: old ++ (with pkgs; [
anki-bin
bitwarden
2023-12-12 21:46:59 +00:00
chromium
firefox
gimp
2023-12-11 14:36:33 +00:00
virt-manager
wezterm
zotero
]);
}
] base;
# 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;
users.users.jrpotter = {
isNormalUser = true;
extraGroups = [
"docker"
"networkmanager"
2023-12-11 14:36:33 +00:00
"libvirtd"
"wheel"
];
};
system.stateVersion = stateVersion;
}