feat(systems/chen): initialise

This commit is contained in:
Kat Inskip 2023-02-04 14:56:01 -08:00
parent ccf6a6f704
commit ee228abd84
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 116 additions and 18 deletions

63
systems/chen.nix Normal file
View file

@ -0,0 +1,63 @@
_: let
hostConfig = {tree, modulesPath, inputs, pkgs, ...}: {
imports = with tree; [
inputs.wsl.nixosModules.wsl
"${modulesPath}/profiles/minimal.nix"
];
fileSystems = {
"/" = {
device = "/dev/sdc";
fsType = "ext4";
};
"/usr/lib/wsl/drivers" = {
device = "drivers";
fsType = "9p";
};
"/usr/lib/wsl/lib" = {
device = "none";
fsType = "overlay";
};
"/mnt/wsl" = {
device = "none";
fsType = "tmpfs";
};
"/mnt/wslg" = {
device = "none";
fsType = "tmpfs";
};
"/mnt/wslg/doc" = {
device = "none";
fsType = "overlay";
};
"/mnt/c" = {
device = "drvfs";
fsType = "9p";
};
};
swapDevices = [
{ device = "/dev/sdb"; }
];
wsl = {
enable = true;
defaultUser = "kat";
startMenuLaunchers = true;
wslConf.automount.root = "/mnt";
};
networking = {
hostId = "dddbb888";
useDHCP = false;
};
system.stateVersion = "22.05";
};
in {
arch = "x86_64";
type = "NixOS";
modules = [
hostConfig
];
}