diff --git a/hosts/Infini-STICK/default.nix b/hosts/Infini-STICK/default.nix new file mode 100644 index 0000000..51d3679 --- /dev/null +++ b/hosts/Infini-STICK/default.nix @@ -0,0 +1,20 @@ +{ lib, suites, profiles, ... }: { + imports = lib.lists.flatten [ + (with suites; [ graphic develop ]) + + (with profiles; [ + boot.grub + + networking.wireless + + (with hardware; [ + sound + gpu.common + ]) + + btrfs + ]) + ]; + + system.stateVersion = "21.11"; +} diff --git a/hosts/Infini-STICK/hardware-configuration.nix b/hosts/Infini-STICK/hardware-configuration.nix new file mode 100644 index 0000000..be30329 --- /dev/null +++ b/hosts/Infini-STICK/hardware-configuration.nix @@ -0,0 +1,28 @@ +# 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" "ahci" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "btrfs"; + options = [ "subvol=root" "compress=zstd" "autodefrag" "noatime" ]; + }; + + fileSystems."/boot/efi" = { + device = "/dev/disk/by-uuid/0E4C-42B2"; + fsType = "vfat"; + }; + + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; +}