summaryrefslogtreecommitdiff
path: root/lib/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/home.nix')
-rw-r--r--lib/home.nix66
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;
+}