Move wsl to a modulee

This commit is contained in:
2024-05-03 10:58:48 +02:00
parent cf1e2c440b
commit a9926bc30f
5 changed files with 33 additions and 29 deletions
+1 -16
View File
@@ -126,22 +126,7 @@
}) })
]; ];
lucca = mkSystem "lucca" "none" [ lucca = mkSystem "lucca" "wsl" [];
({pkgs, ...}: {
imports = [
inputs.nixos-wsl.nixosModules.wsl
];
wsl.enable = true;
wsl.defaultUser = "zoriya";
environment.systemPackages = with pkgs; [
wslu
wsl-open
];
# Disable it for wls
environment.persistence."/nix/persist".enable = false;
})
];
}; };
}; };
} }
+3
View File
@@ -64,6 +64,9 @@
bind-key -r f run-shell "tmux neww tmux-sessionizer" bind-key -r f run-shell "tmux neww tmux-sessionizer"
bind-key -r C-h run-shell "tmux-sessionizer ~/projects/kyoo" bind-key -r C-h run-shell "tmux-sessionizer ~/projects/kyoo"
bind-key -r C-s run-shell "tmux-sessionizer ~/projects/flake" bind-key -r C-s run-shell "tmux-sessionizer ~/projects/flake"
bind-key -r C-n run-shell "tmux-sessionizer ~/projects/blog"
bind-key -r C-g run-shell "tmux-sessionizer ~/work/pagga"
bind-key -r C-c run-shell "tmux-sessionizer ~/work/Pay.Monitor"
run-shell ${pkgs.tmuxPlugins.sensible.rtp} run-shell ${pkgs.tmuxPlugins.sensible.rtp}
run-shell ${pkgs.tmuxPlugins.fzf-tmux-url.rtp} run-shell ${pkgs.tmuxPlugins.fzf-tmux-url.rtp}
-13
View File
@@ -111,17 +111,4 @@ if vim.call("has", "wsl") == 1 then
-- Lumen takes 170ms on windows and I only use the windows laptop at work, with light mode. -- Lumen takes 170ms on windows and I only use the windows laptop at work, with light mode.
vim.g.lumen_startup_overwrite = 0 vim.g.lumen_startup_overwrite = 0
vim.opt.background="light" vim.opt.background="light"
vim.g.clipboard = {
name = 'WslClipboard',
copy = {
['+'] = 'clip.exe',
['*'] = 'clip.exe',
},
paste = {
['+'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
['*'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
},
cache_enabled = 0,
}
end end
+19
View File
@@ -0,0 +1,19 @@
{
pkgs,
inputs,
...
}: {
imports = [
inputs.nixos-wsl.nixosModules.wsl
];
wsl.enable = true;
wsl.defaultUser = "zoriya";
environment.systemPackages = with pkgs; [
wslu
wsl-open
];
# Disable it for wls
environment.persistence."/nix/persist".enable = false;
}
+10
View File
@@ -0,0 +1,10 @@
{lib, ...}: {
imports = [
# Install apps that I open with wslg (and tools like wl-clipboard which works)
../common/apps.nix
];
gtk.enable = lib.mkForce false;
services.xsettingsd.enable = lib.mkForce false;
qt.enable = lib.mkForce false;
}