diff --git a/flake.nix b/flake.nix index 35a8507..f77d4d1 100644 --- a/flake.nix +++ b/flake.nix @@ -104,8 +104,14 @@ { networking.hostName = "NicksNixWSL"; system.stateVersion = "24.05"; - wsl.enable = true; - wsl.defaultUser = "nixolas"; + # https://nix-community.github.io/NixOS-WSL/options.html + wsl = { + enable = true; + defaultUser = "nixolas"; + # startMenuLaunchers = true; + useWindowsDriver = true; + }; + } #./hosts/WSL home-manager.nixosModules.home-manager { diff --git a/home.nix b/home.nix index 957ef31..df66807 100644 --- a/home.nix +++ b/home.nix @@ -101,12 +101,12 @@ in ./modules/xdg.nix ./modules/yazi.nix ./modules/zsh.nix + ./modules/kitty.nix (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ./modules/hyprland else null) - (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ../modules/discord.nix else null) + (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ./modules/discord.nix else null) #./modules/emacs.nix - (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ../modules/fusuma.nix else null) - (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ../modules/rofi.nix else null) - (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ../modules/kitty.nix else null) + (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ./modules/fusuma.nix else null) + (if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ./modules/rofi.nix else null) ]; # Let Home Manager install and manage itself. programs.home-manager.enable = true; diff --git a/hosts/WSL/default.nix b/hosts/WSL/default.nix index a6e1eb3..22ac813 100644 --- a/hosts/WSL/default.nix +++ b/hosts/WSL/default.nix @@ -1,7 +1,5 @@ { config, pkgs, ... }: -let -in { # See https://nix-community.github.io/NixOS-WSL/how-to/change-username.html # to reset default WSL login @@ -10,4 +8,27 @@ in "/etc/profiles/per-user/nixolas/bin/zsh" ]; }; + + fonts.packages = with pkgs; [ + (nerdfonts.override { fonts = ["DejaVuSansMono"]; }) + dejavu_fonts + xkcd-font + ]; + + nixpkgs.config.allowUnfree = true; + nix = { + gc = { + automatic = true; + options = "--delete-generations 20d"; + }; + settings = { + auto-optimise-store = true; + # max cores used per derivation + cores = 8; + # max derivations that can be built at once + # nix.settings.max-jobs = 2; + }; + package = pkgs.nixVersions.stable; + extraOptions = "experimental-features = nix-command flakes"; + }; }