diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-03-10 19:14:10 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-03-10 19:14:10 -0600 |
| commit | e287d00e96b5505da20399d073ae96458f841397 (patch) | |
| tree | 9b96ccde0fddf5c59aedf2fb29f577b6af46f18f /flake.nix | |
| parent | 65bbf5411d8d3e30bffcc278ccace65c7e75c70c (diff) | |
Track system configuration
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 = { |
