# programs here, NOT in environment.systemPackages
];
- environment.sessionVariables = {
- BROWSER = "surf";
- SFEED_PLUMBER = "$BROWSER";
- SFEED_URL_FILE = "$HOME/.local/share/sfeed/sfeed_read_url_file";
- };
-
+ environment.sessionVariables = {
+ BROWSER = "surf";
+ SFEED_PLUMBER = "$BROWSER";
+ SFEED_URL_FILE = "$HOME/.local/share/sfeed/sfeed_read_url_file";
+ };
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# Services
services.openssh.enable = true;
+ services.rsync = {
+ enable = true;
+ };
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
".config/surf/styles/default.css".source = ./dotfiles/surf/styles/default.css;
".config/surf/script.js".source = ./dotfiles/surf/script.js;
-
- ".sfeed/sfeedrc".source = ./dotfiles/sfeed/sfeedrc;
+ ".sfeed/sfeedrc".source = ./dotfiles/sfeed/sfeedrc;
};
systemd.user.services."sfeed-update" = {
description = "Update sfeed RSS feeds";
- path = with pkgs; [ curl sfeed coreutils];
+ path = with pkgs; [
+ curl
+ sfeed
+ coreutils
+ ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.sfeed}/bin/sfeed_update";
wantedBy = [ "timers.target" ];
};
-
}
scrolling-title = import ./scripts/scrolling-title.nix { pkgs = prev; };
})
(final: prev: {
- surf_search = import ./scripts/surf_search.nix { pkgs = prev; };
+ surf_search = import ./scripts/surf_search.nix { pkgs = prev; };
})
-
(final: prev: {
slstatus = inputs.my-slstatus.packages.${pkgs.stdenv.hostPlatform.system}.default;
})
pkgs.writeShellApplication {
name = "surf_search";
runtimeInputs = with pkgs; [
- dmenu
- xprop
- gnused
- coreutils
+ dmenu
+ xprop
+ gnused
+ coreutils
];
text = builtins.readFile (
- pkgs.replaceVars ../dotfiles/surf/surf.sh {
- dmenu = pkgs.dmenu;
- xprop = pkgs.xprop;
- gnused = pkgs.gnused;
- coreutils = pkgs.coreutils;
- }
- );}
+ pkgs.replaceVars ../dotfiles/surf/surf.sh {
+ dmenu = pkgs.dmenu;
+ xprop = pkgs.xprop;
+ gnused = pkgs.gnused;
+ coreutils = pkgs.coreutils;
+ }
+ );
+}
enable = true;
};
-
hjem.users.andrew = {
files = {
".config/sxhkd/sxhkdrc".text = builtins.readFile (
};
};
-systemd.user.services.sxhkd = {
- description = "Simple X Hot Key Daemon (sxhkd)";
+ systemd.user.services.sxhkd = {
+ description = "Simple X Hot Key Daemon (sxhkd)";
- path = with pkgs; [
- dmenu
- st
+ path = with pkgs; [
+ dmenu
+ st
- pamixer
+ pamixer
- maim
- xdotool
- xclip
+ maim
+ xdotool
+ xclip
- lock-screen
+ lock-screen
- sfeed
+ sfeed
- rmpc
- mpc
+ rmpc
+ mpc
- surf
- librewolf
- surf_search
- ];
+ surf
+ librewolf
+ surf_search
+ ];
- environment = {
- SFEED_PLUMBER = "surf";
+ environment = {
+ SFEED_PLUMBER = "surf";
SFEED_URL_FILE = "/home/andrew/.local/share/sfeed/sfeed_read_url_file";
- };
-
- serviceConfig = {
- ExecStart = "${pkgs.sxhkd}/bin/sxhkd";
- Restart = "on-failure";
- };
- wantedBy = [ "graphical-session.target" ];
-};
-
+ };
+ serviceConfig = {
+ ExecStart = "${pkgs.sxhkd}/bin/sxhkd";
+ Restart = "on-failure";
+ };
+ wantedBy = [ "graphical-session.target" ];
+ };
systemd.user.services.slstatus = {
description = "slstatus bar";
wantedBy = [ "graphical-session.target" ];
-
- path = with pkgs; [
- pamixer
- scrolling-title
+
+ path = with pkgs; [
+ pamixer
+ scrolling-title
];
serviceConfig = {
ExecStart = "${pkgs.slstatus}/bin/slstatus";
-
+
Restart = "always";
RestartSec = "1s";
};