From dcdb9ec936b09cc3e1e948950880029148dd974b Mon Sep 17 00:00:00 2001 From: janabhumi Date: Sun, 9 Oct 2022 15:04:03 +0300 Subject: [PATCH] refac: remove unused script --- flake.nix | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index b44d30d..c886741 100644 --- a/flake.nix +++ b/flake.nix @@ -53,20 +53,13 @@ { apps = lib.mapAttrs (name: program: { type = "app"; program = toString program; }) - ( - (flake-utils.lib.flattenTree { - switch = lib.recurseIntoAttrs (lib.mapAttrs - (hostname: machine: pkgs.writeShellScript "switch-${hostname}" '' - ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} - '') - self.nixosConfigurations); - }) - // { - fix-systemd = pkgs.writeShellScript "fix-systemd" '' - systemctl --user reset-failed - ''; - } - ); + (flake-utils.lib.flattenTree { + switch = lib.recurseIntoAttrs (lib.mapAttrs + (hostname: machine: pkgs.writeShellScript "switch-${hostname}" '' + ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} + '') + self.nixosConfigurations); + }); devShells = { default = pkgs.mkShell {