From b2f4c85a6c1afb74b257a14dcce9236ae021fe4a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 17 Oct 2026 10:19:47 +0200 Subject: refactor: pass sources via specialArgs --- nixos/hosts/ev/default.nix | 3 +-- nixos/hosts/hamac/default.nix | 3 +-- nixos/hosts/tente/default.nix | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'nixos/hosts') diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix index 3e30678..a528fe4 100644 --- a/nixos/hosts/ev/default.nix +++ b/nixos/hosts/ev/default.nix @@ -2,13 +2,12 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, sources, ... }: let ports = import ./ports.nix; helpers = import { inherit config lib pkgs; }; backupHost = "u518695-sub2@u518695-sub2.your-storagebox.de"; - sources = import ; pkgs-unstable = import sources.nixos-unstable {}; in { diff --git a/nixos/hosts/hamac/default.nix b/nixos/hosts/hamac/default.nix index f258606..c68c408 100644 --- a/nixos/hosts/hamac/default.nix +++ b/nixos/hosts/hamac/default.nix @@ -1,9 +1,8 @@ # See the configuration.nix(5) man page and the NixOS manual (accessible by running `nixos-help`). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, sources, ... }: let - sources = import ; pkgs-unstable = import sources.nixos-unstable {}; in { diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index edf2bd8..04a2c98 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -2,14 +2,13 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, sources, ... }: let baseDomain = "push-f.com"; acmeEmail = "martin@push-f.com"; backupHost = "u518695-sub1@u518695-sub1.your-storagebox.de"; ports = import ./ports.nix; - sources = import ; helpers = import { inherit config lib pkgs; }; gitoliteDataDir = "/srv/gitolite"; reposDir = "${gitoliteDataDir}/repositories"; -- cgit v1.3.1