diff options
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | hosts/nixbook-pro/default.nix | 37 | ||||
| -rw-r--r-- | hosts/nixbook-pro/hardware.nix | 31 |
3 files changed, 69 insertions, 0 deletions
@@ -59,6 +59,7 @@ "template" "nixedo" "workstation" + "nixbook-pro" ]; in { 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; +} |