From a628a680da7e70889027ad2e2edc3e3b199f12d5 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 27 Oct 2021 16:10:19 -0400 Subject: [PATCH] hosts/Infini-STICK: create USB stick configuration --- hosts/Infini-STICK/default.nix | 20 +++++++++++++ hosts/Infini-STICK/hardware-configuration.nix | 28 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 hosts/Infini-STICK/default.nix create mode 100644 hosts/Infini-STICK/hardware-configuration.nix 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"; +}