From a78cb848f17c310d514342efe51bdde3d297d1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 2 Jan 2024 19:14:31 +0000 Subject: [PATCH] remove hardcoded system type assumptions to allow for aarch hosts --- nixos/syncthing.nix | 3 ++- nixos/tailscale/default.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix index 426dfdad..e8943b19 100644 --- a/nixos/syncthing.nix +++ b/nixos/syncthing.nix @@ -2,6 +2,7 @@ config, pkgs, inputs, + system, ... }: let workstations = ["skinnyv" "foryog" "thinky"]; @@ -13,7 +14,7 @@ in { dataDir = "/home/cyryl/"; openDefaultPorts = true; package = - inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing; + inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing; overrideDevices = false; settings = { devices = { diff --git a/nixos/tailscale/default.nix b/nixos/tailscale/default.nix index 15893ffa..a9628191 100644 --- a/nixos/tailscale/default.nix +++ b/nixos/tailscale/default.nix @@ -2,10 +2,11 @@ config, pkgs, inputs, + system, ... }: let inherit - (inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux") + (inputs.nixpkgs-nixos-unstable.legacyPackages."${system}") tailscale ; in {