summaryrefslogtreecommitdiff
path: root/hosts/kyren-laptop/hardware-configuration.nix
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-31 23:30:15 +0200
committerKyren223 <Kyren223@proton.me>2024-12-31 23:30:15 +0200
commit6daf7a47e35d9fac1c2ed284222df90ac27e041e (patch)
treefbe10515c74fb40b533fb753c33c484542ad218a /hosts/kyren-laptop/hardware-configuration.nix
parent4d995c5ed8ddf005192b9250eb930d12f88446a9 (diff)
Changed hostname to kyren-laptop and added syncthing
Diffstat (limited to 'hosts/kyren-laptop/hardware-configuration.nix')
-rw-r--r--hosts/kyren-laptop/hardware-configuration.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/hosts/kyren-laptop/hardware-configuration.nix b/hosts/kyren-laptop/hardware-configuration.nix
new file mode 100644
index 0000000..ac755f7
--- /dev/null
+++ b/hosts/kyren-laptop/hardware-configuration.nix
@@ -0,0 +1,41 @@
+# 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 = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-amd" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/07da3892-5b26-43d5-9e41-dbab9f4a8067";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/6051-DAFB";
+ fsType = "vfat";
+ options = [ "fmask=0077" "dmask=0077" ];
+ };
+
+ swapDevices = [ {
+ device = "/var/lib/swapfile";
+ size = 16*1024;
+ } ];
+
+ # 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.wlo1.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}