mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-09 22:11:52 +00:00
sync
This commit is contained in:
@@ -1,32 +1,13 @@
|
|||||||
{ lib, pkgs, config, modulesPath, ... }:
|
{ lib, pkgs, config, modulesPath, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
system.stateVersion = "22.05";
|
|
||||||
# Enable nix flakes
|
# Enable nix flakes
|
||||||
nix.package = pkgs.nixFlakes;
|
nix.package = pkgs.nixFlakes;
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.services.nixs-wsl-systemd-fix = {
|
system.stateVersion = "22.11";
|
||||||
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" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
wsl = {
|
wsl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -34,6 +15,12 @@
|
|||||||
defaultUser = "sstent";
|
defaultUser = "sstent";
|
||||||
startMenuLaunchers = true;
|
startMenuLaunchers = true;
|
||||||
interop.preserveArgvZero = 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 = {
|
mymods = {
|
||||||
|
|||||||
Reference in New Issue
Block a user