summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dotfiles/sfeed/sfeedrc2
-rw-r--r--dotfiles/sxhkd/sxhkdrc2
-rw-r--r--hosts/icon/configuration.nix26
-rw-r--r--hosts/nepsis/configuration.nix2
-rw-r--r--x11.nix18
5 files changed, 39 insertions, 11 deletions
diff --git a/dotfiles/sfeed/sfeedrc b/dotfiles/sfeed/sfeedrc
index e12c577..bef0688 100644
--- a/dotfiles/sfeed/sfeedrc
+++ b/dotfiles/sfeed/sfeedrc
@@ -1,4 +1,4 @@
-sfeedpath="$HOME/.local/share/sfeed/feeds"
+sfeedpath="/mnt/data/sfeed/feeds"
# list of feeds to fetch:
feeds() {
diff --git a/dotfiles/sxhkd/sxhkdrc b/dotfiles/sxhkd/sxhkdrc
index 9400d32..06eda7d 100644
--- a/dotfiles/sxhkd/sxhkdrc
+++ b/dotfiles/sxhkd/sxhkdrc
@@ -41,7 +41,7 @@ super + l
@lockscreen@/bin/lock-screen
super + f
- @st@/bin/st -e @sfeed@/bin/sfeed_curses ~/.local/share/sfeed/feeds/*
+ @st@/bin/st -e @sfeed@/bin/sfeed_curses /mnt/data/sfeed/feeds/*
super + m
@st@/bin/st -e @rmpc@/bin/rmpc
diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix
index f15fbf2..2d5de79 100644
--- a/hosts/icon/configuration.nix
+++ b/hosts/icon/configuration.nix
@@ -153,6 +153,31 @@
fsType = "ext4";
options = ["defaults" "nofail"];
};
+
+ # RSS sfeed
+
+ systemd.user.services."sfeed-update" = {
+ description = "Update sfeed RSS feeds";
+ path = with pkgs; [
+ curl
+ sfeed
+ coreutils
+ ];
+ serviceConfig = {
+ Type = "oneshot";
+ ExecStart = "${pkgs.sfeed}/bin/sfeed_update";
+ };
+ };
+
+ systemd.user.timers."sfeed-update" = {
+ description = "Run sfeed_update daily";
+ timerConfig = {
+ OnCalendar = "daily";
+ Persistent = true;
+ };
+ wantedBy = ["timers.target"];
+ };
+
networking.hostName = "icon";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@@ -167,6 +192,7 @@
nfs-utils
btop
nethogs
+ sfeed
];
programs.git = {
diff --git a/hosts/nepsis/configuration.nix b/hosts/nepsis/configuration.nix
index e82e7a3..3ce34ad 100644
--- a/hosts/nepsis/configuration.nix
+++ b/hosts/nepsis/configuration.nix
@@ -127,7 +127,7 @@
environment.sessionVariables = {
BROWSER = "surf";
SFEED_PLUMBER = "$BROWSER";
- SFEED_URL_FILE = "$HOME/.local/share/sfeed/sfeed_read_url_file";
+ SFEED_URL_FILE = "/mnt/data/sfeed/sfeed_read_url_file";
};
# Some programs need SUID wrappers, can be configured further or are
diff --git a/x11.nix b/x11.nix
index 743ffd0..0e1c766 100644
--- a/x11.nix
+++ b/x11.nix
@@ -1,5 +1,8 @@
-{ config, pkgs, ... }:
{
+ config,
+ pkgs,
+ ...
+}: {
services.displayManager.ly = {
enable = true;
settings = {
@@ -11,7 +14,6 @@
bigclock = "en";
bigclock_seconds = true;
};
-
};
services.dunst = {
@@ -27,9 +29,9 @@
displayManager = {
setupCommands = "";
sessionCommands = ''
- #!/bin/sh
- ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360
- ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg'
+ #!/bin/sh
+ ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360
+ ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg'
'';
};
xkb = {
@@ -99,19 +101,19 @@
environment = {
SFEED_PLUMBER = "surf";
- SFEED_URL_FILE = "/home/andrew/.local/share/sfeed/sfeed_read_url_file";
+ SFEED_URL_FILE = "/mnt/data/sfeed/sfeed_read_url_file";
};
serviceConfig = {
ExecStart = "${pkgs.sxhkd}/bin/sxhkd";
Restart = "on-failure";
};
- wantedBy = [ "graphical-session.target" ];
+ wantedBy = ["graphical-session.target"];
};
systemd.user.services.slstatus = {
description = "slstatus bar";
- wantedBy = [ "graphical-session.target" ];
+ wantedBy = ["graphical-session.target"];
path = with pkgs; [
pamixer