diff --git a/nixos/machines/strixi-minaj-wsl.nix b/nixos/machines/strixi-minaj-wsl.nix new file mode 100644 index 00000000..3f89e025 --- /dev/null +++ b/nixos/machines/strixi-minaj-wsl.nix @@ -0,0 +1,34 @@ +{ lib, pkgs, config, inputs, forEachUser, ... }: +{ + imports = [ + ../configuration.nix + ]; + + modules.wsl.enable = true; + + networking.hostName = "strixi-minaj-wsl"; + + wsl.defaultUser = "imalison"; + system.stateVersion = "23.11"; # Did you read the comment? + + home-manager.users = forEachUser { + home.stateVersion = "23.11"; + }; + + programs.gnupg = { + agent = { + pinentryPackage = pkgs.pinentry-curses; + enable = true; + enableSSHSupport = true; + }; + }; + + nixpkgs.config.permittedInsecurePackages = [ + "openssl-1.0.2u" + "electron-12.2.3" + "etcher" + "electron-19.1.9" + "openssl-1.1.1w" + "nix-2.16.2" + ]; +} diff --git a/nixos/wsl.nix b/nixos/wsl.nix index f58f460f..2a3e0e21 100644 --- a/nixos/wsl.nix +++ b/nixos/wsl.nix @@ -7,13 +7,15 @@ makeEnable config "modules.wsl" false { modules.base.enable = false; modules.desktop.enable = false; modules.xmonad.enable = false; + modules.plasma.enable = false; # Update timezone automatically services.tzupdate.enable = true; + wsl.wslConf.automount.root = "/mnt"; + wsl = { enable = true; - automountPath = "/mnt"; startMenuLaunchers = true; nativeSystemd = true; };