From dbda697dc4830b973858f79e7057fe1a5922729c Mon Sep 17 00:00:00 2001 From: "Nathan P. Reiner" Date: Tue, 5 May 2026 23:22:45 +0000 Subject: add nixbook-pro --- hosts/nixbook-pro/default.nix | 38 ++++++++++++++++++++++++++++++++++++++ hosts/nixbook-pro/hardware.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 hosts/nixbook-pro/default.nix create mode 100644 hosts/nixbook-pro/hardware.nix (limited to 'hosts') diff --git a/hosts/nixbook-pro/default.nix b/hosts/nixbook-pro/default.nix new file mode 100644 index 0000000..475ff43 --- /dev/null +++ b/hosts/nixbook-pro/default.nix @@ -0,0 +1,38 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware.nix + ../../modules/hyprland/monitor.nix + ]; + + networking.hostName = "nixbook-pro"; + + 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; +} -- cgit v1.2.3-70-g09d2 From 4082a783bf418eca4a013d5194ed7c7d4257d255 Mon Sep 17 00:00:00 2001 From: "Nathan P. Reiner" Date: Wed, 6 May 2026 07:01:42 +0200 Subject: nixbook-pro: add configuration --- hosts/nixbook-pro/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'hosts') diff --git a/hosts/nixbook-pro/default.nix b/hosts/nixbook-pro/default.nix index 475ff43..ed59bf9 100644 --- a/hosts/nixbook-pro/default.nix +++ b/hosts/nixbook-pro/default.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - { config, lib, pkgs, ... }: { @@ -10,7 +6,10 @@ ../../modules/hyprland/monitor.nix ]; - networking.hostName = "nixbook-pro"; + networking = { + hostName = "nixbook-pro"; + enableB43Firmware = true; + }; boot.loader = { efi.canTouchEfiVariables = true; @@ -23,11 +22,11 @@ }; hyprland.monitors = { - default = { - resolution = "preferred"; - position = "auto"; - scale = 1; - }; + default = { + resolution = "preferred"; + position = "auto"; + scale = 1; + }; }; webtray.instances = {}; -- cgit v1.2.3-70-g09d2