diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
| commit | a45de9e2e216cf73e976192814cdbdbb9164be30 (patch) | |
| tree | 4c2cb500b9d568693597a676ef2b8d27a93284d3 /lib/home.nix | |
| parent | prepare kaworu host for new pc (diff) | |
| download | dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.gz dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.bz2 dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.zip | |
make lib extendable with our additions
Diffstat (limited to 'lib/home.nix')
| -rw-r--r-- | lib/home.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/home.nix b/lib/home.nix new file mode 100644 index 0000000..4b4ec02 --- /dev/null +++ b/lib/home.nix @@ -0,0 +1,66 @@ +{lib}: { + # set of options we want to copy from a system + # config to home manager + mkConfig = config: + { + inherit + (config) + # System Information + hostName + timeZone + stateVersion + # System Modules + battery + bluetooth + fingerprint + network + tpm + nvidia + minimal + # Primary User + user + fullName + email + homePath + dotfilesPath + # Monitors + monitors + # Theme + theme + # Programs + apps + browsers + desktops + gaming + development + virt + autoRun + # Packages + extraPackages + ; + # fix xdg + xdg.portal = { + inherit + (config.xdg.portal) + enable + xdgOpenUsePortal + extraPortals + config + ; + }; + # bring over nix options + nix = lib.mkForce { + inherit + (config.nix) + buildMachines + checkConfig + distributedBuilds + gc + package + registry + settings + ; + }; + } + // config.extraHome; +} |