summaryrefslogtreecommitdiff
path: root/lib/configs.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-17 18:28:42 -0400
committerseth <[email protected]>2023-08-17 18:29:17 -0400
commit820623a5d4781da517f06a54b5ada63609ff97f1 (patch)
treecf596d591eefb74fdab69e7a2268b5c28f25af1f /lib/configs.nix
parente47de8355dca82953a77618af636524feef361dd (diff)
remove lib
i'll probably redo these again one day to make them a lot cleaner
Diffstat (limited to 'lib/configs.nix')
-rw-r--r--lib/configs.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/configs.nix b/lib/configs.nix
deleted file mode 100644
index 1f6975c..0000000
--- a/lib/configs.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-inputs: let
- mkSystem = name: {
- profile,
- modules ? profile.modules,
- system ? profile.system,
- specialArgs ? profile.specialArgs,
- }:
- profile.builder {
- inherit specialArgs system;
- modules =
- ["${inputs.self}/hosts/${name}"]
- ++ (
- if modules == profile.modules
- then modules
- else modules ++ profile.modules
- );
- };
-
- mkHMUser = name: {
- modules ? [],
- pkgs ? import inputs.nixpkgs {system = "x86_64-linux";},
- extraSpecialArgs ? inputs,
- }:
- inputs.home-manager.lib.homeManagerConfiguration {
- inherit pkgs extraSpecialArgs;
- modules =
- [
- {
- programs.home-manager.enable = true;
- }
- ]
- ++ ["${inputs.self}/users/${name}/home.nix"]
- ++ modules;
- };
-in {
- inherit mkHMUser mkSystem;
- mkHMUsers = builtins.mapAttrs mkHMUser;
- mkSystems = builtins.mapAttrs mkSystem;
-}