2022-04-10 13:59:39 +02:00
# 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 = [ " u s b h i d " ] ;
boot . initrd . kernelModules = [ ] ;
boot . kernelModules = [ ] ;
boot . extraModulePackages = [ ] ;
boot . kernelParams = [ " s n d _ b c m 2 8 3 5 . e n a b l e _ h e a d p h o n e s = 1 " ] ;
boot . blacklistedKernelModules = [ " v c 4 _ h d m i " ] ;
fileSystems = {
" / b o o t " = {
device = " / d e v / d i s k / b y - l a b e l / F I R M W A R E " ;
fsType = " v f a t " ;
} ;
" / s w a p " = {
2022-09-06 17:16:31 +02:00
device = " / d e v / d i s k / b y - u u i d / S W A P " ;
fsType = " b t r f s " ;
options = [ " s u b v o l = s w a p " " c o m p r e s s = l z o " " n o a t i m e " ] ; # Note these options effect the entire BTRFS filesystem and not just this volume, with the exception of `"subvol=swap"`, the other options are repeated in my other `fileSystem` mounts
2022-04-10 13:59:39 +02:00
} ;
" / " = {
device = " / d e v / d i s k / b y - l a b e l / N I X O S _ S D " ;
fsType = " e x t 4 " ;
} ;
} ;
2022-09-06 17:16:31 +02:00
2022-04-10 13:59:39 +02:00
swapDevices = [ {
2022-09-06 17:16:31 +02:00
device = " / s w a p / s w a p f i l e " ;
size = ( 1024 * 2 ) ;
2022-04-10 13:59:39 +02:00
} ] ;
hardware . enableRedistributableFirmware = true ;
#networking.wireless.enable = true;
boot . loader . raspberryPi . firmwareConfig = ''
gpu_mem = 192
dtparam = audio = on
'' ;
powerManagement . cpuFreqGovernor = lib . mkDefault " p e r f o r m a n c e " ;
}