hosts/Infini-STICK: create USB stick configuration
This commit is contained in:
parent
a0afbfe4cf
commit
a628a680da
2 changed files with 48 additions and 0 deletions
20
hosts/Infini-STICK/default.nix
Normal file
20
hosts/Infini-STICK/default.nix
Normal 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";
|
||||||
|
}
|
28
hosts/Infini-STICK/hardware-configuration.nix
Normal file
28
hosts/Infini-STICK/hardware-configuration.nix
Normal 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";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue