From 09d6c8aa8f23c85db99c7f6087b3666c32183346 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Fri, 24 Jun 2022 12:21:06 -0400 Subject: [PATCH] fix: make work automatically use wsl home-manager config --- flake.nix | 1 + machines/work/configuration.nix | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index b7d5ad2..5a03b2a 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,7 @@ system = utils.lib.system.x86_64-linux; modules = [ self.overlaysModule + home-manager.nixosModules.home-manager { nixpkgs.overlays = [ (import ./overlays/iptables) diff --git a/machines/work/configuration.nix b/machines/work/configuration.nix index 620e709..031b317 100644 --- a/machines/work/configuration.nix +++ b/machines/work/configuration.nix @@ -28,6 +28,11 @@ in # Required because for some reason WSL kernel doesn't play well with nftables networking.firewall.package = pkgs.iptables-legacy; + home-manager = { + users.michael = import ../../user/environments/wsl/home.nix pkgs; + useGlobalPkgs = true; + }; + environment.systemPackages = with pkgs; [ wget ];