nixfiles/devshell/default.nix
Jack O'Sullivan edb5767770
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 14m19s
Add binary cache timeout and fallback
2023-11-18 00:10:05 +00:00

32 lines
641 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
deploy-rs.deploy-rs
home-manager
attic-client
];
}