summary refs log tree commit diff
path: root/machines/corsac
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-10-26 17:44:36 +0200
committerMel <einebeere@gmail.com>2024-10-26 17:44:36 +0200
commit1e0eca0bcbfc338a585842c65c4b48d62d79728d (patch)
tree9ab21421d798f0812c966532d8c10bb5c8384e81 /machines/corsac
downloadnetwork-1e0eca0bcbfc338a585842c65c4b48d62d79728d.tar.zst
network-1e0eca0bcbfc338a585842c65c4b48d62d79728d.zip
Glued together corsac configuration
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/corsac')
-rw-r--r--machines/corsac/default.nix12
-rw-r--r--machines/corsac/devices.nix16
-rw-r--r--machines/corsac/hardware.nix40
-rw-r--r--machines/corsac/home.nix9
4 files changed, 77 insertions, 0 deletions
diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix
new file mode 100644
index 0000000..b118d10
--- /dev/null
+++ b/machines/corsac/default.nix
@@ -0,0 +1,12 @@
+{ ... }:
+
+{
+  imports = [
+    ../../modules/common.nix
+
+    ./hardware.nix
+    ./devices.nix
+  ];
+
+  system.stateVersion = "24.05";
+}
diff --git a/machines/corsac/devices.nix b/machines/corsac/devices.nix
new file mode 100644
index 0000000..71ef8d2
--- /dev/null
+++ b/machines/corsac/devices.nix
@@ -0,0 +1,16 @@
+{ config, pkgs, ... }:
+
+{
+  # boot settings
+  boot = {
+    loader = { 
+      systemd-boot.enable = true;
+      efi.canTouchEfiVariables = true;
+    };
+  
+    initrd.systemd.enable = true; 
+  };
+
+  # internet
+  networking.networkmanager.enable = true;
+}
diff --git a/machines/corsac/hardware.nix b/machines/corsac/hardware.nix
new file mode 100644
index 0000000..c3038be
--- /dev/null
+++ b/machines/corsac/hardware.nix
@@ -0,0 +1,40 @@
+# 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."/" =
+    { device = "/dev/disk/by-uuid/6f0a097f-b957-4210-b51a-65e62aa780b2";
+      fsType = "ext4";
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/914D-4159";
+      fsType = "vfat";
+      options = [ "fmask=0077" "dmask=0077" ];
+    };
+
+  swapDevices =
+    [ { device = "/dev/disk/by-uuid/ce3c3e2c-1f16-4e37-90f3-9ccfc81ee4c8"; }
+    ];
+
+  # 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.enp1s0.useDHCP = lib.mkDefault true;
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/machines/corsac/home.nix b/machines/corsac/home.nix
new file mode 100644
index 0000000..dce0783
--- /dev/null
+++ b/machines/corsac/home.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }:
+
+{
+  imports = [
+    ../../modules/home/common.nix
+  ];
+
+  home.stateVersion = "24.05";
+}