mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 13:52:25 +00:00
Compare commits
6 Commits
34cf2a4483
...
3c51dd0db6
Author | SHA1 | Date | |
---|---|---|---|
|
3c51dd0db6 | ||
|
7f0600580f | ||
|
05d5fcb8f9 | ||
|
ca7a4ed408 | ||
|
cf73ce8136 | ||
|
82344372dd |
@ -79,9 +79,16 @@
|
|||||||
warn-dirty = false
|
warn-dirty = false
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
# Add community Cachix to binary cache
|
# Add community Cachix to binary cache
|
||||||
|
builders-use-substitutes = true;
|
||||||
substituters = lib.mkIf (!pkgs.stdenv.isDarwin)
|
substituters = lib.mkIf (!pkgs.stdenv.isDarwin)
|
||||||
[ "https://nix-community.cachix.org" ];
|
[ "https://nix-community.cachix.org" ];
|
||||||
trusted-public-keys = lib.mkIf (!pkgs.stdenv.isDarwin) [
|
trusted-public-keys = lib.mkIf (!pkgs.stdenv.isDarwin) [
|
||||||
|
@ -50,8 +50,6 @@
|
|||||||
];
|
];
|
||||||
alot = { };
|
alot = { };
|
||||||
flavor = "plain";
|
flavor = "plain";
|
||||||
folders = { };
|
|
||||||
getmail = { };
|
|
||||||
imap = {
|
imap = {
|
||||||
host = config.mail.imapHost;
|
host = config.mail.imapHost;
|
||||||
port = 993;
|
port = 993;
|
||||||
@ -75,7 +73,6 @@
|
|||||||
CopyArrivalDate = "yes"; # Sync time of original message
|
CopyArrivalDate = "yes"; # Sync time of original message
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mu.enable = false;
|
|
||||||
notmuch.enable = true;
|
notmuch.enable = true;
|
||||||
passwordCommand =
|
passwordCommand =
|
||||||
"${pkgs.age}/bin/age --decrypt --identity ${config.identityFile} ${
|
"${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, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./chiaki.nix
|
||||||
./leagueoflegends.nix
|
./leagueoflegends.nix
|
||||||
./legendary.nix
|
./legendary.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
format = "<label>";
|
format = "<label>";
|
||||||
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
||||||
${pkgs.notmuch}/bin/notmuch new > /dev/null
|
${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
|
if [ $UNREAD = "0" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
|
@ -10,10 +10,16 @@
|
|||||||
networking.interfaces.wlp4s0.useDHCP = true;
|
networking.interfaces.wlp4s0.useDHCP = true;
|
||||||
|
|
||||||
networking.firewall.allowPing = lib.mkIf config.server true;
|
networking.firewall.allowPing = lib.mkIf config.server true;
|
||||||
networking.hosts = {
|
|
||||||
"192.168.0.120" = [ "tempest" ];
|
# DNS service discovery
|
||||||
"192.168.0.218" = [ "swan" ];
|
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/
|
# /r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend/isu99sr/
|
||||||
echo GPP0 > /proc/acpi/wakeup
|
echo GPP0 > /proc/acpi/wakeup
|
||||||
|
|
||||||
|
# Possibly need to wait a beat for settings to kick in
|
||||||
|
sleep 2
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user