1
0

modules/nixfiles: remove install and rebuild wrapper

This commit is contained in:
clerie 2023-02-26 22:23:20 +01:00
parent bdbe54a3f8
commit 2e15bbd6ed

View File

@ -50,16 +50,6 @@ let
sed -i "s/\%HOSTNAME\%/''${hostname}/g" ''${root}/etc/nixos/hosts/''${hostname}/configuration.nix sed -i "s/\%HOSTNAME\%/''${hostname}/g" ''${root}/etc/nixos/hosts/''${hostname}/configuration.nix
''; '';
nixfiles-install = pkgs.writeScriptBin "nixfiles-install" ''
#!${pkgs.bash}/bin/bash
nixos-install --flake /etc/nixos $@
'';
nixfiles-rebuild = pkgs.writeScriptBin "nixfiles-rebuild" ''
#!${pkgs.bash}/bin/bash
nixos-rebuild --flake /etc/nixos $@
'';
in { in {
options.clerie.nixfiles.enable = mkEnableOption "clerie nixfiles tools"; options.clerie.nixfiles.enable = mkEnableOption "clerie nixfiles tools";
config = mkIf config.clerie.nixfiles.enable { config = mkIf config.clerie.nixfiles.enable {