Compare commits

...

6 Commits

Author SHA1 Message Date
Noah Masur
3c51dd0db6 option for chiaki ps remote play 2023-04-15 10:11:44 -04:00
Noah Masur
7f0600580f more attempts to fix sleep 2023-04-15 10:11:30 -04:00
Noah Masur
05d5fcb8f9 try avahi, not working
doesn't seem to be discovering other devices
2023-04-15 10:10:10 -04:00
Noah Masur
ca7a4ed408 only show new mail if in inbox 2023-04-15 10:08:45 -04:00
Noah Masur
cf73ce8136 remove unnecessary mail options 2023-04-15 10:08:19 -04:00
Noah Masur
82344372dd add auto garbage collection 2023-04-15 10:07:59 -04:00
7 changed files with 32 additions and 8 deletions

View File

@ -79,9 +79,16 @@
warn-dirty = false
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
settings = {
# Add community Cachix to binary cache
builders-use-substitutes = true;
substituters = lib.mkIf (!pkgs.stdenv.isDarwin)
[ "https://nix-community.cachix.org" ];
trusted-public-keys = lib.mkIf (!pkgs.stdenv.isDarwin) [

View File

@ -50,8 +50,6 @@
];
alot = { };
flavor = "plain";
folders = { };
getmail = { };
imap = {
host = config.mail.imapHost;
port = 993;
@ -75,7 +73,6 @@
CopyArrivalDate = "yes"; # Sync time of original message
};
};
mu.enable = false;
notmuch.enable = true;
passwordCommand =
"${pkgs.age}/bin/age --decrypt --identity ${config.identityFile} ${

View File

@ -0,0 +1,10 @@
{ config, pkgs, lib, ... }: {
options.gaming.chiaki.enable =
lib.mkEnableOption "Chiaki PlayStation remote play client.";
config = lib.mkIf config.gaming.chiaki.enable {
environment.systemPackages = with pkgs; [ chiaki ];
};
}

View File

@ -1,6 +1,7 @@
{ config, pkgs, lib, ... }: {
imports = [
./chiaki.nix
./leagueoflegends.nix
./legendary.nix
./lutris.nix

View File

@ -107,7 +107,7 @@
format = "<label>";
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
${pkgs.notmuch}/bin/notmuch new > /dev/null
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread and folder:main/Inbox)
if [ $UNREAD = "0" ]; then
echo ""
else

View File

@ -10,10 +10,16 @@
networking.interfaces.wlp4s0.useDHCP = true;
networking.firewall.allowPing = lib.mkIf config.server true;
networking.hosts = {
"192.168.0.120" = [ "tempest" ];
"192.168.0.218" = [ "swan" ];
};
# DNS service discovery
services.avahi.enable = true;
# services.avahi.public.enable = true;
# services.avahi.public.domain = true;
# services.avahi.public.addresses = true;
# services.avahi.domainName = "local";
# Resolve local hostnames using Avahi DNS
services.avahi.nssmdns = true;
};

View File

@ -13,6 +13,9 @@
# /r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend/isu99sr/
echo GPP0 > /proc/acpi/wakeup
# Possibly need to wait a beat for settings to kick in
sleep 2
set -e
'';