Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Begin adding agenix, add maddy test mail server

+39 -3
+3
packages.nix
··· 44 44 # List packages installed in system profile. To search, run: 45 45 # $ nix search wget 46 46 environment.systemPackages = with pkgs; [ 47 + (pkgs.callPackage <agenix/pkgs/agenix.nix> { }) 47 48 neovim 48 49 appimage-run 49 50 wget ··· 85 86 zlib 86 87 ]; 87 88 }; 89 + 90 + programs.fuse.userAllowOther = true; 88 91 89 92 90 93 # Logseq uses an ancient version of Electron, so we enable that
+35 -3
services.nix
··· 5 5 "plexmediaserver" 6 6 ]; 7 7 }; 8 + _age = import <agenix/modules/age.nix> { }; 8 9 in 9 10 { 10 11 ··· 240 241 certs."plex.packetlost.dev" = { 241 242 group = "httpd"; 242 243 }; 243 - #certs."ngp.computer" = { 244 - # group = "httpd"; 245 - #}; 244 + certs."img.ngp.computer" = { 245 + group = "httpd"; 246 + }; 247 + }; 248 + 249 + # A test email server that only works on LAN 250 + services.maddy = { 251 + enable = true; 252 + openFirewall = true; 253 + primaryDomain = "misaki.local"; 254 + ensureAccounts = [ 255 + "noah@misaki.local" 256 + "postmaster@misaki.local" 257 + "test@misaki.local" 258 + ]; 259 + ensureCredentials = { 260 + "noah@misaki.local".passwordFile = "${pkgs.writeText "noah" "Password123"}"; 261 + "postmaster@misaki.local".passwordFile = "${pkgs.writeText "noah" "Password123"}"; 262 + "test@misaki.local".passwordFile = "${pkgs.writeText "test" "Password123"}"; 263 + }; 246 264 }; 247 265 248 266 services.plex = { ··· 292 310 # proxyWebsockets = true; 293 311 # }; 294 312 #}; 313 + 314 + virtualHosts."img.ngp.computer" = { 315 + forceSSL = true; 316 + enableACME = true; 317 + # Don't use this unless you want the contents of this folder to be in the Nix 318 + # Store and only updated when switching 319 + #root = "/srv/shokuhou/pictures/public"; 320 + extraConfig = '' 321 + sendfile on; 322 + sendfile_max_chunk 1m; 323 + tcp_nopush on; 324 + root /srv/shokuhou/pictures/public; 325 + ''; 326 + }; 295 327 296 328 # give a name to the virtual host. It also becomes the server name. 297 329 virtualHosts."plex.packetlost.dev" = {
+1
users.nix
··· 26 26 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJeSPXmzD0rXKNjR1q+qSJqXjO0gxLitTRD+m02v94p6 noah@aleister" 27 27 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDQFlX3hhXxsqAUYLvF+IX1YWQ+k22OHlqMOjgyNBe9e noah@misaki" 28 28 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItPCXGjXp97M4v7H+dT/fT5B//VFe0dmXaJzIEujTXg noah@Noahs-MacBook-Air.local" 29 + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGf0jjB8VP1YoUDRRPR88DTFUWKd/fzOQ5joAWH8zn8N noah@othinus" 29 30 ]; 30 31 }; 31 32