diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/nixbook-pro/default.nix | 38 | ||||
| -rw-r--r-- | hosts/nixbook-pro/hardware.nix | 31 |
2 files changed, 69 insertions, 0 deletions
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; +} |