mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 02:12:24 +00:00
Compare commits
6 Commits
34cf2a4483
...
3c51dd0db6
Author | SHA1 | Date | |
---|---|---|---|
|
3c51dd0db6 | ||
|
7f0600580f | ||
|
05d5fcb8f9 | ||
|
ca7a4ed408 | ||
|
cf73ce8136 | ||
|
82344372dd |
@ -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) [
|
||||
|
@ -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} ${
|
||||
|
10
modules/nixos/gaming/chiaki.nix
Normal file
10
modules/nixos/gaming/chiaki.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
imports = [
|
||||
./chiaki.nix
|
||||
./leagueoflegends.nix
|
||||
./legendary.nix
|
||||
./lutris.nix
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user