Run alejandra

This commit is contained in:
ItsDrike 2024-07-27 01:07:07 +02:00
parent 286920def4
commit c00134da1c
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
152 changed files with 827 additions and 721 deletions

View file

@ -16,6 +16,3 @@ in {
];
};
}

View file

@ -9,6 +9,6 @@
cfg = osConfig.myOptions.home-manager.programs.applications.qalculate-gtk;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ qalculate-gtk ];
home.packages = with pkgs; [qalculate-gtk];
};
}

View file

@ -14,4 +14,3 @@ in {
];
};
}

View file

@ -14,4 +14,3 @@ in {
];
};
}

View file

@ -9,13 +9,13 @@
cfg = osConfig.myOptions.home-manager.programs.applications.vesktop;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ vesktop ];
home.packages = with pkgs; [vesktop];
systemd.user.services."vesktop" = mkIf cfg.autoStart {
Unit = {
Description = "Vesktop (An alternate client for Discord with Vencord built-in)";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
After = ["graphical-session.target"];
PartOf = ["graphical-session.target"];
};
Service = {
@ -24,7 +24,7 @@ in {
ExecStart = "${pkgs.vesktop}/bin/vesktop";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = ["graphical-session.target"];
};
};
}

View file

@ -9,7 +9,7 @@
cfg = osConfig.myOptions.home-manager.programs.applications.webcord;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [
home.packages = with pkgs; [
# Webcord with vencord extension installed
webcord-vencord
];
@ -17,8 +17,8 @@ in {
systemd.user.services."webcord" = mkIf cfg.autoStart {
Unit = {
Description = "Webcord (An electron-based Discord client implemented without Discord API with Vencord built-in)";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
After = ["graphical-session.target"];
PartOf = ["graphical-session.target"];
};
Service = {
@ -27,8 +27,7 @@ in {
ExecStart = "${pkgs.webcord-vencord}/bin/webcord";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = ["graphical-session.target"];
};
};
}

View file

@ -1,4 +1,4 @@
{
{
lib,
pkgs,
osConfig,
@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
scriptPkgs = (import ../../../../packages/cli/scripts/packages {inherit pkgs;});
scriptPkgs = import ../../../../packages/cli/scripts/packages {inherit pkgs;};
cfg = osConfig.myOptions.home-manager.programs.bars.eww;
in {
@ -17,7 +17,7 @@ in {
};
systemd.user.services = {
"eww" = let
"eww" = let
# All dependencies required for eww and for the scripts/widgets it uses
dependencies = with pkgs; [
python3
@ -44,8 +44,8 @@ in {
in {
Unit = {
Description = "ElKowar's Wacky Widgets (eww) daemon";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
After = ["graphical-session-pre.target"];
PartOf = ["graphical-session.target"];
};
Service = {
@ -63,14 +63,14 @@ in {
Nice = 19;
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = ["graphical-session.target"];
};
"eww-window-bar0" = {
Unit = {
Description = "Open bar0 eww (ElKowar's Wacky Widgets) window";
After = [ "eww.service" ];
PartOf = [ "graphical-session.target" "eww.service" ];
After = ["eww.service"];
PartOf = ["graphical-session.target" "eww.service"];
};
Service = {
@ -82,7 +82,7 @@ in {
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = ["graphical-session.target"];
};
};
};

View file

@ -14,7 +14,8 @@ in {
enable = true;
package = pkgs.ungoogled-chromium.override {
commandLineArgs = [
commandLineArgs =
[
# Ungoogled features
"--disable-search-engine-collection"
"--extension-mime-request-handling=always-prompt-for-install"
@ -60,12 +61,12 @@ in {
"--disable-sync"
"--disable-speech-api"
"--disable-speech-synthesis-api"
] ++ optionals isWayland [
]
++ optionals isWayland [
"--ozone-platform=wayland"
"--enable-features=UseOzonePlatform"
];
];
};
};
};
}

View file

@ -6,4 +6,3 @@ _: {
./firefox
];
}

View file

@ -34,7 +34,7 @@ in {
search = {
defaultSearchEngine = "Brave";
removeEngines = [ "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia" "LibRedirect" ];
removeEngines = ["Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia" "LibRedirect"];
searxUrl = "https://searx.be";
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
@ -47,32 +47,32 @@ in {
URLTemplate = "https://search.brave.com/search?q={searchTerms}";
}
{
Name = "NixOS Packages";
Description = "NixOS Unstable package search";
Alias = "!np";
Method = "GET";
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
Name = "NixOS Packages";
Description = "NixOS Unstable package search";
Alias = "!np";
Method = "GET";
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
}
{
Name = "NixOS Options";
Description = "NixOS Unstable option search";
Alias = "!no";
Method = "GET";
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
Name = "NixOS Options";
Description = "NixOS Unstable option search";
Alias = "!no";
Method = "GET";
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
}
{
Name = "NixOS Wiki";
Description = "NixOS Wiki search";
Alias = "!nw";
Method = "GET";
URLTemplate = "https://nixos.wiki/index.php?search={searchTerms}";
Name = "NixOS Wiki";
Description = "NixOS Wiki search";
Alias = "!nw";
Method = "GET";
URLTemplate = "https://nixos.wiki/index.php?search={searchTerms}";
}
{
Name = "Home Manager Options";
Description = "Home Manager option search";
Alias = "!hm";
Method = "GET";
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
Name = "Home Manager Options";
Description = "Home Manager option search";
Alias = "!hm";
Method = "GET";
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
}
{
Name = "MyNixOS";
@ -82,25 +82,25 @@ in {
URLTemplate = "https://mynixos.com/search?q={searchTerms}";
}
{
Name = "Arch Wiki";
Description = "Arch Wiki search";
Alias = "!aw";
Method = "GET";
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}";
Name = "Arch Wiki";
Description = "Arch Wiki search";
Alias = "!aw";
Method = "GET";
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}";
}
{
Name = "Gentoo Wiki";
Description = "Gentoo Wiki search";
Alias = "!gw";
Method = "GET";
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}";
Name = "Gentoo Wiki";
Description = "Gentoo Wiki search";
Alias = "!gw";
Method = "GET";
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}";
}
{
Name = "Debian Wiki";
Description = "Debian Wiki search";
Alias = "!dw";
Method = "GET";
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
Name = "Debian Wiki";
Description = "Debian Wiki search";
Alias = "!dw";
Method = "GET";
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
}
];
};
@ -142,10 +142,10 @@ in {
}
];
extraExtensions = builtins.foldl' (acc: ext: acc // {ext.id = { install_url = mkUrl ext.name;};}) {} extensions;
in extraExtensions;
extraExtensions = builtins.foldl' (acc: ext: acc // {ext.id = {install_url = mkUrl ext.name;};}) {} extensions;
in
extraExtensions;
};
};
};
}

View file

@ -10,7 +10,7 @@
cfgPreferences = osConfig.myOptions.home-manager.preferences;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ lxqt.pcmanfm-qt ];
home.packages = with pkgs; [lxqt.pcmanfm-qt];
xdg.configFile."pcmanfm-qt/default/settings.conf".text = lib.generators.toINI {} {
Behavior = {
@ -109,7 +109,7 @@ in {
Thumbnail = {
MaxExternalThumbnailFileSize = -1;
MaxThumbnailFileSize = 40960; # 40 MB
MaxThumbnailFileSize = 40960; # 40 MB
ShowThumbnails = true;
ThumbnailLocalFilesOnly = true;
};

View file

@ -9,6 +9,6 @@
cfg = osConfig.myOptions.home-manager.programs.games.prismlauncher;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ prismlauncher ];
home.packages = with pkgs; [prismlauncher];
};
}

View file

@ -8,7 +8,7 @@
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.launchers.walker;
in {
imports = [ inputs.walker.homeManagerModules.walker ];
imports = [inputs.walker.homeManagerModules.walker];
config = mkIf cfg.enable {
programs.walker = {
enable = true;
@ -25,13 +25,13 @@ in {
fullscreen = false;
scrollbar_policy = "automatic";
websearch = {
engines = ["google" "duckduckgo"];
engines = ["google" "duckduckgo"];
};
hyprland = {
context_aware_history = false;
};
applications = {
enable_cache = false; # disabling doesn't cause slowdowns, and allows picking up new apps automatically
enable_cache = false; # disabling doesn't cause slowdowns, and allows picking up new apps automatically
};
# Mode for picking the entry with keyboard using labels
@ -48,7 +48,7 @@ in {
hide_spinner = false;
};
runner = {
excludes = ["rm"]; # commands to be excluded from the runner
excludes = ["rm"]; # commands to be excluded from the runner
};
clipboard = {
max_entries = 10;
@ -82,7 +82,7 @@ in {
};
orientation = "vertical";
icons = {
theme = ""; # GTK Icon theme (default)
theme = ""; # GTK Icon theme (default)
hide = false;
size = 28;
image_height = 200;
@ -127,7 +127,7 @@ in {
switcher_exclusive = true;
}
{
name = "websearch"; # uses google
name = "websearch"; # uses google
prefix = "";
switcher_exclusive = true;
}

View file

@ -10,4 +10,3 @@
};
};
}

View file

@ -1,7 +1,4 @@
{
osConfig,
...
}: let
{osConfig, ...}: let
cfg = osConfig.myOptions.home-manager.wms.hyprland;
in {
wayland.windowManager.hyprland.settings = {
@ -29,4 +26,3 @@ in {
monitor = cfg.monitor;
};
}

View file

@ -1,4 +1,8 @@
{ config, osConfig, ... }: let
{
config,
osConfig,
...
}: let
cfgPreferences = osConfig.myOptions.home-manager.preferences;
in {
wayland.windowManager.hyprland = {
@ -15,13 +19,13 @@ in {
"$SCREENSHOT_DELAY" = "2000";
bind = [
#
#
# Active window
#
"SUPER, W, killactive,"
"SUPER, F, togglefloating,"
"SUPER, Space, fullscreen, 0"
"SUPER_SHIFT, Space, fullscreen, 1" # maximize
"SUPER_SHIFT, Space, fullscreen, 1" # maximize
"CTRL_SHIFT, Space, exec, toggle-fake-fullscreen" # fake fullscreen + custom border
"SUPER_SHIFT, S, layoutmsg, togglesplit"
@ -191,7 +195,6 @@ in {
# Global keybinds (passing keys to other programs)
#
"CTRL, F10, pass, ^(com\.obsproject\.Studio)$"
];
# Mouse bindings

View file

@ -1,6 +1,6 @@
{
wayland.windowManager.hyprland.settings = {
general.layout = "dwindle";
general.layout = "dwindle";
dwindle = {
# Don't change the split (side/top) regardless of what happens to the container

View file

@ -9,7 +9,7 @@
focus_on_activate = true;
# Auto-reload is unnecessary on NixOS, config is readonly
disable_autoreload = true;
disable_autoreload = true;
# Enable DPMS on these actions
mouse_move_enables_dpms = true;

View file

@ -1,10 +1,5 @@
{
config,
...
}:
{
{config, ...}: {
wayland.windowManager.hyprland.settings = {
#
# Window gaps
#
@ -34,12 +29,12 @@
group = {
# Groupped windows
"col.border_active" = "rgba(00A500FF)"; # green
"col.border_inactive" = "rgba(5AA500FF)"; # transparent green
"col.border_active" = "rgba(00A500FF)"; # green
"col.border_inactive" = "rgba(5AA500FF)"; # transparent green
# Locked groupped windows
"col.border_locked_active" = "rgba(A0A500FF)"; # yellow
"col.border_locked_inactive" = "rgba(A0A500AA)"; # transparent yellow
"col.border_locked_active" = "rgba(A0A500FF)"; # yellow
"col.border_locked_inactive" = "rgba(A0A500AA)"; # transparent yellow
};
#
@ -52,7 +47,7 @@
render_titles = false; # disable, looks kinda bad
font_family = "Monaspace Krypton";
font_size = 11;
text_color = "rgba(FFFFFFFF)"; # white
text_color = "rgba(FFFFFFFF)"; # white
# Gradients should be enabled only if title rendering is also enabled
# on their own, they look really bad
@ -81,7 +76,6 @@
"col.shadow_inactive" = "rgba(0F0F0F99)";
};
#
# Window Blur
#
@ -92,7 +86,6 @@
passes = 1;
};
#
# Dim inactive windows
#
@ -107,7 +100,7 @@
#
# Animation
#
animations = {
enabled = true;
first_launch_animation = true; # fade in on first launch
@ -124,4 +117,3 @@
misc.animate_manual_resizes = true;
};
}

View file

@ -109,4 +109,3 @@
];
};
}

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
hyprPkgs = (import ./packages {inherit pkgs;});
hyprPkgs = import ./packages {inherit pkgs;};
# TODO: Switch to flake
hyprlandPkg = pkgs.hyprland;
@ -15,7 +15,7 @@
cfg = osConfig.myOptions.home-manager.wms.hyprland;
in {
imports = [
./config
./config
];
config = mkIf cfg.enable {

View file

@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "brightness" ''
${builtins.readFile ./brightness.sh}
''
pkgs.writeShellScriptBin "brightness" ''
${builtins.readFile ./brightness.sh}
''

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: let
{pkgs, ...}: let
packages = {
hyprland-move-window = pkgs.callPackage ./hyprland-move-window {};
brightness = pkgs.callPackage ./brightness {};

View file

@ -1,5 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "hyprland-move-window" ''
${builtins.readFile ./hyprland-move-window.sh}
''
pkgs.writeShellScriptBin "hyprland-move-window" ''
${builtins.readFile ./hyprland-move-window.sh}
''

View file

@ -13,4 +13,3 @@ pkgs.writeShellApplication {
${builtins.readFile ./quick-record.sh}
'';
}

View file

@ -10,5 +10,3 @@ pkgs.writeShellApplication {
${builtins.readFile ./toggle-fake-fullscreen.sh}
'';
}

View file

@ -10,6 +10,3 @@ pkgs.writeShellApplication {
${builtins.readFile ./toggle-notifications.sh}
'';
}