set up ssh signing

This commit is contained in:
vali 2024-07-21 13:18:00 +02:00
commit 5220f24edf
19 changed files with 389 additions and 323 deletions

View file

@ -1 +1 @@
_: {imports = [./pipewire.nix ./ssh.nix ./greetd.nix ./dunst.nix ./mpd.nix ./firewall.nix];}
_: {imports = [./pipewire.nix ./ssh.nix ./greetd.nix ./dunst.nix ./mpd.nix ./firewall.nix ./vpn.nix];}

View file

@ -28,24 +28,23 @@ in {
enable = true;
inherit (cfg) musicDirectory;
user = username;
startWhenNeeded = true;
extraConfig = ''
user "${username}"
playlist_directory "${cfg.musicDirectory}/.playlists"
restore_paused "yes"
auto_update "yes"
playlist_directory "${cfg.musicDirectory}/.playlists"
volume_normalization "yes"
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
audio_output {
type "fifo"
name "FIFO"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "fifo"
name "FIFO"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
'';
};
home-manager.users.${username} = {

12
modules/services/vpn.nix Normal file
View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
services.openvpn.servers = {
# air = {
# config = ''
# config /home/vali/Documents/AirVPN_Netherlands_UDP-443-Entry3.ovpn
# script-security 2
# up ${pkgs.update-systemd-resolved}/libexec/openvpn/update-systemd-resolved
# down ${pkgs.update-systemd-resolved}/libexec/openvpn/update-systemd-resolved
# '';
# };
};
}