use system type as host
This commit is contained in:
parent
8b5dbd9d92
commit
59ddf06cd6
3 changed files with 2 additions and 2 deletions
43
systems/pi4/default.nix
Normal file
43
systems/pi4/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
modulesPath,
|
||||
lib,
|
||||
nixos-hardware,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" ];
|
||||
};
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
boot.supportedFilesystems = lib.mkForce [
|
||||
"btrfs"
|
||||
"cifs"
|
||||
"f2fs"
|
||||
"jfs"
|
||||
"ntfs"
|
||||
"reiserfs"
|
||||
"vfat"
|
||||
"xfs"
|
||||
"bchachefs"
|
||||
];
|
||||
|
||||
#hardware.raspberry-pi."4".fkms-3d.enable = true;
|
||||
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
};
|
||||
|
||||
#services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
||||
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue