Move Git, Git LFS and `diff-so-fancy` into the common home module. Enable Jujutsu with the same identity and add it to the devshell. Document `jj` workflows and prefer them in Jujutsu workspaces.
38 lines
816 B
Nix
38 lines
816 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
|
|
lazy-trees = true
|
|
eval-cores = 0
|
|
accept-flake-config = true
|
|
connect-timeout = 5
|
|
fallback = true
|
|
${lib.my.c.nix.cache.conf}
|
|
'');
|
|
|
|
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
coreutils
|
|
determinate-nix
|
|
rage
|
|
wireguard-tools
|
|
(pkgs.writeShellScriptBin "deploy" ''
|
|
exec ${deploy-rs.deploy-rs}/bin/deploy --skip-checks "$@"
|
|
'')
|
|
home-manager
|
|
jujutsu
|
|
];
|
|
}
|