config-manager: Remove system option in favor of pkgs.system

This commit is contained in:
Alexander Heldt
2023-11-01 16:05:00 +01:00
parent 89cd417d12
commit 39fb7e868f
7 changed files with 6 additions and 26 deletions

View File

@@ -2,17 +2,14 @@
let
flakePath = config.config-manager.flakePath;
nixosConfiguration = config.config-manager.nixosConfiguration;
system = config.config-manager.system;
nh = inputs.nh.packages."${system}".default;
nh = inputs.nh.packages."${pkgs.system}".default;
config-manager =
if flakePath == "" then
throw "'config-manager.flakePath' cannot be empty"
else if nixosConfiguration == "" then
throw "'config-manager.nixosConfiguration' cannot be empty"
else if system == "" then
throw "'config-manager.system' cannot be empty"
else
pkgs.writeShellScriptBin "cm" ''
help() {
@@ -60,12 +57,6 @@ in
default = config.networking.hostName;
description = "what nixosConfiguration to use";
};
system = lib.mkOption {
type = lib.types.str;
default = "";
description = "what system the host is (x86_64-linux, aarch64-linux)";
};
};
};