nixos-configuration/hive/framework/default.nix

62 lines
1.3 KiB
Nix

{ system, 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
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
chromium
firefox
gimp
virt-manager
vlc
wezterm
zotero
]);
}
] base;
# Used to pass non-default parameters to submodules.
extraSpecialArgs = {
inherit system;
stateVersion = "23.05";
};
};
# virt-manager requires dconf to remember settings.
programs.dconf.enable = true;
users.users.jrpotter = {
isNormalUser = true;
extraGroups = [
"docker"
"networkmanager"
"libvirtd"
"wheel"
];
};
system.stateVersion = "23.05";
}