tweak!(deploy-rpi5): switch to nixos-raspberrypi
This project is better-maintained and more stable, so it's what we're using now.
This commit is contained in:
parent
108ab3fd4f
commit
c11792ae07
2 changed files with 19 additions and 7 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
{ config, lib, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.system = "aarch64-linux";
|
nixpkgs.system = "aarch64-linux";
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.raspberry-pi.bootloader = "kernel";
|
||||||
boot.loader.efi.canTouchEfiVariables = false;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
flake.nix
21
flake.nix
|
|
@ -3,7 +3,7 @@ description = "Aether - web server configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-raspberrypi.url = "github:nvmd/nixos-raspberrypi/main";
|
||||||
|
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -13,7 +13,16 @@ inputs = {
|
||||||
forgejo-tokyo-night.flake = false;
|
forgejo-tokyo-night.flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, nixos-hardware, agenix, ... }:
|
nixConfig = {
|
||||||
|
extra-substituters = [
|
||||||
|
"https://nixos-raspberrypi.cachix.org"
|
||||||
|
];
|
||||||
|
extra-trusted-public-keys = [
|
||||||
|
"nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs@{ self, nixpkgs, nixos-raspberrypi, agenix, ... }:
|
||||||
let
|
let
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
|
|
@ -21,7 +30,11 @@ outputs = inputs@{ self, nixpkgs, nixos-hardware, agenix, ... }:
|
||||||
# (Mostly used for injecting flake inputs)
|
# (Mostly used for injecting flake inputs)
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
deploy-rpi5 = {
|
deploy-rpi5 = {
|
||||||
imports = [ nixos-hardware.nixosModules.raspberry-pi-5 ];
|
imports = with nixos-raspberrypi.nixosModules; [
|
||||||
|
raspberry-pi-5.base
|
||||||
|
raspberry-pi-5.page-size-16k
|
||||||
|
raspberry-pi-5.display-vc4
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -56,7 +69,7 @@ outputs = inputs@{ self, nixpkgs, nixos-hardware, agenix, ... }:
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."toki-aether" =
|
nixosConfigurations."toki-aether" =
|
||||||
nixpkgs.lib.nixosSystem {
|
nixos-raspberrypi.lib.nixosSystem {
|
||||||
specialArgs = inputs // {
|
specialArgs = inputs // {
|
||||||
aether = self.nixosModules;
|
aether = self.nixosModules;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue