mirror of
https://github.com/divnix/digga.git
synced 2024-12-26 09:34:15 +03:00
4f44e0dd13
The bash wrapper was causing issues with deploy-rs and the experimental-features option in the config was causing hercules-ci to spit out a bunch of junk in the logs. Patching nix with the default values required for flakes fixes both of these issues.
43 lines
856 B
Nix
43 lines
856 B
Nix
{ self ? (import ../compat).defaultNix
|
|
, system ? builtins.currentSystem
|
|
}:
|
|
let
|
|
pkgs = (self.lib.genPkgs { inherit self; }).${system};
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
installPkgs = (lib.nixosSystem {
|
|
inherit system;
|
|
modules = [ ];
|
|
}).config.system.build;
|
|
|
|
flk = pkgs.callPackage ./flk.nix { };
|
|
|
|
in
|
|
pkgs.devshell.mkShell
|
|
{
|
|
imports = [ (pkgs.devshell.importTOML ./devshell.toml) ];
|
|
|
|
packages = with installPkgs; [
|
|
nixos-install
|
|
nixos-generate-config
|
|
nixos-enter
|
|
];
|
|
|
|
git.hooks = {
|
|
pre-commit.text = lib.fileContents ./pre-commit.sh;
|
|
};
|
|
|
|
commands = with pkgs; [
|
|
{
|
|
package = flk;
|
|
}
|
|
]
|
|
++ lib.optional (system != "i686-linux") { package = cachix; }
|
|
++ lib.optional (system == "x86_64-linux") {
|
|
name = "deploy";
|
|
package = deploy-rs;
|
|
help = "A simple multi-profile Nix-flake deploy tool.";
|
|
};
|
|
}
|