From a3fb7dde0ad76a43885dbb6a88edc680752412ba Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 11 May 2020 14:29:18 +0000 Subject: sys/eve: init --- sys/default.nix | 1 + sys/eve.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 sys/eve.nix (limited to 'sys') diff --git a/sys/default.nix b/sys/default.nix index a53338a06dad..670b985403b6 100644 --- a/sys/default.nix +++ b/sys/default.nix @@ -6,5 +6,6 @@ in { atuin = buildSystem ./atuin.nix; + eve = buildSystem ./eve.nix; x220 = buildSystem ./x220.nix; } diff --git a/sys/eve.nix b/sys/eve.nix new file mode 100644 index 000000000000..e51bdd1f2c7a --- /dev/null +++ b/sys/eve.nix @@ -0,0 +1,42 @@ +{ pkgs, ... }: + +{ + imports = [ + ../modules/workstation/physical + ../modules/workstation/hardware/pixelbook + ]; + + hardware.enableRedistributableFirmware = true; + + boot.initrd.availableKernelModules = [ "nvme" "usb_storage" "sdhci_pci" ]; + boot.kernelModules = [ "kvm-intel" ]; + + boot.loader.grub.device = "/dev/disk/by-id/nvme-SAMSUNG_KUS040205M-B001_S3VBNY0KA60897"; + + fileSystems."/" = { fsType = "zfs"; device = "rpool/local/root"; }; + fileSystems."/tmp" = { fsType = "zfs"; device = "rpool/local/tmp"; }; + fileSystems."/nix" = { fsType = "zfs"; device = "rpool/local/nix"; }; + fileSystems."/home" = { fsType = "zfs"; device = "rpool/data/home"; }; + fileSystems."/state" = { fsType = "zfs"; device = "rpool/data/state"; }; + fileSystems."/boot" = { + fsType = "ext4"; + device = "/dev/disk/by-uuid/ecbd0da4-29f4-4a3b-adde-6c365b405863"; + }; + + # TODO: do this with ZFS + boot.cleanTmpDir = true; + + networking.hostName = "eve"; + networking.hostId = "c00b7876"; + + nix.maxJobs = 4; + + console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; + programs.sway.extraConfig = '' + output eDP-1 scale 2 + ''; + + users.users.qyliss.hashedPassword = "$5$rounds=2000000$FPrRi1TT.rCn$8MhcwE7JL8yTKI.fSRe4ZgJP3eumStDCNl5Pb.IN9i5"; + + system.stateVersion = "20.03"; +} -- cgit 1.4.1