mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added kitty for gui wsl
This commit is contained in:
parent
78361944cb
commit
8f2cb9501d
3 changed files with 35 additions and 8 deletions
10
flake.nix
10
flake.nix
|
@ -104,8 +104,14 @@
|
||||||
{
|
{
|
||||||
networking.hostName = "NicksNixWSL";
|
networking.hostName = "NicksNixWSL";
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
wsl.enable = true;
|
# https://nix-community.github.io/NixOS-WSL/options.html
|
||||||
wsl.defaultUser = "nixolas";
|
wsl = {
|
||||||
|
enable = true;
|
||||||
|
defaultUser = "nixolas";
|
||||||
|
# startMenuLaunchers = true;
|
||||||
|
useWindowsDriver = true;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
#./hosts/WSL
|
#./hosts/WSL
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
|
|
8
home.nix
8
home.nix
|
@ -101,12 +101,12 @@ in
|
||||||
./modules/xdg.nix
|
./modules/xdg.nix
|
||||||
./modules/yazi.nix
|
./modules/yazi.nix
|
||||||
./modules/zsh.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/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
|
#./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/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/rofi.nix else null)
|
||||||
(if (! builtins.elem osConfig.networking.hostName commandline_only_hosts ) then ../modules/kitty.nix else null)
|
|
||||||
];
|
];
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# See https://nix-community.github.io/NixOS-WSL/how-to/change-username.html
|
# See https://nix-community.github.io/NixOS-WSL/how-to/change-username.html
|
||||||
# to reset default WSL login
|
# to reset default WSL login
|
||||||
|
@ -10,4 +8,27 @@ in
|
||||||
"/etc/profiles/per-user/nixolas/bin/zsh"
|
"/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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue