added kitty for gui wsl

This commit is contained in:
Nickiel12 2024-07-05 01:17:14 +00:00
parent 78361944cb
commit 8f2cb9501d
3 changed files with 35 additions and 8 deletions

View file

@ -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 {

View file

@ -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;

View file

@ -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";
};
}