summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-03-12 21:00:35 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-03-12 21:00:35 +0100
commit75c9efa1083a3d69e09f7ebc72aed1292176f682 (patch)
tree176b5d272adf74adad22338d4953bf8418f3187d
parentf1b915373750f7bdc09cbdaa011d0f49efea6cc8 (diff)
downloadnixos-75c9efa1083a3d69e09f7ebc72aed1292176f682.tar
nixos-75c9efa1083a3d69e09f7ebc72aed1292176f682.tar.gz
nixos-75c9efa1083a3d69e09f7ebc72aed1292176f682.tar.bz2
nixos-75c9efa1083a3d69e09f7ebc72aed1292176f682.tar.xz
nixos-75c9efa1083a3d69e09f7ebc72aed1292176f682.zip
deprecated flake outputs
-rw-r--r--flake.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 625c16a8..b2337d99 100644
--- a/flake.nix
+++ b/flake.nix
@@ -135,7 +135,7 @@
135 135
136 packages = 136 packages =
137 let installerPackages = system: optionalAttrs (!(isNull installerConfig)) (mapAttrs' (profile: value: nameValuePair "installer-${profile}" value.output) installers.${system}); 137 let installerPackages = system: optionalAttrs (!(isNull installerConfig)) (mapAttrs' (profile: value: nameValuePair "installer-${profile}" value.output) installers.${system});
138 in forAllSystems (system: systemPkgs: self.overlay (self.legacyPackages.${system}) systemPkgs // installerPackages system); 138 in forAllSystems (system: systemPkgs: self.overlays.default (self.legacyPackages.${system}) systemPkgs // installerPackages system);
139 in 139 in
140 { 140 {
141 nixosModules = 141 nixosModules =
@@ -151,8 +151,9 @@
151 homeModules = nixImport rec { dir = ./home-modules; }; 151 homeModules = nixImport rec { dir = ./home-modules; };
152 homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; }) nixosConfig.config.home-manager.users) self.nixosConfigurations)); 152 homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; }) nixosConfig.config.home-manager.users) self.nixosConfigurations));
153 153
154 overlay = final: prev: composeManyExtensions (attrValues self.overlays) final prev; 154 overlays = let
155 overlays = mapAttrs (_name: path: import path) overlayPaths; 155 overlays = mapAttrs (_name: path: import path) overlayPaths;
156 in overlays // { default = final: prev: composeManyExtensions (attrValues overlays) final prev; };
156 overlays-path = forAllSystems (system: _: self.legacyPackages.${system}.writeText "overlays.nix" '' 157 overlays-path = forAllSystems (system: _: self.legacyPackages.${system}.writeText "overlays.nix" ''
157 map import (builtins.attrValues (builtins.fromJSON ${self.legacyPackages.${system}.lib.strings.escapeNixString (toJSON overlayPaths)})) 158 map import (builtins.attrValues (builtins.fromJSON ${self.legacyPackages.${system}.lib.strings.escapeNixString (toJSON overlayPaths)}))
158 ''); 159 '');
@@ -164,9 +165,9 @@
164 165
165 apps = activateNixosConfigurations; 166 apps = activateNixosConfigurations;
166 167
167 devShell = forAllSystems (system: systemPkgs: import ./shell.nix { pkgs = self.legacyPackages.${system}; deploy-rs = deploy-rs.defaultPackage.${system}; }); 168 devShells = forAllSystems (system: systemPkgs: { default = import ./shell.nix { pkgs = self.legacyPackages.${system}; deploy-rs = deploy-rs.defaultPackage.${system}; }; });
168 169
169 defaultTemplate = { 170 templates.default = {
170 path = ./.; 171 path = ./.;
171 description = "GKleen's flakey nixos configuration"; 172 description = "GKleen's flakey nixos configuration";
172 }; 173 };