Skip to content
Snippets Groups Projects
Commit eab128ce authored by Jens Nolte's avatar Jens Nolte
Browse files

Add nixos-option alias that provides a dummy configuration.nix

parent f408aa30
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,11 @@ in ...@@ -20,6 +20,11 @@ in
# Pin channel in nix path # Pin channel in nix path
nix.nixPath = [ "nixpkgs=${channel}" ]; 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 # Default hostname ist machine directory name
networking.hostName = lib.mkDefault name; networking.hostName = lib.mkDefault name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment