hosts/winnowing: init

This commit is contained in:
Gabriel Arazas 2023-12-04 17:57:55 +08:00
parent e50c7f84ff
commit 44463c2b28
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 49 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}

View File

@ -40,3 +40,7 @@ systems = [
"x86_64-linux", "x86_64-linux",
] ]
format = "install-iso" format = "install-iso"
[winnowing]
systems = [ "x86_64-linux" ]
format = "iso"