remove hardcoded system type assumptions to allow for aarch hosts

This commit is contained in:
Cyryl Płotnicki 2024-01-02 19:14:31 +00:00
parent 0b0150fa75
commit a78cb848f1
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@
config, config,
pkgs, pkgs,
inputs, inputs,
system,
... ...
}: let }: let
workstations = ["skinnyv" "foryog" "thinky"]; workstations = ["skinnyv" "foryog" "thinky"];
@ -13,7 +14,7 @@ in {
dataDir = "/home/cyryl/"; dataDir = "/home/cyryl/";
openDefaultPorts = true; openDefaultPorts = true;
package = package =
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing; inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing;
overrideDevices = false; overrideDevices = false;
settings = { settings = {
devices = { devices = {

View file

@ -2,10 +2,11 @@
config, config,
pkgs, pkgs,
inputs, inputs,
system,
... ...
}: let }: let
inherit inherit
(inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux") (inputs.nixpkgs-nixos-unstable.legacyPackages."${system}")
tailscale tailscale
; ;
in { in {