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
21
flake.nix
21
flake.nix
|
|
@ -3,7 +3,7 @@ description = "Aether - web server configuration";
|
|||
|
||||
inputs = {
|
||||
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.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -13,7 +13,16 @@ inputs = {
|
|||
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
|
||||
inherit (nixpkgs) lib;
|
||||
|
||||
|
|
@ -21,7 +30,11 @@ outputs = inputs@{ self, nixpkgs, nixos-hardware, agenix, ... }:
|
|||
# (Mostly used for injecting flake inputs)
|
||||
extraConfig = {
|
||||
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" =
|
||||
nixpkgs.lib.nixosSystem {
|
||||
nixos-raspberrypi.lib.nixosSystem {
|
||||
specialArgs = inputs // {
|
||||
aether = self.nixosModules;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue