summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 6fc5331..660ee66 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,9 +12,11 @@
};
outputs = { self, nixpkgs, home-manager, nur, ... }: let
+ util = import ./util;
+
pkgSet = pkgs: import ./pkgs {
inherit pkgs;
- util = import ./util pkgs.lib;
+ util = util pkgs.lib;
};
in {
packages."x86_64-linux" = pkgSet nixpkgs.legacyPackages."x86_64-linux";
@@ -23,6 +25,14 @@
local = pkgSet super;
};
+ nixosConfigurations = with nixpkgs.lib; let
+ hostUtil = util nixpkgs.lib;
+ hostConfig = host: (makeOverridable nixosSystem) {
+ system = "x86_64-linux";
+ modules = [ (import ./sys self) host ];
+ };
+ in mapAttrs (_: hostConfig) (hostUtil.importAll { root = ./platform; });
+
homeConfigurations."ale@p-user" = home-manager.lib.homeManagerConfiguration {
system = "x86_64-linux";
configuration = {