This commit is contained in:
2023-02-19 14:26:51 -05:00
parent 7277511a21
commit bc94adbc32
2 changed files with 8 additions and 21 deletions

View File

@@ -1,32 +1,13 @@
{ lib, pkgs, config, modulesPath, ... }:
{
system.stateVersion = "22.05";
# Enable nix flakes
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
systemd.services.nixs-wsl-systemd-fix = {
description = "Fix the /dev/shm symlink to be a mount";
unitConfig = {
DefaultDependencies = "no";
Before = "sysinit.target";
ConditionPathExists = "/dev/shm";
ConditionPathIsSymbolicLink = "/dev/shm";
ConditionPathIsMountPoint = "/run/shm";
};
serviceConfig = {
Type = "oneshot";
ExecStart = [
"${pkgs.coreutils-full}/bin/rm /dev/shm"
"/run/wrappers/bin/mount --bind -o X-mount.mkdir /run/shm /dev/shm"
];
};
wantedBy = [ "sysinit.target" ];
};
system.stateVersion = "22.11";
wsl = {
enable = true;
@@ -34,6 +15,12 @@
defaultUser = "sstent";
startMenuLaunchers = true;
interop.preserveArgvZero = true;
# Enable native Docker support
# docker-native.enable = true;
# Enable integration with Docker Desktop (needs to be installed)
# docker-desktop.enable = true;
};
mymods = {