From c81e9d0bbcfc3d9050abfa68384d5409edffccff Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sat, 30 Jul 2022 15:59:10 +0200 Subject: [PATCH] setup email and steam --- configuration.nix | 6 ++++++ home-manager.nix | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 2d9706b..0ef2e6d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -148,6 +148,12 @@ nerdfonts ]; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/home-manager.nix b/home-manager.nix index 030cc0b..3dc966c 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -16,7 +16,6 @@ spotify sublime-merge tdesktop - thunderbird transmission-gtk unzip vscode-fhs @@ -41,7 +40,9 @@ ".." = "cd .."; "..." = "cd ../.."; config = "vim /etc/nixos/configuration.nix"; + hmconf = "vim /etc/nixos/home-manager.nix"; switch = "sudo nixos-rebuild switch"; + nr = "nix run --impure"; }; }; @@ -100,6 +101,45 @@ ]; }; + programs.home-manager.enable = true; + programs.bash.enable = true; + programs.password-store.enable = true; + programs.mbsync.enable = true; + programs.alot.enable = true; + programs.notmuch = { + enable = true; + hooks = { + preNew = "mbsync --all"; + }; + }; + + programs.gpg.enable = true; + + services.keybase.enable = true; + + accounts.email.accounts.Personal = { + primary = true; + + address = "me@sijmenschoon.nl"; + aliases = [ "me@sijman.nl" "me@vijf.life" "info@sijmenschoon.nl" ]; + realName = "Sijmen Schoon"; + + userName = "me@sijmenschoon.nl"; + passwordCommand = "pass show email/personal"; + + imap.host = "imap.soverin.net"; + smtp.host = "smtp.soverin.net"; + + folders.inbox = "INBOX"; + + mbsync = { + enable = true; + create = "maildir"; + }; + + notmuch.enable = true; + }; + imports = [ ./dconf.nix ]; }; }