From 2817cb2aede447b12f34b00c5dcbab8139b019d3 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 4 Mar 2024 16:58:26 +0000 Subject: [PATCH] Add initial wsl setup --- flake.nix | 2 + hosts/lucca/.hardware-configuration.nix.swp | Bin 0 -> 12288 bytes hosts/lucca/hardware-configuration.nix | 76 ++++++++++++++++++++ modules/none/default.nix | 1 + modules/none/home.nix | 1 + 5 files changed, 80 insertions(+) create mode 100644 hosts/lucca/.hardware-configuration.nix.swp create mode 100644 hosts/lucca/hardware-configuration.nix create mode 100644 modules/none/default.nix create mode 100644 modules/none/home.nix diff --git a/flake.nix b/flake.nix index 2d941d2..956b674 100644 --- a/flake.nix +++ b/flake.nix @@ -124,6 +124,8 @@ environment.systemPackages = with pkgs; [tmux python3Packages.guessit mediainfo yt-dlp]; }) ]; + + lucca = mkSystem "lucca" "none" []; }; }; } diff --git a/hosts/lucca/.hardware-configuration.nix.swp b/hosts/lucca/.hardware-configuration.nix.swp new file mode 100644 index 0000000000000000000000000000000000000000..137dd3f3ef34719eb7255a2024ec9f1cf3cec7ff GIT binary patch literal 12288 zcmeI2J!~9B6vrni623zCXdpDtX9)=M?%KYK?@S0qa*;?N(n*kj6d`AJch)z#y`9y} ztk0+5BocxO0Ugjnmzo9&=#W5APy!VZR1_ctqDjGj_s))!bL({?%)(~ z3OEIv0!{&^fK$LJ;1qBQI0c*nP64OD|4;!QGxpsc#-{E<^7#M%`tSdb_cNwI8$1RM zfJeYyum^l|KVw(G+aLu!&;g5J3LF5Bg5UQs_5=6=d=5SXR{#em!7*?YJP!7QzwTq~ zH}EU?8hipi1aE>%;37B++TbZL4QgOF_~l;4z6D=_FTqD(4J60i-&k(N8KDhk^5_WF=Ij3Kq1s`*{0I|zd2iYHMMIV0xlO(|?2P}+#`&}B z*`4#N6&WkjlyYT^3{yc?5mF-Cm4;Ma4nxjRSXh$w2}4>$s^1q`EaG)Tq$D%K^yK*> zi%Rp#>65lAkX*G32S?7}ue`X~1Hms4O`+_3vQUJwqwqL6XGTZ{9}dR=(ooJhPzm@IgqXhhz8b2btS&8QI_3Tua{D&PUn z+m$OrM@B)`MnQ-Y^U^S{LM-Me$};lixUpVIOm#hxsd%w^5{zF9`k4))+Jv{!CLs#a zuZ1#;YwOF|94S+o*dkWtbYRluz<*_K&MWX#-6HZ$MiXgVUzA!AI_1MHqHQEGxvQ{N24!7MI@_nDyo@Uc! z_YH)Ng3*Bc#PB*AAl^hg_F-B!#y%fXh#m;72U=Q-ZW|6MDQuwyY*$oN&Al6+sFRAa zUG_04Pf?d=5DQM)iZW%(WMncNHT1GLrie~h8gN6)A`^HKp}E5G)ywZ!iFxZ+$K&-^ IFMq)P2J4{31poj5 literal 0 HcmV?d00001 diff --git a/hosts/lucca/hardware-configuration.nix b/hosts/lucca/hardware-configuration.nix new file mode 100644 index 0000000..5e745e2 --- /dev/null +++ b/hosts/lucca/hardware-configuration.nix @@ -0,0 +1,76 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ ]; + + boot.initrd.availableKernelModules = [ "virtio_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/mnt/wsl" = + { device = "none"; + fsType = "tmpfs"; + }; + + fileSystems."/usr/lib/wsl/drivers" = + { device = "none"; + fsType = "9p"; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/3d4637c7-738d-4b8b-874d-1bac3a208ad5"; + fsType = "ext4"; + }; + + fileSystems."/mnt/wslg" = + { device = "none"; + fsType = "tmpfs"; + }; + + fileSystems."/mnt/wslg/distro" = + { device = ""; + fsType = "none"; + options = [ "bind" ]; + }; + + fileSystems."/usr/lib/wsl/lib" = + { device = "none"; + fsType = "overlay"; + }; + + fileSystems."/mnt/wslg/doc" = + { device = "none"; + fsType = "overlay"; + }; + + fileSystems."/mnt/wslg/.X11-unix" = + { device = "/mnt/wslg/.X11-unix"; + fsType = "none"; + options = [ "bind" ]; + }; + + fileSystems."/mnt/c" = + { device = "drvfs"; + fsType = "9p"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a892733e-b1ef-4bf6-be4c-270ce67c4c5b"; } + ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.bonding_masters.useDHCP = lib.mkDefault true; + # networking.interfaces.eth0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + + system.stateVersion = "23.05"; +} diff --git a/modules/none/default.nix b/modules/none/default.nix new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/modules/none/default.nix @@ -0,0 +1 @@ +{} diff --git a/modules/none/home.nix b/modules/none/home.nix new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/modules/none/home.nix @@ -0,0 +1 @@ +{}