mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(systems/chen): initialise
This commit is contained in:
parent
ccf6a6f704
commit
ee228abd84
5 changed files with 116 additions and 18 deletions
63
systems/chen.nix
Normal file
63
systems/chen.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue