From 4844462dc406fcf0ca8ae376b61ef4c9ec27dcbb Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Sun, 29 Oct 2023 00:42:21 +0200 Subject: [PATCH] added wsl config --- flake.nix | 6 ++++++ home-manager/machines/wsl.nix | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 483615a..09f8d63 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,7 @@ outputs = { self, nixpkgs, home-manager, ... }@inputs: let system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; in { nixosConfigurations.thilo-pc = nixpkgs.lib.nixosSystem { @@ -27,5 +28,10 @@ ]; specialArgs = { inherit inputs; }; }; + homeConfigurations."thilo@thilo-pc-win" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ ./home-manager/machines/wsl.nix ]; + extraSpecialArgs = { inherit inputs; }; + }; }; } diff --git a/home-manager/machines/wsl.nix b/home-manager/machines/wsl.nix index d56df2e..39d9f2e 100644 --- a/home-manager/machines/wsl.nix +++ b/home-manager/machines/wsl.nix @@ -8,7 +8,6 @@ machine = { username = "thilo"; isGeneric = true; - nixPackage = pkgs.nixUnstable; isGnome = false; noiseSuppression.enable = false; isGraphical = false;