mirror of
https://github.com/0xbbjubjub/miniguest.git
synced 2024-09-11 05:55:35 +03:00
remove legacyPackages
reason: it causes digga to treat us as a channel, so it imports us which causes purity errors in flake-compat.
This commit is contained in:
parent
3489054f69
commit
a6ddffacfd
@ -1,9 +1,8 @@
|
||||
inputs@{ self, nixpkgs, ... }:
|
||||
final: prev:
|
||||
|
||||
system:
|
||||
let
|
||||
kvm_guest = nixpkgs.lib.nixosSystem {
|
||||
inherit (final) system;
|
||||
inherit system;
|
||||
modules = [
|
||||
self.nixosModules.miniguest
|
||||
{
|
||||
@ -17,7 +16,7 @@ let
|
||||
];
|
||||
};
|
||||
lxc_guest = nixpkgs.lib.nixosSystem {
|
||||
inherit (final) system;
|
||||
inherit system;
|
||||
modules = [
|
||||
self.nixosModules.miniguest
|
||||
{
|
||||
@ -27,7 +26,8 @@ let
|
||||
];
|
||||
};
|
||||
in
|
||||
final.lib.optionalAttrs final.stdenv.isLinux {
|
||||
with nixpkgs.legacyPackages.${system};
|
||||
lib.optionalAttrs stdenv.isLinux {
|
||||
build_kvm_guest = kvm_guest.config.system.build.miniguest;
|
||||
build_lxc_guest = lxc_guest.config.system.build.miniguest;
|
||||
}
|
||||
|
22
flake.nix
22
flake.nix
@ -15,19 +15,11 @@
|
||||
description = "Example guest configurations";
|
||||
path = ./template;
|
||||
};
|
||||
} // simpleFlake {
|
||||
inherit self nixpkgs;
|
||||
name = "miniguest";
|
||||
systems = defaultSystems;
|
||||
preOverlays = [ devshell.overlay ];
|
||||
overlay = final: prev: {
|
||||
miniguest = rec {
|
||||
miniguest = final.callPackage ./miniguest { };
|
||||
defaultPackage = miniguest;
|
||||
defaultApp = mkApp { drv = miniguest; };
|
||||
devShell = final.devshell.fromTOML ./devshell.toml;
|
||||
checks = import ./checks inputs final prev;
|
||||
};
|
||||
};
|
||||
};
|
||||
} // eachDefaultSystem (system: rec {
|
||||
packages.miniguest = nixpkgs.legacyPackages.${system}.callPackage ./miniguest { };
|
||||
defaultPackage = packages.miniguest;
|
||||
defaultApp = mkApp { drv = packages.miniguest; };
|
||||
devShell = devshell.legacyPackages.${system}.fromTOML ./devshell.toml;
|
||||
checks = import ./checks inputs system;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user