Change flake.nix to allow different nixpkgs versions

This commit is contained in:
2024-06-14 20:32:52 -05:00
parent 0a8ded6db3
commit c8ccbac32c
10 changed files with 211 additions and 42 deletions

View File

@@ -34,6 +34,11 @@ in
type = types.enum [ "ctrl-esc" "esc" "caps" ];
default = "ctrl-esc";
};
nixpkgs = mkOption {
description = "Which nixpkgs version to use";
type = types.any;
};
};

View File

@@ -58,6 +58,7 @@ in
config = {
environment.systemPackages = with pkgs; [
ldns
mtr
]
++ optional cfg.wireguard.enable wireguard-tools;