From b52f7c1e41a5e0c418d6d06ad5c70f86f366be42 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 6 May 2019 21:27:58 -0700 Subject: [PATCH] [NixOS] Add blade15 config file --- nixos/machines/dfinity-blade15.nix | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 nixos/machines/dfinity-blade15.nix diff --git a/nixos/machines/dfinity-blade15.nix b/nixos/machines/dfinity-blade15.nix new file mode 100644 index 00000000..5e363c4a --- /dev/null +++ b/nixos/machines/dfinity-blade15.nix @@ -0,0 +1,39 @@ +# 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, ... }: + +{ + imports = + [ + ../configuration.nix + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + services.xserver.libinput.enable = true; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/58218a04-3ba1-4295-86bb-ada59f75e3b6"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/8142784e-45c6-4a2b-91f1-09df741ac00f"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/36E1-BE93"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + networking.hostName = "ivanm-dfinity-razr"; + + nix.maxJobs = lib.mkDefault 12; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +}