git signing
This commit is contained in:
parent
fc85e43c82
commit
a018670eae
5 changed files with 69 additions and 8 deletions
|
|
@ -6,16 +6,16 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
colmena
|
||||||
|
dnsutils
|
||||||
docker-compose
|
docker-compose
|
||||||
fd
|
fd
|
||||||
htop
|
htop
|
||||||
killall
|
killall
|
||||||
ripgrep
|
ripgrep
|
||||||
|
unison
|
||||||
unzip
|
unzip
|
||||||
wget
|
wget
|
||||||
colmena
|
|
||||||
unison
|
|
||||||
dnsutils
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ in
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
git.enable = true;
|
|
||||||
kdeconnect.enable = true;
|
kdeconnect.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -57,6 +56,30 @@ in
|
||||||
withExternalGnupg = true;
|
withExternalGnupg = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
signing = {
|
||||||
|
signByDefault = true;
|
||||||
|
signer = "openpgp";
|
||||||
|
key = "AB79213B044674AE";
|
||||||
|
};
|
||||||
|
userName = "Henri Dohmen";
|
||||||
|
userEmail = "henridohmen@posteo.com";
|
||||||
|
extraConfig = {
|
||||||
|
color.ui = "auto";
|
||||||
|
column.ui = "auto";
|
||||||
|
branch.sort = "-committerdate";
|
||||||
|
alias = {
|
||||||
|
staash = "stash --all";
|
||||||
|
};
|
||||||
|
core = {
|
||||||
|
editor = "nvim";
|
||||||
|
autocrlf = "input";
|
||||||
|
};
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
credential.helper = "libsecret";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Some excludes
|
# Some excludes
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
networking.hostName = "roam";
|
networking.hostName = "roam";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./git.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
|
|
||||||
13
host/roam/git.nix
Normal file
13
host/roam/git.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ pkgs, var, ... }:
|
||||||
|
{
|
||||||
|
programs.git.enable = true;
|
||||||
|
users.groups.git = { };
|
||||||
|
users.users.git = {
|
||||||
|
isSystemUser = true;
|
||||||
|
home = "/git";
|
||||||
|
createHome = true;
|
||||||
|
group = "git";
|
||||||
|
shell = "${pkgs.git}/bin/git-shell";
|
||||||
|
openssh.authorizedKeys.keys = var.ssh-keys.unprivileged;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ var, config, ... }:
|
{
|
||||||
let
|
var,
|
||||||
headscale-domain = "headscale.hdohmen.de";
|
config,
|
||||||
in
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|
@ -34,4 +36,26 @@ in
|
||||||
443
|
443
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
timers."backup-rclone" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "backup-rclone.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services."backup-rclone" = {
|
||||||
|
script = ''
|
||||||
|
${pkgs.rclone}/bin/rclone copy /home/hd/Documents odc:Documents
|
||||||
|
${pkgs.rclone}/bin/rclone copy /git odc:git
|
||||||
|
'';
|
||||||
|
path = [ pkgs.rclone ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue