diff --git a/nixosModules/default.nix b/nixosModules/default.nix index 47c3557f..08761b7e 100644 --- a/nixosModules/default.nix +++ b/nixosModules/default.nix @@ -10,7 +10,6 @@ inputs: { ./containers ./desktop ./options.nix - ./scripts ./services ./users ]; diff --git a/nixosModules/options.nix b/nixosModules/options.nix index f15930cc..81859c44 100644 --- a/nixosModules/options.nix +++ b/nixosModules/options.nix @@ -191,11 +191,7 @@ sway.enable = lib.mkEnableOption "Sway wayland session."; }; - scripts.hoenn.enable = lib.mkOption { - description = "Hoenn system configuration script"; - default = config.ar.base.enable; - type = lib.types.bool; - }; + services = { binaryCache.enable = lib.mkEnableOption "nixpkgs cache server."; flatpak.enable = diff --git a/nixosModules/scripts/default.nix b/nixosModules/scripts/default.nix deleted file mode 100644 index feefc356..00000000 --- a/nixosModules/scripts/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: { - imports = [./hoenn]; -} diff --git a/nixosModules/scripts/hoenn/default.nix b/nixosModules/scripts/hoenn/default.nix deleted file mode 100644 index 0797c228..00000000 --- a/nixosModules/scripts/hoenn/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: { - config = lib.mkIf config.ar.scripts.hoenn.enable { - environment.systemPackages = [ - (pkgs.writeShellScriptBin "hoenn" '' - FLAKE=''${2:-"github:alyraffauf/nixcfg"} - HOST=''${HOST:-${config.networking.hostName}} - GIT=https://''${FLAKE//:/\.com\/}.git - - if [ "$1" == "sync" ]; then - sudo ${lib.getExe pkgs.nixos-rebuild} switch --flake $FLAKE#$HOST - exit 0; - elif [ "$1" == "boot" ]; then - sudo ${lib.getExe pkgs.nixos-rebuild} boot --flake $FLAKE#$HOST - exit 0; - elif [ "$1" == "gc" ]; then - sudo ${lib.getExe' pkgs.nix "nix-collect-garbage"} -d - exit 0; - elif [ "$1" == "clone" ]; then - ${lib.getExe pkgs.git} clone $GIT - cd nixcfg - exit 0; - fi - '') - ]; - }; -}