nixfiles/devshell/default.nix

32 lines
768 B
Nix
Raw Normal View History

2022-02-19 23:34:41 +00:00
{ lib, pkgs, ... }:
let
2022-07-17 02:56:26 +01:00
inherit (lib) concatStringsSep;
2022-02-19 23:34:41 +00:00
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 repl-flake
2022-10-05 23:23:39 +01:00
#substituters = https://nix-cache.nul.ie https://cache.nixos.org
substituters = https://cache.nixos.org
2023-11-02 13:41:50 +00:00
trusted-public-keys = ${concatStringsSep " " lib.my.c.nix.cacheKeys}
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
2022-02-19 23:34:41 +00:00
deploy-rs.deploy-rs
home-manager
];
}