diff --git a/configuration.nix b/configuration.nix index 1326590a58969607f6701a3824ec09a838c87e6c..f824f93760bcaa9484819a8fe6027ce91276a8c6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -20,6 +20,11 @@ in # Pin channel in nix path nix.nixPath = [ "nixpkgs=${channel}" ]; + environment.shellAliases = { + # nixos-option won't run without a configuration. With an empty config it does not show configured values, but can at least be used to search options and show default values. + nixos-option = "nixos-option -I nixos-config=${pkgs.writeText "empty-configuration.nix" "{...}:{}"}"; + }; + # Default hostname ist machine directory name networking.hostName = lib.mkDefault name;