From 77702b22ef82e00ea6da61ddb7b85c61fd7d39a2 Mon Sep 17 00:00:00 2001 From: guangtao Date: Tue, 19 Sep 2023 16:43:03 -0700 Subject: [PATCH] feat(nixosModules): save --- examples/nixos/default.nix | 2 +- examples/nixos/pops.nix | 6 +++++- flake.nix | 1 + nixos/homeProfiles/presets/hyprland/default.nix | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/nixos/default.nix b/examples/nixos/default.nix index 8c9821e..08a121e 100644 --- a/examples/nixos/default.nix +++ b/examples/nixos/default.nix @@ -37,6 +37,6 @@ in [ customProfiles.presets.hyprland.default - self.homeModules.wayland.windowManager.hyprland + # self.homeModules.wayland.windowManager.hyprland ]; } diff --git a/examples/nixos/pops.nix b/examples/nixos/pops.nix index 09d2e60..87a5190 100644 --- a/examples/nixos/pops.nix +++ b/examples/nixos/pops.nix @@ -10,7 +10,11 @@ let (loadNixOSModules.addLoadExtender { inputs = __inputs__.outputs // { }; }); homeProfiles = loadHomeProfiles.addLoadExtender { - inputs = __inputs__.outputs // { }; + inputs = __inputs__.outputs // { + POS = { + homeModules = homeModules.outputsForTarget.nixosModules; + }; + }; }; selfNixOSProfiles = nixosModules.addLoadExtender { diff --git a/flake.nix b/flake.nix index a257e33..e391206 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,7 @@ }; loadHomeProfiles = loadHomeModules.addLoadExtender { src = ./nixos/homeProfiles; + loader = haumea.lib.loaders.scoped; type = "default"; }; lib = flops.lib.haumea.pops.default.setInit { diff --git a/nixos/homeProfiles/presets/hyprland/default.nix b/nixos/homeProfiles/presets/hyprland/default.nix index 27b91cf..a9fd687 100644 --- a/nixos/homeProfiles/presets/hyprland/default.nix +++ b/nixos/homeProfiles/presets/hyprland/default.nix @@ -1,4 +1,5 @@ { + imports = [ POS.homeModules.wayland.windowManager.hyprland ]; wayland.windowManager.hyprland = { enable = true; systemdIntegration = true;