From 387b219fd511960c51c74f63a2d5f56e9ba963a5 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 27 Apr 2021 11:56:19 +0200 Subject: machines/sternenseemann/racker: init Minimal configuration, just to get some cache going (that's at least the idea). This should at least make having i686-linux builds worth something :) --- machines/default.nix | 1 + machines/sternenseemann/racker.nix | 69 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 machines/sternenseemann/racker.nix (limited to 'machines') diff --git a/machines/default.nix b/machines/default.nix index 9b2d3e69..68185b9d 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -26,6 +26,7 @@ with import ../lib; # mikiya = callMachine ./profpatsch/mikiya.nix {}; }; sternenseemann = { + racker = callMachine ./sternenseemann/racker.nix {}; wolfgang = callMachine ./sternenseemann/wolfgang.nix {}; }; misc = { diff --git a/machines/sternenseemann/racker.nix b/machines/sternenseemann/racker.nix new file mode 100644 index 00000000..63dc554f --- /dev/null +++ b/machines/sternenseemann/racker.nix @@ -0,0 +1,69 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./base.nix + ./base-laptop.nix + ./fonts.nix + ./user-lukas.nix + ]; + + config = { + hardware.bluetooth.enable = false; + + nixpkgs.localSystem = { + system = "i686-linux"; + config = "i686-unknown-linux-gnu"; + }; + + system.stateVersion = "21.05"; + + boot = { + loader.grub = { + enable = true; + version = 2; + device = "/dev/sda"; + }; + + initrd.availableKernelModules = [ + "uhci_hcd" + "ehci_pci" + "ata_piix" + "usb_storage" + "floppy" + "usblp" + "pcspkr" + "btusb" + ]; + + initrd.luks.devices = { + main.device = "/dev/disk/by-label/crypted-main"; + swap.device = "/dev/disk/by-label/crypted-swap"; + }; + }; + + fileSystems = { + "/" = { + device = "/dev/mapper/main"; + fsType = "btrfs"; + }; + + "/boot" = { + device = "/dev/disk/by-label/boot"; + fsType = "ext4"; + }; + }; + + swapDevices = [ + { device = "/dev/mapper/swap"; } + ]; + + hardware.enableRedistributableFirmware = true; + + networking.hostName = "racker"; + + nix.maxJobs = 2; + + vuizvui.profiles.tvl.enable = true; + }; +} -- cgit 1.4.1