mirror of
https://github.com/zoriya/flake.git
synced 2026-06-09 13:10:59 +00:00
Move wsl to a modulee
This commit is contained in:
@@ -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;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user