From 44fc1feae00bc40d6918021dff0e7fd921cc8703 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 30 Nov 2023 11:28:01 +0200 Subject: [machines] Added configuration for minerva laptop --- machines/minerva/configuration.nix | 6 ++++ machines/minerva/hardware-configuration.nix | 43 +++++++++++++++++++++++++++++ machines/minerva/sysidentity.nix | 7 +++++ 3 files changed, 56 insertions(+) create mode 100644 machines/minerva/configuration.nix create mode 100644 machines/minerva/hardware-configuration.nix create mode 100644 machines/minerva/sysidentity.nix diff --git a/machines/minerva/configuration.nix b/machines/minerva/configuration.nix new file mode 100644 index 0000000..3efaed5 --- /dev/null +++ b/machines/minerva/configuration.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: { + environment.systemPackages = with pkgs; [ + tigervnc ubridge x11vnc xvfb-run + mlocate + ]; +} diff --git a/machines/minerva/hardware-configuration.nix b/machines/minerva/hardware-configuration.nix new file mode 100644 index 0000000..8de0a86 --- /dev/null +++ b/machines/minerva/hardware-configuration.nix @@ -0,0 +1,43 @@ +# 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 = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/3ab0f4b6-3042-4827-9d68-25d673234ed1"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/4FD9-5BBF"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/27ceef42-934e-4d4a-acb9-9cc95aa15333"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + # 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.wlp115s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/machines/minerva/sysidentity.nix b/machines/minerva/sysidentity.nix new file mode 100644 index 0000000..80d1461 --- /dev/null +++ b/machines/minerva/sysidentity.nix @@ -0,0 +1,7 @@ +{ + sysidentity = { + name = "minerva"; + type = "laptop"; + arch = "x86_64-linux"; + }; +} -- cgit v1.3.1-26-gb76a