diff options
| author | seth <[email protected]> | 2023-01-27 05:49:23 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-27 05:49:23 -0500 |
| commit | 6b17d8ba34da944b3e22199e91cf4206891132d1 (patch) | |
| tree | 8a0e0a9801cdb1ead266f94d3d0f21147e8bfa0c /flake.nix | |
| parent | 6dd3d7415b0a9388b6fdbff6d39ba5ad8123283c (diff) | |
make standalone home-manager config
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -9,29 +9,40 @@ }; outputs = inputs @ { - nixpkgs, - nixpkgsUnstable, + home-manager, lanzaboote, nixos-wsl, + nixpkgs, + nixpkgsUnstable, ... }: let - util = import ./util/host.nix inputs; + util = import ./util {inherit inputs home-manager;}; + inherit (util) host; + inherit (util) user; in { + homeConfigurations = { + seth = user.mkHMUser { + username = "seth"; + stateVersion = "23.05"; + channel = nixpkgsUnstable; + }; + }; + nixosConfigurations = { - glados = util.mkHost { + glados = host.mkHost { name = "glados"; modules = [ lanzaboote.nixosModules.lanzaboote ./hosts/glados + ./users/seth ]; + version = "23.05"; pkgs = nixpkgsUnstable; }; - glados-wsl = util.mkHost { + glados-wsl = host.mkHost { name = "glados-wsl"; modules = [ - ./hosts/glados-wsl - nixos-wsl.nixosModules.wsl ({lib, ...}: { environment.noXlibs = lib.mkForce false; @@ -44,6 +55,9 @@ interop.includePath = false; }; }) + + ./hosts/glados-wsl + ./users/seth ]; pkgs = nixpkgs; }; |
