Template talk:File:nixos: Difference between revisions

From NixOS Wiki
Latest comment: 7 April by Samueldr in topic Template naming issue
Created page with "== Template naming issue == Hi! 👋 Just a note, this template doesn't work since the colon is being taken as you specifying a full page name, rather than a template-based wiki page name. So it's looking to transclude <tt>File:nixos</tt>. I think the solution would be to rename the template. Already <tt>File:nixos</tt> seems awkward to me. If it is thought to be desirable to have this specialisation, I think <tt>nixos-configuration</tt> as the template name would bett..."
 
Sdht0 (talk | contribs)
Line 7: Line 7:


[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 00:56, 7 April 2024 (UTC)
[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 00:56, 7 April 2024 (UTC)
Thanks for taking a look. I'm not sure why this doesn't work when say [[Template:Nixos:option]] works. Renaming it is a good suggestion, but I was thinking of creating other wrappers over the file template such as file:flake for /etc/nixos/flake.nix and local config at ~/.config/nix/config.nix etc.

Revision as of 00:00, 8 April 2024

Template naming issue

Hi! 👋 Just a note, this template doesn't work since the colon is being taken as you specifying a full page name, rather than a template-based wiki page name. So it's looking to transclude File:nixos.

I think the solution would be to rename the template. Already File:nixos seems awkward to me. If it is thought to be desirable to have this specialisation, I think nixos-configuration as the template name would better represent what this is meant to be used for.

samueldr (talk) 00:56, 7 April 2024 (UTC)Reply

Thanks for taking a look. I'm not sure why this doesn't work when say Template:Nixos:option works. Renaming it is a good suggestion, but I was thinking of creating other wrappers over the file template such as file:flake for /etc/nixos/flake.nix and local config at ~/.config/nix/config.nix etc.