Created
September 23, 2025 01:47
-
-
Save JamieMagee/b95b42e545ea56c2072b15bc6a41261f to your computer and use it in GitHub Desktop.
Revisions
-
JamieMagee created this gist
Sep 23, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,65 @@ { description = "Example Raspberry Pi 5 configuration flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; nixos-raspberrypi.url = "github:nvmd/nixos-raspberrypi/main"; }; nixConfig = { extra-substituters = [ "https://nixos-raspberrypi.cachix.org" ]; extra-trusted-public-keys = [ "nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI=" ]; }; outputs = { self, nixpkgs, nixos-raspberrypi }@inputs: { nixosConfigurations = { yourHostname = nixos-raspberrypi.lib.nixosSystem { specialArgs = inputs; modules = [ ({...}: { imports = with nixos-raspberrypi.nixosModules; [ raspberry-pi-5.base raspberry-pi-5.bluetooth ]; }) ({ ... }: { networking.hostName = "yourHostName"; users.users.yourUserName = { initialPassword = "yourInitialPassword"; isNormalUser = true; extraGroups = [ "wheel" ]; }; services.openssh.enable = true; }) ({ ... }: { fileSystems = { "/boot/firmware" = { device = "/dev/disk/by-uuid/2175-794E"; fsType = "vfat"; options = [ "noatime" "noauto" "x-systemd.automount" "x-systemd.idle-timeout=1min" ]; }; "/" = { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; fsType = "ext4"; options = [ "noatime" ]; }; }; }) ]; }; }; }; }