nixfiles/devshell/default.nix

34 lines
723 B
Nix
Raw Normal View History

2022-02-19 23:34:41 +00:00
{ lib, pkgs, ... }:
let
inherit (lib.my) attrsToNVList;
in
{
imports = [ ./commands.nix ./install.nix ./vm-tasks.nix ];
2022-02-19 23:34:41 +00:00
env = attrsToNVList {
# starship will show this
name = "devshell";
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
''
experimental-features = nix-command flakes ca-derivations
2023-11-18 00:10:05 +00:00
connect-timeout = 5
fallback = true
2023-11-17 22:57:44 +00:00
${lib.my.c.nix.cache.conf}
2022-02-19 23:34:41 +00:00
'');
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
2022-02-19 23:34:41 +00:00
};
packages = with pkgs; [
coreutils
nixVersions.stable
2022-02-22 00:59:57 +00:00
rage
wireguard-tools
(pkgs.writeShellScriptBin "deploy" ''
exec ${deploy-rs.deploy-rs}/bin/deploy --skip-checks "$@"
'')
2022-02-19 23:34:41 +00:00
home-manager
];
}