From 9a78668ebddcdadb8af9056acc63bd2f246effb8 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 23 Nov 2023 15:54:40 +0300 Subject: [PATCH] Add theme and hyprland to options --- flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 7d45123..839160e 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ }; }; - outputs = { nixpkgs, homeManager, utils, fenix, hyprland, ... }: utils.lib.eachDefaultSystem (system: let + outputs = { nixpkgs, homeManager, utils, fenix, ... } @ inputs: utils.lib.eachDefaultSystem (system: let lib = nixpkgs.lib; ulib = rec { @@ -76,6 +76,10 @@ }; }; + theme = import ./themes/gruvbox.nix; + + hyprland = inputs.hyprland.packages.${system}.default; + defaultConfiguration = host: ulib.systemConfiguration { nix.gc = { automatic = true; @@ -95,10 +99,7 @@ ]; nixpkgs.config.allowUnfree = true; - nixpkgs.overlays = [ - fenix.overlays.default - hyprland.overlays.default - ]; + nixpkgs.overlays = [ fenix.overlays.default ]; environment.defaultPackages = []; @@ -109,7 +110,9 @@ home-manager.useUserPackages = true; }; - specialArgs = ulib; + specialArgs = { + inherit ulib theme hyprland; + }; importConfiguration = host: lib.nixosSystem { inherit specialArgs;