summaryrefslogtreecommitdiff
path: root/neko
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-01-15 18:56:16 +0100
committerChristoph Cullmann <cullmann@kde.org>2023-01-15 18:56:16 +0100
commit73c8db5b7cadc211bfc84eebded1a2e848abc7af (patch)
tree2990dfe4e25f5e601582157d28c8f8177412463a /neko
import nixos config of home machines
Diffstat (limited to 'neko')
-rw-r--r--neko/configuration.nix20
-rw-r--r--neko/hardware-configuration.nix51
2 files changed, 71 insertions, 0 deletions
diff --git a/neko/configuration.nix b/neko/configuration.nix
new file mode 100644
index 0000000..fe794fa
--- /dev/null
+++ b/neko/configuration.nix
@@ -0,0 +1,20 @@
+# Edit this configuration file to define what should be installed on
+# your system. Help is available in the configuration.nix(5) man page
+# and in the NixOS manual (accessible by running ‘nixos-help’).
+
+{ config, pkgs, ... }:
+
+{
+ imports =
+ [
+ # Include the results of the hardware scan.
+ ./hardware-configuration.nix
+
+ # Shared config of all machines
+ /home/cullmann/install/nixos/common.nix
+ ];
+
+ # host name & id
+ networking.hostName = "neko";
+ networking.hostId = "eb707291";
+}
diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix
new file mode 100644
index 0000000..b90f66f
--- /dev/null
+++ b/neko/hardware-configuration.nix
@@ -0,0 +1,51 @@
+# 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" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/nix" =
+ { device = "zroot/nix";
+ fsType = "zfs";
+ };
+
+ fileSystems."/home" =
+ { device = "zroot/home";
+ fsType = "zfs";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/9CF2-12FF";
+ fsType = "vfat";
+ };
+
+ fileSystems."/boot-fallback" =
+ { device = "/dev/disk/by-uuid/9CF2-9E07";
+ fsType = "vfat";
+ };
+
+ 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.enp0s20f0u4u3.useDHCP = lib.mkDefault true;
+ # networking.interfaces.enp8s0.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;
+ # high-resolution display
+ hardware.video.hidpi.enable = lib.mkDefault true;
+}