nixfiles/devshell/default.nix
Jack O'Sullivan 7c67eaff21
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 34m42s
nixos/colony: Add qclk management container
2024-09-01 19:22:03 +01:00

34 lines
734 B
Nix

{ lib, pkgs, ... }:
let
inherit (lib.my) attrsToNVList;
in
{
imports = [ ./commands.nix ./install.nix ./vm-tasks.nix ];
env = attrsToNVList {
# starship will show this
name = "devshell";
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
''
experimental-features = nix-command flakes ca-derivations repl-flake
connect-timeout = 5
fallback = true
${lib.my.c.nix.cache.conf}
'');
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
};
packages = with pkgs; [
coreutils
nixVersions.stable
rage
wireguard-tools
(pkgs.writeShellScriptBin "deploy" ''
exec ${deploy-rs.deploy-rs}/bin/deploy --skip-checks "$@"
'')
home-manager
];
}