libvirt and wgnord
This commit is contained in:
parent
2b7f0e6108
commit
a3591db505
1 changed files with 16 additions and 5 deletions
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
users.users.yt = {
|
users.users.yt = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" "libvirtd" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
|
@ -87,6 +87,11 @@
|
||||||
pass-wayland
|
pass-wayland
|
||||||
htop
|
htop
|
||||||
file
|
file
|
||||||
|
dnsutils
|
||||||
|
age
|
||||||
|
compsize
|
||||||
|
wgnord
|
||||||
|
wireguard-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
@ -135,23 +140,23 @@
|
||||||
"**/.steam"
|
"**/.steam"
|
||||||
"**/.rustup"
|
"**/.rustup"
|
||||||
"**/.docker"
|
"**/.docker"
|
||||||
"**/.snapshots"
|
"**/borg"
|
||||||
];
|
];
|
||||||
repo = "de3911@de3911.rsync.net:borg/yt";
|
repo = "de3911@de3911.rsync.net:borg/yt";
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey-blake2";
|
mode = "repokey-blake2";
|
||||||
passCommand = "cat /run/keys/borg_yt";
|
passCommand = "cat /root/keys/borg_yt";
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
BORG_RSH = "ssh -i /home/yt/.ssh/id_ed25519";
|
BORG_RSH = "ssh -i /home/yt/.ssh/id_ed25519";
|
||||||
BORG_REMOTE_PATH = "borg1";
|
BORG_REMOTE_PATH = "borg1";
|
||||||
};
|
};
|
||||||
compression = "auto,zstd";
|
compression = "auto,zstd";
|
||||||
startAt = "hourly";
|
startAt = "daily";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.btrbk.instances.local.settings = {
|
services.btrbk.instances.local.settings = {
|
||||||
snapshot_preserve = "14d 52w";
|
snapshot_preserve = "14d";
|
||||||
snapshot_preserve_min = "2d";
|
snapshot_preserve_min = "2d";
|
||||||
volume."/" = {
|
volume."/" = {
|
||||||
target = "/snapshots";
|
target = "/snapshots";
|
||||||
|
@ -188,4 +193,10 @@
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
# thumbnails in thunar
|
# thumbnails in thunar
|
||||||
services.tumbler.enable =true;
|
services.tumbler.enable =true;
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces.wgnord.configFile = "/etc/wireguard/wgnord.conf";
|
||||||
|
services.resolved.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue