Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit44fc1feae00bc40d6918021dff0e7fd921cc8703 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-11-30 11:28:01 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-11-30 11:28:01 +0200
Filesae069b59fc492b94321d7ea4cc91aea9c4014c4e
nix-44fc1feae00bc40d6918021dff0e7fd921cc8703.tar
nix-44fc1feae00bc40d6918021dff0e7fd921cc8703.tar.gz
nix-44fc1feae00bc40d6918021dff0e7fd921cc8703.zip
Parent73e9b027ba3565fe240788b916f69e81450126e7 (diff)
[machines] Added configuration for minerva laptop
3 files changed, 56 insertions, 0 deletions
-rw-r--r--machines/minerva/configuration.nix6
-rw-r--r--machines/minerva/hardware-configuration.nix43
-rw-r--r--machines/minerva/sysidentity.nix7
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.<interface>.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";
+ };
+}