Compare commits

...

14 Commits

Author SHA1 Message Date
coolneng 37c3dd71b4
Remove podman-compose from packages 2022-09-30 22:03:26 +02:00
coolneng ed03bfc821
Change package name of simple-scan 2022-09-30 21:58:19 +02:00
coolneng 5fc1d7c000
Remove fff from packages 2022-09-30 21:58:09 +02:00
coolneng 6fc2342cae
Replace mpv-with-scripts with wrapMpv 2022-09-30 21:56:18 +02:00
coolneng d5c43fe4f7
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7e52b35fe98481a279d89f9c145f8076d049d2b9' (2022-09-27)
  → 'github:NixOS/nixpkgs/854fdc68881791812eddd33b2fed94b954979a8e' (2022-09-28)
2022-09-30 21:55:38 +02:00
coolneng 32cfbe512d
Disable the KVM module 2022-09-30 21:54:32 +02:00
coolneng 83d2e2fae7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/79d3ca08920364759c63fd3eb562e99c0c17044a' (2022-09-25)
  → 'github:NixOS/nixpkgs/7e52b35fe98481a279d89f9c145f8076d049d2b9' (2022-09-27)
2022-09-28 22:58:43 +02:00
coolneng 03f25dbd8a flake.lock: Update
Flake lock file updates:

• Updated input 'agenix':
    'github:ryantm/agenix/c96da5835b76d3d8e8d99a0fec6fe32f8539ee2e' (2022-09-03)
  → 'github:ryantm/agenix/6acb1fe5f8597d5ce63fc82bc7fcac7774b1cdf0' (2022-09-25)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90' (2022-09-22)
  → 'github:NixOS/nixpkgs/79d3ca08920364759c63fd3eb562e99c0c17044a' (2022-09-25)
2022-09-26 22:31:48 +02:00
coolneng f85cac3747
Revert "Update Doom Emacs weekly"
This reverts commit b21acadd8e.
2022-09-26 16:32:49 +02:00
coolneng a8942d79e5
Run a mail sync operation periodically 2022-09-24 12:51:49 +02:00
coolneng 3b7a9f17c1 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f677051b8dc0b5e2a9348941c99eea8c4b0ff28f' (2022-09-18)
  → 'github:NixOS/nixpkgs/ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90' (2022-09-22)
2022-09-24 11:51:21 +02:00
coolneng 11983b43d3 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/da6a05816e7fa5226c3f61e285ef8d9dfc868f3c' (2022-09-16)
  → 'github:NixOS/nixpkgs/f677051b8dc0b5e2a9348941c99eea8c4b0ff28f' (2022-09-18)
2022-09-19 11:19:59 +02:00
coolneng d014c97402
Use mu4e as a mail client 2022-09-18 20:26:50 +02:00
coolneng 0944895890
Migrate mail client to Mu4e 2022-09-18 18:49:01 +02:00
4 changed files with 41 additions and 21 deletions

View File

@ -16,7 +16,7 @@ in {
"nohibernate" "nohibernate"
"ipv6.disable=1" "ipv6.disable=1"
]; ];
kernelModules = [ "i915" "acpi_call" "kvm-intel" ]; kernelModules = [ "i915" "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
blacklistedKernelModules = [ "btusb" ]; blacklistedKernelModules = [ "btusb" ];
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1662241716, "lastModified": 1664140963,
"narHash": "sha256-urqPvSvvGUhkwzTDxUI8N1nsdMysbAfjmBNZaTYBZRU=", "narHash": "sha256-pFxDtOLduRFlol0Y4ShE+soRQX4kbhaCNBtDOvx7ykw=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "c96da5835b76d3d8e8d99a0fec6fe32f8539ee2e", "rev": "6acb1fe5f8597d5ce63fc82bc7fcac7774b1cdf0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1663357389, "lastModified": 1664370076,
"narHash": "sha256-oYA2nVRSi6yhCBqS5Vz465Hw+3BQOVFEhfbfy//3vTs=", "narHash": "sha256-NDnIo0nxJozLwEw0VPM+RApMA90uTfbvaNNtC5eB7Os=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "da6a05816e7fa5226c3f61e285ef8d9dfc868f3c", "rev": "854fdc68881791812eddd33b2fed94b954979a8e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -9,7 +9,7 @@ let
(div: rec { buildInputs = [ openssl patched-cyrus-sasl-oauth2 zlib ]; }); (div: rec { buildInputs = [ openssl patched-cyrus-sasl-oauth2 zlib ]; });
in { in {
# Upgrade Doom Emacs weekly # Upgrade Doom Emacs daily
systemd.user.services.doom-upgrade = { systemd.user.services.doom-upgrade = {
description = "Upgrade Doom Emacs"; description = "Upgrade Doom Emacs";
path = [ bash emacs-vterm git coreutils ]; path = [ bash emacs-vterm git coreutils ];
@ -17,7 +17,7 @@ in {
${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom -! upgrade" ${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom -! upgrade"
''; '';
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
startAt = "Mon 22:00:00"; startAt = "22:00:00";
after = [ "network-online.target" ]; after = [ "network-online.target" ];
}; };
@ -56,8 +56,17 @@ in {
systemd.user.services.goimapnotify-ugent = { systemd.user.services.goimapnotify-ugent = {
description = "Sync UGent mail using IMAP IDLE"; description = "Sync UGent mail using IMAP IDLE";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
path = path = [
[ goimapnotify pass-wayland isync-oauth2 notmuch python39 gnupg nix ]; goimapnotify
pass-wayland
isync-oauth2
mu
python39
gnupg
nix
procps
emacs-vterm
];
script = '' script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/ugent.conf ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/ugent.conf
''; '';
@ -73,7 +82,7 @@ in {
systemd.user.services.goimapnotify-gmail = { systemd.user.services.goimapnotify-gmail = {
description = "Sync gmail mail using IMAP IDLE"; description = "Sync gmail mail using IMAP IDLE";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
path = [ goimapnotify pass-wayland isync-oauth2 notmuch ]; path = [ goimapnotify pass-wayland isync-oauth2 mu procps emacs-vterm ];
script = '' script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf
''; '';
@ -89,7 +98,7 @@ in {
systemd.user.services.goimapnotify-disroot = { systemd.user.services.goimapnotify-disroot = {
description = "Sync disroot mail using IMAP IDLE"; description = "Sync disroot mail using IMAP IDLE";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
path = [ goimapnotify pass-wayland isync-oauth2 notmuch ]; path = [ goimapnotify pass-wayland isync-oauth2 mu procps emacs-vterm ];
script = '' script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/disroot.conf ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/disroot.conf
''; '';
@ -102,6 +111,19 @@ in {
after = [ "network-online.target" ]; after = [ "network-online.target" ];
}; };
# Do a full mail sync periodically
systemd.user.services.periodic-mail-sync = {
description = "Run a mail sync operation periodically";
wantedBy = [ "default.target" ];
path =
[ pass-wayland isync-oauth2 mu procps emacs-vterm python39 gnupg nix ];
script = ''
/home/coolneng/.local/share/scripts/mail-sync -a
'';
after = [ "network-online.target" ];
startAt = "*-*-* *:00,15,30,45:00";
};
# HACK Change home partition permissions for mopidy # HACK Change home partition permissions for mopidy
systemd.services.chmod-home = { systemd.services.chmod-home = {
description = "Change home partition permissions for Mopidy"; description = "Change home partition permissions for Mopidy";

View File

@ -6,9 +6,10 @@ let
emacs-vterm = ((emacsPackagesFor emacs28NativeComp).emacsWithPackages emacs-vterm = ((emacsPackagesFor emacs28NativeComp).emacsWithPackages
(epkgs: with epkgs; [ vterm pdf-tools ])); (epkgs: with epkgs; [ vterm pdf-tools ]));
isync-oauth2 = isync.overrideAttrs isync-oauth2 = isync.overrideAttrs
(div: rec { buildInputs = [ openssl patched-cyrus-sasl-oauth2 zlib ]; }); (div: rec { buildInputs = [ openssl db patched-cyrus-sasl-oauth2 zlib ]; });
mpv-sponsorblock = mpv-sponsorblock = (pkgs.wrapMpv pkgs.mpv-unwrapped {
(mpv-with-scripts.override { scripts = [ mpvScripts.sponsorblock ]; }); scripts = [ mpvScripts.sponsorblock ];
});
in { in {
environment.systemPackages = [ environment.systemPackages = [
@ -46,7 +47,6 @@ in {
git git
direnv direnv
nix-direnv nix-direnv
podman-compose
gnumake gnumake
gitAndTools.pre-commit gitAndTools.pre-commit
delta delta
@ -60,16 +60,14 @@ in {
pulsemixer pulsemixer
easyeffects easyeffects
# Productivity # Productivity
fff
zathura zathura
libreoffice-fresh libreoffice-fresh
gnome3.simple-scan gnome.simple-scan
bc bc
citrix_workspace citrix_workspace
# Mail stack # Mail stack
neomutt mu
isync-oauth2 isync-oauth2
notmuch
msmtp msmtp
w3m w3m
urlscan urlscan