1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: fix statix lint

This commit is contained in:
oddlama 2023-09-18 01:34:54 +02:00
parent 76afde26ef
commit ecd7eece1f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 5 additions and 7 deletions

View file

@ -6,11 +6,7 @@
}: let
inherit (lib) optionals;
in {
home.persistence."/state".files =
[
# nothing yet ...
]
++ optionals config.programs.ssh.enable [
home.persistence."/state".files = optionals config.programs.ssh.enable [
".ssh/known_hosts"
];

View file

@ -20,6 +20,8 @@
tags = "tag -l";
t = "tag -s -m ''";
fixup = ''!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ''${@:2} && EDITOR=true git rebase -i --gpg-sign --autostash --autosquash $TARGET^; }; f'';
# An alias that uses the previous commit message by default.
# Useful when you mess up entering the signing password and git aborts.
commit-reuse-message = ''!git commit --edit --file "$(git rev-parse --git-dir)"/COMMIT_EDITMSG'';
};
};