Tue Jun 4 10:13:24 PM CEST 2024
This commit is contained in:
parent
d6f4ca2f3d
commit
251fa42493
|
@ -13,6 +13,7 @@
|
||||||
./mpv
|
./mpv
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [ telegram-desktop webcord devenv ];
|
home.packages = with pkgs; [ telegram-desktop webcord devenv ];
|
||||||
|
programs.ssh.matchBlocks."*".identityFile = "/home/server/.secrets/SSH/Kell/id_ed25519";
|
||||||
|
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -122,6 +122,8 @@ in {
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
# home.profileDirectory = "${config.xdg.stateHome}/nix/profile";
|
# home.profileDirectory = "${config.xdg.stateHome}/nix/profile";
|
||||||
imports = [ (import ./common.nix { inherit inputs config pkgs; }) ./ssh ];
|
imports = [ (import ./common.nix { inherit inputs config pkgs; }) ./ssh ];
|
||||||
|
programs.ssh.matchBlocks."*".identityFile = "/home/server/.secrets/SSH/Mallorea/id_ed25519";
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"*" = {
|
"*" = {
|
||||||
host = "*";
|
host = "*";
|
||||||
identityFile = "~/.secrets/SSH/id_ed25519";
|
|
||||||
};
|
};
|
||||||
mallorea = {
|
mallorea = {
|
||||||
host = "mallorea";
|
host = "mallorea";
|
||||||
|
|
|
@ -0,0 +1,58 @@
|
||||||
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
|
||||||
|
# Calendar
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
services.gnome.evolution-data-server.enable = true;
|
||||||
|
services.gnome.gnome-online-accounts.enable = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [ wireguard-tools ];
|
||||||
|
|
||||||
|
# Add the server using gnome-online-accounts:
|
||||||
|
# nix-shell -p gnome.gnome-control-center --run "gnome-control-center"
|
||||||
|
# Just add the main webdav server and gnome-calendar will automatically pick up all available calendars.
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
wg0 = {
|
||||||
|
address = [ "10.0.0.5/24" " 2a02:a03f:83ad:2101::5/128" ];
|
||||||
|
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
postSetup = "resolvectl dns %i 10.0.0.1; resolvectl domain %i ~thomasave.be;";
|
||||||
|
peers = [{
|
||||||
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
allowedIPs = [ "10.0.0.1/8", "192.168.1.2/32" ];
|
||||||
|
endpoint = "h.thomasave.be:13231";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fileSystems."/home/server" = {
|
||||||
|
device = "10.1:/home/server";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Workspace" = {
|
||||||
|
device = "10.1:/home/server/Workspace";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Documents" = {
|
||||||
|
device = "10.1:/home/server/Storage/Thomas/Documents";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Pictures" = {
|
||||||
|
device = "10.1:/home/server/Storage/Thomas/Pictures";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Videos" = {
|
||||||
|
device = "10.1:/home/server/Storage/Thomas/Videos";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -24,7 +24,7 @@
|
||||||
wg0 = {
|
wg0 = {
|
||||||
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
||||||
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/wg0.key";
|
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
|
Loading…
Reference in New Issue