feat: merge own wsl config
This commit is contained in:
38
flake.lock
generated
38
flake.lock
generated
@@ -145,6 +145,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat_4": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767039857,
|
||||||
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
@@ -693,6 +709,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-wsl": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_4",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771563879,
|
||||||
|
"narHash": "sha256-vA5hocvdGhr+jfBN7A7ogeZqIz2qx01EixXwdVsQcnE=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NixOS-WSL",
|
||||||
|
"rev": "379d20c55f552e91fb9f3f0382e4a97d3f452943",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NixOS-WSL",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748929857,
|
"lastModified": 1748929857,
|
||||||
@@ -821,6 +858,7 @@
|
|||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixos-anywhere": "nixos-anywhere",
|
"nixos-anywhere": "nixos-anywhere",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-fixed": "nixpkgs-fixed",
|
"nixpkgs-fixed": "nixpkgs-fixed",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
|||||||
@@ -32,6 +32,10 @@
|
|||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-fixed";
|
inputs.nixpkgs.follows = "nixpkgs-fixed";
|
||||||
};
|
};
|
||||||
|
nixos-wsl = {
|
||||||
|
url = "github:nix-community/NixOS-WSL";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nixos-hardware = {
|
nixos-hardware = {
|
||||||
url = "github:NixOS/nixos-hardware";
|
url = "github:NixOS/nixos-hardware";
|
||||||
};
|
};
|
||||||
@@ -88,6 +92,7 @@
|
|||||||
# FIXME(yukkop): some why I cannot merge nixosConfigurations from `forAllSystemsWithPkgs` with this
|
# FIXME(yukkop): some why I cannot merge nixosConfigurations from `forAllSystemsWithPkgs` with this
|
||||||
"neuro|x86_64-linux" = import ./nixos/system/neuro { inherit flake self inputs; system = "x86_64-linux"; };
|
"neuro|x86_64-linux" = import ./nixos/system/neuro { inherit flake self inputs; system = "x86_64-linux"; };
|
||||||
"games|x86_64-linux" = import ./nixos/system/games { inherit flake self inputs; system = "x86_64-linux"; };
|
"games|x86_64-linux" = import ./nixos/system/games { inherit flake self inputs; system = "x86_64-linux"; };
|
||||||
|
"wsl|x86_64-linux" = import ./nixos/system/wsl { inherit flake self inputs; system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
system = pkgs.system;
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
cfg = config.services.postgresql;
|
cfg = config.services.postgresql;
|
||||||
extensionFlags = {
|
extensionFlags = {
|
||||||
pg_cron = false;
|
pg_cron = false;
|
||||||
|
|||||||
@@ -112,6 +112,6 @@ in {
|
|||||||
"ata_piix"
|
"ata_piix"
|
||||||
"uhci_hcd"
|
"uhci_hcd"
|
||||||
"xen_blkfront"
|
"xen_blkfront"
|
||||||
] ++ (if pkgs.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
] ++ (if pkgs.stdenv.hostPlatform.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ in {
|
|||||||
"ata_piix"
|
"ata_piix"
|
||||||
"uhci_hcd"
|
"uhci_hcd"
|
||||||
"xen_blkfront"
|
"xen_blkfront"
|
||||||
] ++ (if pkgs.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
] ++ (if pkgs.stdenv.hostPlatform.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
@@ -125,7 +125,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(lib.mkIf (pkgs.system == "aarch64-linux") {
|
(lib.mkIf (pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
|
||||||
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
||||||
boot.kernelParams = [ "console=tty" ];
|
boot.kernelParams = [ "console=tty" ];
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -35,33 +35,34 @@ in {
|
|||||||
"ata_piix"
|
"ata_piix"
|
||||||
"uhci_hcd"
|
"uhci_hcd"
|
||||||
"xen_blkfront"
|
"xen_blkfront"
|
||||||
] ++ (if pkgs.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
] ++ (if pkgs.stdenv.hostPlatform.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
||||||
boot.initrd.kernelModules = ["nvme"];
|
boot.initrd.kernelModules = ["nvme"];
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.master = {
|
disk.master = {
|
||||||
device = cfg.device;
|
device = cfg.device;
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "gpt";
|
||||||
format = "msdos";
|
partitions = {
|
||||||
partitions = [
|
boot = {
|
||||||
{
|
size = "1M";
|
||||||
name = "root";
|
type = "EF02";
|
||||||
part-type = "primary";
|
priority = 1;
|
||||||
fs-type = "ext4";
|
};
|
||||||
bootable = true;
|
root = {
|
||||||
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(lib.mkIf (pkgs.system == "aarch64-linux") {
|
(lib.mkIf (pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
|
||||||
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
||||||
boot.kernelParams = [ "console=tty" ];
|
boot.kernelParams = [ "console=tty" ];
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ in {
|
|||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
home-manager.users.root = {
|
# Share the same zsh config with all home-manager users
|
||||||
home.stateVersion = lib.mkDefault "25.05";
|
home-manager.sharedModules = [
|
||||||
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
@@ -46,6 +46,10 @@ in {
|
|||||||
set -ovi
|
set -ovi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# Still define root for stateVersion; config comes from sharedModules
|
||||||
|
home-manager.users.root.home.stateVersion = lib.mkDefault "25.05";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
system = pkgs.system;
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
cfg = config.hectic.services."sentinèlla";
|
cfg = config.hectic.services."sentinèlla";
|
||||||
# URLS="http://..." # default: none
|
# URLS="http://..." # default: none
|
||||||
# VOLUMES="/ /home" # default: all from df -P
|
# VOLUMES="/ /home" # default: all from df -P
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ inputs, flake, self }:
|
{ inputs, flake, self }:
|
||||||
{ config, pkgs, lib, ... }: let
|
{ config, pkgs, lib, ... }: let
|
||||||
cfg = config.hectic.services.support-bot;
|
cfg = config.hectic.services.support-bot;
|
||||||
system = pkgs.system;
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
|
||||||
packagesAttr = lib.mapAttrs (packageName: packageConfig:
|
packagesAttr = lib.mapAttrs (packageName: packageConfig:
|
||||||
packageConfig // {
|
packageConfig // {
|
||||||
|
|||||||
@@ -9,89 +9,71 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
name = builtins.baseNameOf ./.;
|
name = "yukkop";
|
||||||
|
#name = builtins.baseNameOf ./.;
|
||||||
home = "/home/${name}";
|
home = "/home/${name}";
|
||||||
cfg = config.hectic.user.yukkop;
|
cfg = config.hectic.user.yukkop;
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
];
|
||||||
|
|
||||||
options.hectic.user.yukkop.enable = lib.mkEnableOption "Enable user.yukkop";
|
options.hectic.user.yukkop.enable = lib.mkEnableOption "Enable user.yukkop";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
#home = {
|
users.users.${name} = {
|
||||||
# username = name;
|
isNormalUser = true;
|
||||||
# homeDirectory = home;
|
initialPassword = "kk";
|
||||||
# packages = [];
|
extraGroups = [ "wheel" "docker" "owner" ];
|
||||||
# stateVersion = "25.05";
|
};
|
||||||
#};
|
|
||||||
|
|
||||||
#xdg = {
|
home-manager.users.${name} = {
|
||||||
# enable = true;
|
home.stateVersion = "24.05";
|
||||||
# userDirs = {
|
|
||||||
# enable = true;
|
|
||||||
# pictures = "${home}/px";
|
|
||||||
# videos = "${home}/vd";
|
|
||||||
# music = "${home}/mu";
|
|
||||||
# documents = "${home}/dc";
|
|
||||||
# downloads = "${home}/dw";
|
|
||||||
# desktop = "${home}/dx";
|
|
||||||
# publicShare = "${home}/pu";
|
|
||||||
# templates = "${config.xdg.dataHome}/templates";
|
|
||||||
# };
|
|
||||||
# mimeApps = {
|
|
||||||
# enable = true;
|
|
||||||
# defaultApplications = {
|
|
||||||
|
|
||||||
# # Files
|
home.packages = with pkgs; [
|
||||||
# "application/x-shellscript" = [ "nvim.desktop" ];
|
pinentry-tty
|
||||||
# "text/x-shellscript" = [ "nvim.desktop" ];
|
];
|
||||||
# "text/plain" = [ "nvim.desktop" ];
|
|
||||||
# "inode/directory" = [ "pcmanfm.desktop" ];
|
|
||||||
|
|
||||||
# # Images
|
programs.password-store = {
|
||||||
# "image/png" = [ "sxiv.desktop" ];
|
enable = true;
|
||||||
# "image/jpeg" = [ "sxiv.desktop" ];
|
package = (pkgs.pass.override {
|
||||||
# "image/gif" = [ "sxiv.desktop" ];
|
x11Support = false;
|
||||||
# "image/webp" = [ "sxiv.desktop" ];
|
waylandSupport = false;
|
||||||
# "image/x-xcf" = [ "gimp.desktop" ];
|
dmenuSupport = false;
|
||||||
|
}).withExtensions (exts: with exts; [
|
||||||
|
pass-otp
|
||||||
|
]);
|
||||||
|
settings.PASSWORD_STORE_DIR = "${home}/.pass";
|
||||||
|
};
|
||||||
|
|
||||||
# # Videos
|
programs.gpg = {
|
||||||
# "video/x-matroska" = [ "mpv.desktop" ];
|
enable = true;
|
||||||
|
homedir = "${home}/.gnupg";
|
||||||
|
};
|
||||||
|
|
||||||
# # # Application-specific
|
services.gpg-agent = {
|
||||||
# # "application/postscript" = [ "pdf.desktop" ];
|
enable = true;
|
||||||
# # "application/pdf" = [ "pdf.desktop" ];
|
pinentryPackage = pkgs.pinentry-tty;
|
||||||
# # "application/rss+xml" = [ "rss.desktop" ];
|
enableZshIntegration = true;
|
||||||
# # "application/x-bittorrent" = [ "torrent.desktop" ];
|
defaultCacheTtl = 60 * 60;
|
||||||
|
maxCacheTtl = 60 * 60 * 24;
|
||||||
|
};
|
||||||
|
|
||||||
# # Protocols
|
programs.bash.shellAliases = {
|
||||||
# "x-scheme-handler/http" = [ "firefox.desktop" ];
|
dev = "nix develop -c zsh";
|
||||||
# "x-scheme-handler/https" = [ "firefox.desktop" ];
|
# system-specific rebuild aliases can be added per-system
|
||||||
# # "x-scheme-handler/magnet" = [ "torrent.desktop" ];
|
};
|
||||||
# # "x-scheme-handler/mailto" = [ "mail.desktop" ];
|
|
||||||
# # "x-scheme-handler/lbry" = [ "lbry.desktop" ];
|
|
||||||
# # "x-scheme-handler/tg" = [ "telegram.desktop" ];
|
|
||||||
|
|
||||||
# # text/x-shellscript=text.desktop;
|
programs.git = {
|
||||||
# # x-scheme-handler/magnet=torrent.desktop;
|
enable = true;
|
||||||
# # application/x-bittorrent=torrent.desktop;
|
lfs.enable = true;
|
||||||
# # x-scheme-handler/mailto=mail.desktop;
|
userName = "yukkop";
|
||||||
# # text/plain=text.desktop;
|
userEmail = "hectic.yukkop@gmail.com";
|
||||||
# # application/postscript=pdf.desktop;
|
extraConfig = {
|
||||||
# # application/pdf=pdf.desktop;
|
push.autoSetupRemote = true;
|
||||||
# # image/png=img.desktop;
|
init.defaultBranch = "master";
|
||||||
# # image/jpeg=img.desktop;
|
};
|
||||||
# # image/gif=img.desktop;
|
};
|
||||||
# # image/webp=img.desktop;
|
};
|
||||||
# # application/rss+xml=rss.desktop;
|
|
||||||
# # video/x-matroska=video.desktop;
|
|
||||||
# # x-scheme-handler/lbry=lbry.desktop;
|
|
||||||
# # inode/directory=file.desktop;
|
|
||||||
# # text/html=chromium.desktop;
|
|
||||||
# # x-scheme-handler/http=chromium.desktop;
|
|
||||||
# # x-scheme-handler/https=chromium.desktop;
|
|
||||||
# # x-scheme-handler/about=chromium.desktop;
|
|
||||||
# # x-scheme-handler/unknown=chromium.desktop;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,28 +54,29 @@ in {
|
|||||||
"ata_piix"
|
"ata_piix"
|
||||||
"uhci_hcd"
|
"uhci_hcd"
|
||||||
"xen_blkfront"
|
"xen_blkfront"
|
||||||
] ++ (if pkgs.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
] ++ (if pkgs.stdenv.hostPlatform.system != "aarch64-linux" then [ "vmw_pvscsi" ] else []);
|
||||||
boot.initrd.kernelModules = ["nvme"];
|
boot.initrd.kernelModules = ["nvme"];
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.vda = {
|
disk.vda = {
|
||||||
device = lib.mkDefault "/dev/vda";
|
device = lib.mkDefault "/dev/vda";
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "gpt";
|
||||||
format = "msdos";
|
partitions = {
|
||||||
partitions = [
|
boot = {
|
||||||
{
|
size = "1M";
|
||||||
name = "root";
|
type = "EF02";
|
||||||
part-type = "primary";
|
priority = 1;
|
||||||
fs-type = "ext4";
|
};
|
||||||
bootable = true;
|
root = {
|
||||||
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
modulesPath,
|
modulesPath,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let system = pkgs.system; in {
|
}: let system = pkgs.stdenv.hostPlatform.system; in {
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.hectic
|
self.nixosModules.hectic
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
|||||||
23
nixos/system/wsl/default.nix
Normal file
23
nixos/system/wsl/default.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
flake,
|
||||||
|
self,
|
||||||
|
inputs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
# Use folder name as system name
|
||||||
|
name = builtins.baseNameOf ./.;
|
||||||
|
|
||||||
|
in self.lib.nixpkgs-lib.nixosSystem {
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [ self.overlays.default ];
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{ networking.hostName = name; }
|
||||||
|
inputs.nixos-wsl.nixosModules.default
|
||||||
|
{ wsl.enable = true; }
|
||||||
|
(import ./${name}.nix { inherit flake self inputs; })
|
||||||
|
];
|
||||||
|
}
|
||||||
89
nixos/system/wsl/wsl.nix
Normal file
89
nixos/system/wsl/wsl.nix
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
flake,
|
||||||
|
self,
|
||||||
|
}: {
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
self.nixosModules.hectic
|
||||||
|
];
|
||||||
|
|
||||||
|
hectic = {
|
||||||
|
archetype.base.enable = true;
|
||||||
|
program.zsh.enable = true;
|
||||||
|
program.nixvim.enable = true;
|
||||||
|
user.yukkop.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
wsl.defaultUser = "yukkop";
|
||||||
|
|
||||||
|
# 16 GiB swap
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 16 * 1024;
|
||||||
|
}];
|
||||||
|
|
||||||
|
users.groups.owner = {};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
UseDns = true;
|
||||||
|
X11Forwarding = false;
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
|
console.keyMap = "us";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
ripgrep
|
||||||
|
man-pages
|
||||||
|
man-pages-posix
|
||||||
|
man-db
|
||||||
|
ffmpeg
|
||||||
|
];
|
||||||
|
|
||||||
|
documentation.dev.enable = true;
|
||||||
|
documentation.man.man-db.enable = false;
|
||||||
|
documentation.man.mandoc.enable = true;
|
||||||
|
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
shares.sshfs = {
|
||||||
|
path = "/home/yukkop/umbriel/vproxy";
|
||||||
|
browseable = true;
|
||||||
|
"read only" = false;
|
||||||
|
"guest ok" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 139 445 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 137 138 ];
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerd-fonts.jetbrains-mono
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
# WSL-local shell aliases
|
||||||
|
programs.bash.shellAliases = {
|
||||||
|
nrs = "sudo nixos-rebuild switch --flake /home/yukkop/pj/util.nix#wsl";
|
||||||
|
};
|
||||||
|
|
||||||
|
# WSL: keep imperative stateVersion in the system module
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user