diff --git a/.taskfiles/nix/Taskfile.yaml b/.taskfiles/nix/Taskfile.yaml index fdbb466..5ab4a44 100644 --- a/.taskfiles/nix/Taskfile.yaml +++ b/.taskfiles/nix/Taskfile.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://taskfile.dev/schema.json version: "3" vars: diff --git a/.taskfiles/pre-commit/Taskfile.yaml b/.taskfiles/pre-commit/Taskfile.yaml index 1a86675..637d1b1 100644 --- a/.taskfiles/pre-commit/Taskfile.yaml +++ b/.taskfiles/pre-commit/Taskfile.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://taskfile.dev/schema.json version: "3" vars: diff --git a/.taskfiles/sops/Taskfile.yaml b/.taskfiles/sops/Taskfile.yaml index 115a287..3c1ef8a 100644 --- a/.taskfiles/sops/Taskfile.yaml +++ b/.taskfiles/sops/Taskfile.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://taskfile.dev/schema.json version: "3" tasks: diff --git a/nixos/profiles/hw-rpi4.nix b/nixos/profiles/hw-rpi4.nix new file mode 100644 index 0000000..ad2d4c1 --- /dev/null +++ b/nixos/profiles/hw-rpi4.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, imports, boot, ... }: + +with lib; +{ + boot = { + + initrd.availableKernelModules = [ "xhci_pci" "usb_storage" ]; + initrd.kernelModules = [ ]; + kernelModules = [ ]; + extraModulePackages = [ ]; + + loader = { + # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) + grub.enable = false; + # Enables the generation of /boot/extlinux/extlinux.conf + generic-extlinux-compatible.enable = true; + }; + }; + + console.enable = false; + mySystem.system.packages = with pkgs; [ + libraspberrypi + raspberrypi-eeprom + ]; + + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + +}