summaryrefslogtreecommitdiff
path: root/lib/default.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 13:27:07 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 13:27:07 -0400
commita45de9e2e216cf73e976192814cdbdbb9164be30 (patch)
tree4c2cb500b9d568693597a676ef2b8d27a93284d3 /lib/default.nix
parentprepare kaworu host for new pc (diff)
downloaddotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.gz
dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.bz2
dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.zip
make lib extendable with our additions
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix77
1 files changed, 5 insertions, 72 deletions
diff --git a/lib/default.nix b/lib/default.nix
index dcfb442..2842af4 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,75 +1,8 @@
-{lib, ...} @ inputs: let
- callLibs = file: import file inputs;
- files = callLibs ./files.nix;
+{lib}: let
+ callLibs = file: import file {inherit lib;};
+in {
colors = callLibs ./colors.nix;
+ files = callLibs ./files.nix;
+ home = callLibs ./home.nix;
monitors = callLibs ./monitors.nix;
-in {
- inherit (files) getFiles certs sshKeys gpgKeys;
- inherit (colors) colorToInt colorToHex darkenColor lightenColor mixColor;
- inherit monitors;
-
- # set of options we want to copy from a system
- # config to home manager
- homeConfig = 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;
}