hosts/Infini-STICK: create USB stick configuration

This commit is contained in:
Infinidoge 2021-10-27 16:10:19 -04:00
parent a0afbfe4cf
commit a628a680da
2 changed files with 48 additions and 0 deletions

View file

@ -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";
}

View file

@ -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";
}