From 77fc296e9ef45749ed9812f05fe5f35443d027f5 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 2 Jun 2024 04:04:05 +0000 Subject: [PATCH] [NixOS] Add strixy-minaj-wsl --- nixos/machines/strixi-minaj-wsl.nix | 34 +++++++++++++++++++++++++++++ nixos/wsl.nix | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 nixos/machines/strixi-minaj-wsl.nix 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; };