diff options
| author | Kleidi Bujari <mail@4kb.net> | 2024-12-17 23:03:27 -0500 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2024-12-17 23:03:27 -0500 |
| commit | eb13a9a552f9e50a66faba985521ba8e3483c447 (patch) | |
| tree | 209193a91b0db20fb1bb30007e72e321f0293696 /machines/flake-module.nix | |
| parent | f5ed731abbc38d765333b005b9815a5f6d3e59c2 (diff) | |
| download | depot-eb13a9a552f9e50a66faba985521ba8e3483c447.tar.gz depot-eb13a9a552f9e50a66faba985521ba8e3483c447.tar.bz2 depot-eb13a9a552f9e50a66faba985521ba8e3483c447.zip | |
Push configuration out of flake
Projects are not necessarily all exported by the system flake, and
should freely support other derivations. The new "mod" directory will be
used for most projects, and it can be imported by machine
configurations.
That said, the tooling around flakes is pretty good and will still be
used until the dependency is lessened.
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 - ''; - }; -} |
