summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-04-12 23:47:47 +0200
committeradikro <adikro@disroot.org>2026-04-12 23:47:47 +0200
commitbf126b5e1ae5cbab3b62c00bbff614a23539e431 (patch)
treeb275c56596eaf3f5754cea30f04e84bbcc21e305 /flake.nix
parent3ed184c48a1154a2548df807c8aaae7888e4792c (diff)
finalized client configs for tor, i2pd and yggdrasil
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 11 insertions, 8 deletions
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; }
];
};