mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:03:56 -05:00
home: code cleanup
This commit is contained in:
parent
2b1247b696
commit
916f51d50c
3
aly.nix
3
aly.nix
|
@ -28,6 +28,7 @@ in {
|
||||||
plexamp
|
plexamp
|
||||||
python3
|
python3
|
||||||
ruby
|
ruby
|
||||||
|
tauon
|
||||||
trayscale
|
trayscale
|
||||||
unstable.obsidian
|
unstable.obsidian
|
||||||
unstable.zoom-us
|
unstable.zoom-us
|
||||||
|
@ -36,7 +37,6 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
alyraffauf = {
|
alyraffauf = {
|
||||||
services.syncthing.enable = false;
|
|
||||||
desktop = {
|
desktop = {
|
||||||
defaultApps = {
|
defaultApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -118,7 +118,6 @@ in {
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
neofetch.enable = true;
|
neofetch.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
tauon.enable = true;
|
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
vsCodium.enable = true;
|
vsCodium.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
settings = {
|
settings = {
|
||||||
colors = {
|
colors = {
|
||||||
primary = {
|
primary = {
|
||||||
foreground = "${config.alyraffauf.desktop.theme.colors.text}";
|
|
||||||
background = "${config.alyraffauf.desktop.theme.colors.background}";
|
background = "${config.alyraffauf.desktop.theme.colors.background}";
|
||||||
|
foreground = "${config.alyraffauf.desktop.theme.colors.text}";
|
||||||
};
|
};
|
||||||
transparent_background_colors = true;
|
transparent_background_colors = true;
|
||||||
draw_bold_text_with_bright_colors = true;
|
draw_bold_text_with_bright_colors = true;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
selection.save_to_clipboard = true;
|
selection.save_to_clipboard = true;
|
||||||
window = {
|
window = {
|
||||||
blur = true;
|
blur = true;
|
||||||
# decorations = "None";
|
decorations = "None";
|
||||||
dynamic_padding = true;
|
dynamic_padding = true;
|
||||||
opacity = 0.8;
|
opacity = 0.8;
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
./neofetch
|
./neofetch
|
||||||
./neovim
|
./neovim
|
||||||
./swaylock
|
./swaylock
|
||||||
./tauon
|
|
||||||
./thunar
|
./thunar
|
||||||
./tmux
|
./tmux
|
||||||
./vsCodium
|
./vsCodium
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
config = lib.mkIf config.alyraffauf.apps.eza.enable {
|
config = lib.mkIf config.alyraffauf.apps.eza.enable {
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraOptions = ["--group-directories-first" "--header"];
|
||||||
git = true;
|
git = true;
|
||||||
icons = true;
|
icons = true;
|
||||||
extraOptions = ["--group-directories-first" "--header"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,18 +14,21 @@
|
||||||
font = "${config.alyraffauf.desktop.theme.terminalFont.name}:size=${toString config.alyraffauf.desktop.theme.terminalFont.size}";
|
font = "${config.alyraffauf.desktop.theme.terminalFont.name}:size=${toString config.alyraffauf.desktop.theme.terminalFont.size}";
|
||||||
icon-theme = "${config.alyraffauf.desktop.theme.iconTheme.name}";
|
icon-theme = "${config.alyraffauf.desktop.theme.iconTheme.name}";
|
||||||
layer = "overlay";
|
layer = "overlay";
|
||||||
width = 36;
|
|
||||||
lines = 3;
|
lines = 3;
|
||||||
terminal = config.alyraffauf.desktop.defaultApps.terminal.exe;
|
terminal = config.alyraffauf.desktop.defaultApps.terminal.exe;
|
||||||
|
width = 36;
|
||||||
|
};
|
||||||
|
border = {
|
||||||
|
radius = 10;
|
||||||
|
width = 2;
|
||||||
};
|
};
|
||||||
border = {width = 2;};
|
|
||||||
colors = {
|
colors = {
|
||||||
background = "${config.alyraffauf.desktop.theme.colors.background}CC";
|
background = "${config.alyraffauf.desktop.theme.colors.background}CC";
|
||||||
|
border = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
||||||
selection = "${config.alyraffauf.desktop.theme.colors.background}FF";
|
selection = "${config.alyraffauf.desktop.theme.colors.background}FF";
|
||||||
selection-match = "#e78284FF";
|
selection-match = "#e78284FF";
|
||||||
selection-text = "#f4b8e4FF";
|
selection-text = "#f4b8e4FF";
|
||||||
text = "${config.alyraffauf.desktop.theme.colors.text}FF";
|
text = "${config.alyraffauf.desktop.theme.colors.text}FF";
|
||||||
border = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,25 +12,18 @@
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
"browser.safebrowsing.blockedURIs.enabled" = true;
|
||||||
|
"browser.safebrowsing.downloads.enabled" = true;
|
||||||
"browser.safebrowsing.malware.enabled" = true;
|
"browser.safebrowsing.malware.enabled" = true;
|
||||||
"browser.safebrowsing.phishing.enabled" = true;
|
"browser.safebrowsing.phishing.enabled" = true;
|
||||||
"browser.safebrowsing.blockedURIs.enabled" = true;
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google4.gethashURL" = "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google4.updateURL" = "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google.gethashURL" = "https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2";
|
"browser.safebrowsing.provider.google.gethashURL" = "https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2";
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google.updateURL" = "https://safebrowsing.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2&key=%GOOGLE_SAFEBROWSING_API_KEY%";
|
"browser.safebrowsing.provider.google.updateURL" = "https://safebrowsing.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2&key=%GOOGLE_SAFEBROWSING_API_KEY%";
|
||||||
"browser.safebrowsing.downloads.enabled" = true;
|
"browser.safebrowsing.provider.google4.gethashURL" = "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
|
||||||
|
"browser.safebrowsing.provider.google4.updateURL" = "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
|
||||||
"identity.fxaccounts.enabled" = true;
|
|
||||||
|
|
||||||
"privacy.clearOnShutdown.history" = false;
|
|
||||||
|
|
||||||
"middlemouse.paste" = false;
|
|
||||||
"general.autoScroll" = true;
|
"general.autoScroll" = true;
|
||||||
|
"identity.fxaccounts.enabled" = true;
|
||||||
|
"middlemouse.paste" = false;
|
||||||
|
"privacy.clearOnShutdown.history" = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,48 +12,38 @@
|
||||||
programs.swaylock.enable = true;
|
programs.swaylock.enable = true;
|
||||||
|
|
||||||
xdg.configFile."swaylock/config".text = ''
|
xdg.configFile."swaylock/config".text = ''
|
||||||
font="${config.alyraffauf.desktop.theme.terminalFont.name}-Regular"
|
bs-hl-color=e78284
|
||||||
|
caps-lock-bs-hl-color=e78284
|
||||||
|
caps-lock-key-hl-color=e78284
|
||||||
color=303446
|
color=303446
|
||||||
image=${config.alyraffauf.desktop.theme.wallpaper}
|
|
||||||
|
|
||||||
daemonize
|
daemonize
|
||||||
|
font="${config.alyraffauf.desktop.theme.terminalFont.name}-Regular"
|
||||||
indicator-radius=120
|
image=${config.alyraffauf.desktop.theme.wallpaper}
|
||||||
indicator-thickness=20
|
|
||||||
indicator-caps-lock
|
indicator-caps-lock
|
||||||
indicator-idle-visible
|
indicator-idle-visible
|
||||||
|
indicator-radius=120
|
||||||
key-hl-color=a6d189
|
indicator-thickness=20
|
||||||
|
|
||||||
separator-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
|
||||||
|
|
||||||
inside-color=303446cc
|
|
||||||
inside-clear-color=303446cc
|
|
||||||
inside-caps-lock-color=303446cc
|
inside-caps-lock-color=303446cc
|
||||||
|
inside-clear-color=303446cc
|
||||||
|
inside-color=303446cc
|
||||||
inside-ver-color=303446cc
|
inside-ver-color=303446cc
|
||||||
inside-wrong-color=303446cc
|
inside-wrong-color=303446cc
|
||||||
|
key-hl-color=a6d189
|
||||||
ring-color=${config.alyraffauf.desktop.theme.colors.primary}CC
|
|
||||||
ring-clear-color=85c1dccc
|
|
||||||
ring-caps-lock-color=e78284cc
|
|
||||||
ring-ver-color=a6d189cc
|
|
||||||
ring-wrong-color=e78284cc
|
|
||||||
|
|
||||||
line-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
|
||||||
line-clear-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
|
||||||
line-caps-lock-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
line-caps-lock-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
|
line-clear-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
|
line-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
line-ver-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
line-ver-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
line-wrong-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
line-wrong-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
|
ring-caps-lock-color=e78284cc
|
||||||
|
ring-clear-color=85c1dccc
|
||||||
|
ring-color=${config.alyraffauf.desktop.theme.colors.primary}CC
|
||||||
|
ring-ver-color=a6d189cc
|
||||||
|
ring-wrong-color=e78284cc
|
||||||
|
separator-color=${config.alyraffauf.desktop.theme.colors.background}CC
|
||||||
|
text-caps-lock-color=c6d0f5
|
||||||
text-clear-color=c6d0f5
|
text-clear-color=c6d0f5
|
||||||
text-ver-color=c6d0f5
|
text-ver-color=c6d0f5
|
||||||
text-wrong-color=c6d0f5
|
text-wrong-color=c6d0f5
|
||||||
|
|
||||||
bs-hl-color=e78284
|
|
||||||
caps-lock-key-hl-color=e78284
|
|
||||||
caps-lock-bs-hl-color=e78284
|
|
||||||
text-caps-lock-color=c6d0f5
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options = {alyraffauf.apps.tauon.enable = lib.mkEnableOption "Enables Tauon.";};
|
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.apps.tauon.enable {
|
|
||||||
home.packages = with pkgs; [tauon];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -18,18 +18,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."xfce4/helpers.rc".text = ''
|
xdg.configFile."xfce4/helpers.rc".text = ''
|
||||||
TerminalEmulator=alacritty
|
|
||||||
FileManager=thunar
|
FileManager=thunar
|
||||||
|
TerminalEmulator=alacritty
|
||||||
WebBrowser=firefox
|
WebBrowser=firefox
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# xfconf.settings = {
|
|
||||||
# thunar = {
|
|
||||||
# "last-menubar-visible" = false;
|
|
||||||
# "misc-confirm-close-multiple-tabs" = false;
|
|
||||||
# "misc-show-delete-action" = true;
|
|
||||||
# "misc-single-click" = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,15 +20,15 @@
|
||||||
];
|
];
|
||||||
terminal = "tmux-256color";
|
terminal = "tmux-256color";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set-option -g status-bg plum4
|
run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/battery/battery.tmux
|
||||||
set-option -g pane-active-border-style fg=plum4
|
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
|
||||||
|
run-shell ${pkgs.tmuxPlugins.resurrect}/share/tmux-plugins/resurrect/resurrect.tmux
|
||||||
|
run-shell ${pkgs.tmuxPlugins.weather}/share/tmux-plugins/weather/tmux-weather.tmux
|
||||||
|
set -g status-right '#{cpu_percentage} CPU | #{battery_percentage} BAT | %I:%M %p | #{weather}'
|
||||||
set-option -g @tmux-weather-format "%x+%t"
|
set-option -g @tmux-weather-format "%x+%t"
|
||||||
set-option -g @tmux-weather-units "u"
|
set-option -g @tmux-weather-units "u"
|
||||||
set -g status-right '#{cpu_percentage} CPU | #{battery_percentage} BAT | %I:%M %p | #{weather}'
|
set-option -g pane-active-border-style fg=plum4
|
||||||
run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/battery/battery.tmux
|
set-option -g status-bg plum4
|
||||||
run-shell ${pkgs.tmuxPlugins.resurrect}/share/tmux-plugins/resurrect/resurrect.tmux
|
|
||||||
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
|
|
||||||
run-shell ${pkgs.tmuxPlugins.weather}/share/tmux-plugins/weather/tmux-weather.tmux
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
imports = [./apps ./desktop ./services ./scripts];
|
imports = [./apps ./desktop ./services ./scripts];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
# Configure nixpkgs instance
|
|
||||||
config = {
|
config = {
|
||||||
# Enable unfree packages
|
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,19 +21,6 @@
|
||||||
"org/gnome/mutter".dynamic-workspaces = true;
|
"org/gnome/mutter".dynamic-workspaces = true;
|
||||||
"org/gnome/mutter".edge-tiling = true;
|
"org/gnome/mutter".edge-tiling = true;
|
||||||
"org/gnome/mutter".workspaces-only-on-primary = true;
|
"org/gnome/mutter".workspaces-only-on-primary = true;
|
||||||
"org/gnome/shell/extensions/blur-my-shell/overview".style-components = 3;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".blur = false;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".customize = true;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".style-panel = 0;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".override-background =
|
|
||||||
false;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".override-background-dynamically =
|
|
||||||
false;
|
|
||||||
"org/gnome/shell/extensions/blur-my-shell/panel".unblur-in-overview =
|
|
||||||
true;
|
|
||||||
"org/gnome/system/location".enabled = true;
|
|
||||||
"org/gtk/gtk4/settings/file-chooser".sort-directories-first = true;
|
|
||||||
"org/gtk/settings/file-chooser".sort-directories-first = true;
|
|
||||||
"org/gnome/shell".enabled-extensions = [
|
"org/gnome/shell".enabled-extensions = [
|
||||||
"appindicatorsupport@rgcjonas.gmail.com"
|
"appindicatorsupport@rgcjonas.gmail.com"
|
||||||
"blur-my-shell@aunetx"
|
"blur-my-shell@aunetx"
|
||||||
|
@ -44,6 +31,16 @@
|
||||||
"tiling-assistant@leleat-on-github"
|
"tiling-assistant@leleat-on-github"
|
||||||
"drive-menu@gnome-shell-extensions.gcampax.github.com"
|
"drive-menu@gnome-shell-extensions.gcampax.github.com"
|
||||||
];
|
];
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/overview".style-components = 3;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".blur = false;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".customize = true;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".override-background = false;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".override-background-dynamically = false;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".style-panel = 0;
|
||||||
|
"org/gnome/shell/extensions/blur-my-shell/panel".unblur-in-overview = true;
|
||||||
|
"org/gnome/system/location".enabled = true;
|
||||||
|
"org/gtk/gtk4/settings/file-chooser".sort-directories-first = true;
|
||||||
|
"org/gtk/settings/file-chooser".sort-directories-first = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./syncthing ./easyeffects ./mpd];
|
imports = [./easyeffects ./mpd];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options = {
|
|
||||||
alyraffauf.services.syncthing.enable =
|
|
||||||
lib.mkEnableOption "Enables syncthing as user.";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.services.syncthing.enable {
|
|
||||||
services.syncthing.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue