diff options
| author | adikro <adikro@disroot.org> | 2026-04-12 23:47:47 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-04-12 23:47:47 +0200 |
| commit | bf126b5e1ae5cbab3b62c00bbff614a23539e431 (patch) | |
| tree | b275c56596eaf3f5754cea30f04e84bbcc21e305 /flake.nix | |
| parent | 3ed184c48a1154a2548df807c8aaae7888e4792c (diff) | |
finalized client configs for tor, i2pd and yggdrasil
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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; } ]; }; |
