mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
36 lines
588 B
Nix
36 lines
588 B
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.nixos-wsl.nixosModules.wsl
|
|
];
|
|
|
|
wsl.enable = true;
|
|
wsl.defaultUser = "zoriya";
|
|
environment.systemPackages = with pkgs; [
|
|
wslu
|
|
wsl-open
|
|
];
|
|
|
|
services.flatpak.enable = true;
|
|
xdg.portal = {
|
|
enable = true;
|
|
wlr.enable = true;
|
|
config.common.default = "*";
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 1022 ];
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
|
|
# Disable it for wls
|
|
environment.persistence."/nix/persist".enable = false;
|
|
}
|