From b311d7f8459fe1e90f7b0cbf5862b22a2cbedff5 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 23 Jan 2024 00:20:54 +0900 Subject: feat(lib)!: refactor --- lib/nixos_configurations_as_packages.nix | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 lib/nixos_configurations_as_packages.nix (limited to 'lib/nixos_configurations_as_packages.nix') diff --git a/lib/nixos_configurations_as_packages.nix b/lib/nixos_configurations_as_packages.nix deleted file mode 100644 index 356b09b..0000000 --- a/lib/nixos_configurations_as_packages.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ self, ... } @ inputs: - -let - pkgs = import inputs.unstable { system = "x86_64-linux"; }; - - inherit (pkgs.lib) genAttrs mapAttrs'; - - hostNames = __attrNames self.nixosConfigurations; - attrHostNames = genAttrs hostNames (name: "nixos/config/${name}"); - configs = mapAttrs' (name: pname: { name = pname; value = self.nixosConfigurations.${name}.config.system.build.toplevel; }) attrHostNames; -in -{ x86_64-linux = configs; } -- cgit 1.4.1