From e73fcff03faed773df2500965cb9c4a4fcfbc04d Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 12 Mar 2021 00:33:07 +0100 Subject: machines: Add temporary laptop slylandro Since Tishtushi had a SSD failure and thus became a majoor nuisance to work with, I got a temporary laptop from someone (since I don't know whether they want to be mentioned, I leave out their name for now) in order to be able to be more productive than waiting for several seconds for a 1 KiB text file to be saved. Right now, I'm not sure whether any firmware is needed for the temporary laptop, so this is a hardware configuration just to get started with a proper Hydra channel. Signed-off-by: aszlig --- machines/aszlig/slylandro.nix | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 machines/aszlig/slylandro.nix (limited to 'machines/aszlig') diff --git a/machines/aszlig/slylandro.nix b/machines/aszlig/slylandro.nix new file mode 100644 index 00000000..dd82799d --- /dev/null +++ b/machines/aszlig/slylandro.nix @@ -0,0 +1,52 @@ +{ pkgs, lib, ... }: + +{ + vuizvui.user.aszlig.profiles.workstation.enable = true; + + vuizvui.system.kernel.bfq.enable = true; + + boot = { + loader.systemd-boot.enable = true; + loader.grub.enable = lib.mkForce false; + loader.efi.canTouchEfiVariables = true; + kernelPackages = pkgs.linuxPackages_latest; + + initrd = { + luks.devices = { + slylandro-swap = { + device = "/dev/disk/by-uuid/6ce7f3a4-64cc-4d5c-a220-662d3d589220"; + }; + slylandro-root = { + device = "/dev/disk/by-uuid/76ddcc8f-060e-44f9-af08-886d7395e466"; + }; + }; + }; + }; + + networking.hostName = "slylandro"; + networking.wireless.enable = lib.mkForce true; + networking.interfaces.enp5s0.useDHCP = true; + networking.interfaces.wlp3s0.useDHCP = true; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/DF3B-267A"; + fsType = "vfat"; + }; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/a96de4ae-60a3-463d-bca3-2ef7f207f8f4"; + fsType = "btrfs"; + options = [ "space_cache" "compress=zstd" "noatime" ]; + }; + + swapDevices = lib.singleton { + device = "/dev/disk/by-uuid/9c5a118d-656a-4bf5-833a-225bb2c887c4"; + }; + + services.tlp.enable = true; + + services.xserver.videoDrivers = [ "nouveau" "intel" ]; + services.xserver.libinput.enable = true; + + nix.maxJobs = 4; +} -- cgit 1.4.1