From 44463c2b28c3ba2a72e0e5dffd12b6df3bc889f3 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 4 Dec 2023 17:57:55 +0800 Subject: [PATCH] hosts/winnowing: init --- hosts/winnowing/README.adoc | 8 ++++++++ hosts/winnowing/default.nix | 37 +++++++++++++++++++++++++++++++++++++ images.toml | 4 ++++ 3 files changed, 49 insertions(+) create mode 100644 hosts/winnowing/README.adoc create mode 100644 hosts/winnowing/default.nix diff --git a/hosts/winnowing/README.adoc b/hosts/winnowing/README.adoc new file mode 100644 index 00000000..81eaba64 --- /dev/null +++ b/hosts/winnowing/README.adoc @@ -0,0 +1,8 @@ += Winnowing +:toc: + + +This is the NixOS configuration for the WSL environment. +Basically, it's a comfort setup in case I use Windows especially that I can easily bring my development setup in there which is very very nice. +The main power comes from https://github.com/nix-community/NixOS-WSL/[NixOS-WSL] project. +It is expected to be used with WSL2. diff --git a/hosts/winnowing/default.nix b/hosts/winnowing/default.nix new file mode 100644 index 00000000..1bf6379d --- /dev/null +++ b/hosts/winnowing/default.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ + "${modulesPath}/profiles/minimal.nix" + + (lib.mapHomeManagerUser "foo-dogsquared" { + extraGroups = [ + "adbusers" + "wheel" + "audio" + "docker" + "podman" + "networkmanager" + "wireshark" + ]; + hashedPassword = + "$y$j9T$UFzEKZZZrmbJ05CTY8QAW0$X2RD4m.xswyJlXZC6AlmmuubPaWPQZg/Q1LDgHpXHx1"; + isNormalUser = true; + createHome = true; + home = "/home/foo-dogsquared"; + description = "Gabriel Arazas"; + }) + ]; + + wsl = { + enable = true; + defaultUser = "winnow"; + nativeSystemd = true; + }; + + programs.bash.loginShellInit = "nixos-wsl-welcome"; + + # Setting the development environment mainly for container-related work. + profiles.dev.enable = true; + profiles.dev.virtualization.enable = true; +} diff --git a/images.toml b/images.toml index 9257ca76..8a31f65c 100644 --- a/images.toml +++ b/images.toml @@ -40,3 +40,7 @@ systems = [ "x86_64-linux", ] format = "install-iso" + +[winnowing] +systems = [ "x86_64-linux" ] +format = "iso"