From bf126b5e1ae5cbab3b62c00bbff614a23539e431 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 12 Apr 2026 23:47:47 +0200 Subject: finalized client configs for tor, i2pd and yggdrasil --- flake.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 4fd7b8e..a59d6fe 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + subtui = { + url = "github:MattiaPun/SubTUI"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # Editors nixvim = { url = "github:nix-community/nixvim"; @@ -101,6 +106,8 @@ ... }@inputs: let + unstablePkgs = import nixpkgs { }; + stablePkgs = import nixpkgs-stable { }; mkHost = { hostname, @@ -108,19 +115,15 @@ isStable ? false, path ? ./hosts/${hostname}/configuration.nix, }: - let - basePkgs = if isStable then nixpkgs-stable else nixpkgs; - actualPath = if path != null then path else ./hosts/${hostname}/configuration.nix; - in - basePkgs.lib.nixosSystem { + nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; username = user; - pkgs-unstable = import inputs.nixpkgs { config.allowUnfree = true; }; - pkgs-stable = import inputs.nixpkgs-stable { config.allowUnfree = true; }; + pkgs-unstable = unstablePkgs; + pkgs-stable = stablePkgs; }; modules = [ - actualPath + path { networking.hostName = hostname; } ]; }; -- cgit v1.3