Compare commits

..

No commits in common. "ceda87452c5aca6b79504eaf2dedcc68f734f069" and "93260e3857deb35ece63bc7a51de00afc93a1d6c" have entirely different histories.

2 changed files with 96 additions and 104 deletions

View file

@ -11,24 +11,22 @@ in {
]; ];
services = { services = {
# Choose to run a node or not.
monero.enable = true; monero.enable = true;
xmrig = { xmrig = {
enable = true; enable = true;
settings = { settings = {
autosave = true; autosave = true;
background = true; background = true;
pause-on-battery = true; pause-on-battery = true;
pause-on-active = 60; pasue-on-active = true;
donate-level = 5; donate-level = 5;
cpu = true; cpu = true;
opencl = false; opencl = false;
cuda = true; cuda = true;
pools = [ pools = [
{ {
url = "monerohash.com:9999"; # url = "monerohash.com:9999";
# url = "127.0.0.1:18081"; # Local node url = "127.0.0.1:18081"; # Local node
user = "44FjmmLn1k1GC1AFTLSdWDZ17CHB2h3eRCnfkfTQBucHaKX1AGS5oLERR1FEaHxPQcUNwrbEfsgbY4Y6bYJm6ZrdCYGwg7b"; user = "44FjmmLn1k1GC1AFTLSdWDZ17CHB2h3eRCnfkfTQBucHaKX1AGS5oLERR1FEaHxPQcUNwrbEfsgbY4Y6bYJm6ZrdCYGwg7b";
keepalive = true; keepalive = true;
tls = true; tls = true;

View file

@ -1,7 +1,5 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { config, lib, pkgs, pkgs-unstable, ... }:
# Does basically the same thing that stow does, but using Nix.
let let
cfg = config.sisyphus.users.tdpeuter; cfg = config.sisyphus.users.tdpeuter;
user = config.users.users.tdpeuter.name; user = config.users.users.tdpeuter.name;
@ -10,103 +8,99 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable { home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
home = { home = {
file = lib.mkMerge [ file = {
{ ".config/alacritty" = {
".config/alacritty" = { source = ../../../stow/alacritty/.config/alacritty;
enable = false; };
source = ../../../stow/alacritty/.config/alacritty; ".config/dunst" = {
}; enable = config.sisyphus.desktop.sway.enable;
".config/dunst" = { source = ../../../stow/dunst/.config/dunst;
inherit (config.sisyphus.desktop.sway) enable; };
source = ../../../stow/dunst/.config/dunst; ".config/fuzzel" = {
}; source = ../../../stow/fuzzel/.config/fuzzel;
".config/fuzzel" = { recursive = true;
recursive = true; };
source = ../../../stow/fuzzel/.config/fuzzel; ".config/git" = {
}; source = ../../../stow/git/.config/git;
".config/git" = { recursive = true;
recursive = true; };
source = ../../../stow/git/.config/git; ".config/kitty" = {
}; source = ../../../stow/kitty/.config/kitty;
".config/kitty" = { recursive = true;
enable = false; };
recursive = true; ".config/mako" = {
source = ../../../stow/kitty/.config/kitty; source = ../../../stow/mako/.config/mako;
}; };
".config/mako" = { ".config/mpv" = {
enable = false; source = ../../../stow/mpv/.config/mpv;
source = ../../../stow/mako/.config/mako; };
}; ".config/OpenRGB" = {
".config/mpv" = { enable = config.sisyphus.services.openrgb.enable;
source = ../../../stow/mpv/.config/mpv; source = ../../../stow/openrgb/.config/OpenRGB;
}; recursive = true;
".config/OpenRGB" = { };
inherit (config.sisyphus.services.openrgb) enable; ".config/sway" = {
recursive = true; enable = config.sisyphus.desktop.sway.enable;
source = ../../../stow/openrgb/.config/OpenRGB; source = ../../../stow/sway/.config/sway;
}; };
".config/sway" = { ".config/swayidle" = {
inherit (config.sisyphus.desktop.sway) enable; enable = config.sisyphus.desktop.sway.enable;
source = ../../../stow/sway/.config/sway; source = ../../../stow/swayidle/.config/swayidle;
}; };
".config/swayidle" = { ".config/swaylock" = {
inherit (config.sisyphus.desktop.sway) enable; enable = config.sisyphus.desktop.sway.enable;
source = ../../../stow/swayidle/.config/swayidle; source = ../../../stow/swaylock/.config/swaylock;
}; };
".config/swaylock" = { ".config/vifm" = {
inherit (config.sisyphus.desktop.sway) enable; source = ../../../stow/vifm/.config/vifm;
source = ../../../stow/swaylock/.config/swaylock; recursive = true; # Fix history and all working
}; };
".config/vifm" = { ".config/waybar" = {
recursive = true; # Fix history and all working enable = config.sisyphus.desktop.sway.enable;
source = ../../../stow/vifm/.config/vifm; source = ../../../stow/waybar/.config/waybar;
}; };
".config/waybar" = { ".config/zellij" = {
inherit (config.sisyphus.desktop.sway) enable; source = ../../../stow/zellij/.config/zellij;
source = ../../../stow/waybar/.config/waybar; };
}; ".oh-my-zsh" = {
".config/zellij" = { enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
source = ../../../stow/zellij/.config/zellij; source = "${pkgs.oh-my-zsh}/share/oh-my-zsh";
}; recursive = true;
".oh-my-zsh" = { };
enable = config.users.users.tdpeuter.shell == pkgs.zsh; ".oh-my-zsh/themes/tdpeuter.zsh-theme" = {
source = "${pkgs.oh-my-zsh}/share/oh-my-zsh"; enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
recursive = true; source = ../../../stow/zsh/.oh-my-zsh/themes/tdpeuter.zsh-theme;
}; };
".oh-my-zsh/themes/tdpeuter.zsh-theme" = { ".ssh/config" = lib.mkIf config.sisyphus.programs.ssh.enable {
enable = config.users.users.tdpeuter.shell == pkgs.zsh; source = ../../../stow/ssh/.ssh/config;
source = ../../../stow/zsh/.oh-my-zsh/themes/tdpeuter.zsh-theme; };
}; ".vim" = {
".ssh/config" = lib.mkIf config.sisyphus.programs.ssh.enable { source = ../../../stow/vim/.vim;
inherit (config.sisyphus.programs.ssh) enable; recursive = true;
source = ../../../stow/ssh/.ssh/config; };
}; ".vim/autoload/plug.vim" = {
".vim" = { source = "${pkgs.vimPlugins.vim-plug}/plug.vim";
recursive = true; };
source = ../../../stow/vim/.vim; ".vimrc" = {
}; source = ../../../stow/vim/.vimrc;
".vim/autoload/plug.vim" = { };
source = "${pkgs.vimPlugins.vim-plug}/plug.vim"; ".zshrc" = {
}; enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
".vimrc" = { source = ../../../stow/zsh/.zshrc;
source = ../../../stow/vim/.vimrc; };
}; ".zsh/plugins/cmdtime/cmdtime.plugin.zsh" = {
} enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
(lib.mkIf (config.users.users.tdpeuter.shell == pkgs.zsh) { source = "${pkgs.cmdtime}/share/cmdtime/cmdtime.plugin.zsh";
".zshrc" = { };
source = ../../../stow/zsh/.zshrc; ".zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" = {
}; enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
".zsh/plugins/cmdtime/cmdtime.plugin.zsh" = { source = "${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh";
source = "${pkgs.cmdtime}/share/cmdtime/cmdtime.plugin.zsh"; };
}; ".zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" = {
".zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" = { enable = (config.users.users.tdpeuter.shell == pkgs.zsh);
source = "${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh"; source = "${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh";
}; };
".zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" = { };
source = "${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh";
};
})
];
}; };
}; };
}; };