diff options
Diffstat (limited to 'machines/flake-module.nix')
| -rw-r--r-- | machines/flake-module.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/machines/flake-module.nix b/machines/flake-module.nix deleted file mode 100644 index 8d9dd2c..0000000 --- a/machines/flake-module.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ lib, self, ... }: -let - inherit (lib) nixosSystem; - inherit (self.nixosModules) xnet xlib; - inherit (self) inputs; -in -{ - flake.nixosConfigurations = { - t480 = nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit xlib; }; - modules = [ ./t480 xnet ]; - }; - - iso = nixosSystem { - system = "x86_64-linux"; - modules = [ ./iso ]; - }; - - t1 = nixosSystem { - system = "x86_64-linux"; - modules = [ ./t1 xnet ]; - }; - - iridium = nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ ./iridium xnet ]; - }; - }; - - perSystem = { pkgs, inputs', ... }: { - packages.xinstall = - let - disko = inputs'.disko.packages.disko-install; - - configs = builtins.concatStringsSep " " - (builtins.filter (x: x != "iso") - (builtins.attrNames self.nixosConfigurations)); - in - pkgs.writeShellScriptBin "xinstall" '' - set -euo pipefail - - FLAKE="github:kbujari/depot" - TARGET=$(${pkgs.gum}/bin/gum choose ${configs}) - - # ${disko}/bin/disko-install --help - ''; - }; -} |
