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/profiles/common/default.nix | 16 ++++++---------- nixos/profiles/workstation/create.nix | 5 +---- nixos/profiles/workstation/default.nix | 3 +-- 3 files changed, 8 insertions(+), 16 deletions(-) (limited to 'nixos/profiles') diff --git a/nixos/profiles/common/default.nix b/nixos/profiles/common/default.nix index 1705adf..d891879 100644 --- a/nixos/profiles/common/default.nix +++ b/nixos/profiles/common/default.nix @@ -1,13 +1,9 @@ -{ config, pkgs, ... }: +{ config, pkgs, sources, ... }: { - imports = - let - sources = import ; - in - [ - ./sanix.nix - ./basics.nix - "${sources.agenix}/modules/age.nix" - ]; + imports = [ + ./sanix.nix + ./basics.nix + "${sources.agenix}/modules/age.nix" + ]; } diff --git a/nixos/profiles/workstation/create.nix b/nixos/profiles/workstation/create.nix index 5580ec4..08320e6 100644 --- a/nixos/profiles/workstation/create.nix +++ b/nixos/profiles/workstation/create.nix @@ -1,8 +1,5 @@ -{ config, pkgs, pkgs-unstable, ... }: +{ config, pkgs, pkgs-unstable, sources, ... }: -let - sources = import ; -in { environment.systemPackages = with pkgs; [ graphviz-nox # for dot diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix index 9332bca..0961a24 100644 --- a/nixos/profiles/workstation/default.nix +++ b/nixos/profiles/workstation/default.nix @@ -1,8 +1,7 @@ -{ config, lib, pkgs, pkgs-unstable, ... }: +{ config, lib, pkgs, pkgs-unstable, sources, ... }: let cfg = config.workstation; - sources = import ; cmd50 = pkgs.callPackage (sources.my-cmd50 { inherit pkgs; }) {}; in { -- cgit v1.3.1