diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-06 09:12:23 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-06 09:12:23 +0200 |
| commit | b627fcc10bb7dce26ab5ca78a75cd330762aa96b (patch) | |
| tree | 1cd38df44a0474e043b4717d60092437a11c6f18 /hosts/nixbook-pro | |
| parent | 20b43fdd36cc797b1b8f4c3572c8686f3dee95b4 (diff) | |
| parent | 4082a783bf418eca4a013d5194ed7c7d4257d255 (diff) | |
Merge branch 'master' of https://git.nathanreiner.xyz/nix/system
Diffstat (limited to 'hosts/nixbook-pro')
| -rw-r--r-- | hosts/nixbook-pro/default.nix | 37 | ||||
| -rw-r--r-- | hosts/nixbook-pro/hardware.nix | 31 |
2 files changed, 68 insertions, 0 deletions
diff --git a/hosts/nixbook-pro/default.nix b/hosts/nixbook-pro/default.nix new file mode 100644 index 0000000..ed59bf9 --- /dev/null +++ b/hosts/nixbook-pro/default.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware.nix + ../../modules/hyprland/monitor.nix + ]; + + networking = { + hostName = "nixbook-pro"; + enableB43Firmware = true; + }; + + boot.loader = { + efi.canTouchEfiVariables = true; + grub = { + enable = true; + device = "nodev"; + efiSupport = true; + configurationLimit = 10; + }; + }; + + hyprland.monitors = { + default = { + resolution = "preferred"; + position = "auto"; + scale = 1; + }; + }; + + webtray.instances = {}; + + system.stateVersion = "25.11"; # Did you read the comment? + +} + diff --git a/hosts/nixbook-pro/hardware.nix b/hosts/nixbook-pro/hardware.nix new file mode 100644 index 0000000..3349e63 --- /dev/null +++ b/hosts/nixbook-pro/hardware.nix @@ -0,0 +1,31 @@ +# 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" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "uas" "sd_mod" "sr_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d8cbb09e-342c-41d0-b43c-174d942f2772"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/59F9-5576"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |