some corrections for raspi

This commit is contained in:
Andreas Zweili 2022-03-15 17:44:59 +01:00
parent fb6e61d05b
commit f3bbfb9382
1 changed files with 10 additions and 2 deletions

View File

@ -41,6 +41,14 @@
overlay-unstable overlay-unstable
]; ];
}; };
arm-pkgs = import nixpkgs {
system = "aarch64-linux";
config = {
allowUnfree = true;
};
};
mkComputer = configurationNix: nixpkgs.lib.nixosSystem { mkComputer = configurationNix: nixpkgs.lib.nixosSystem {
inherit system pkgs; inherit system pkgs;
specialArgs = { inherit custom inputs; }; specialArgs = { inherit custom inputs; };
@ -84,7 +92,7 @@
]); ]);
}; };
mkRaspi = configurationNix: nixpkgs.lib.nixosSystem { mkRaspi = configurationNix: nixpkgs.lib.nixosSystem {
inherit system pkgs; system = "aarch64-linux";
specialArgs = { inherit custom inputs; }; specialArgs = { inherit custom inputs; };
modules = ( modules = (
[ [
@ -126,7 +134,7 @@
pihole = mkVM ./systems/pihole; pihole = mkVM ./systems/pihole;
plex = mkVM ./systems/plex; plex = mkVM ./systems/plex;
proxy = mkVM ./systems/proxy; proxy = mkVM ./systems/proxy;
raspi-test = mkVM ./systems/raspi-test; raspi-test = mkRaspi ./systems/raspi-test;
restic-server = mkVM ./systems/restic-server; restic-server = mkVM ./systems/restic-server;
rss-bridge = mkVM ./systems/rss-bridge; rss-bridge = mkVM ./systems/rss-bridge;
ttrss = mkVM ./systems/ttrss; ttrss = mkVM ./systems/ttrss;