diff --git a/home/core/cnst.nix b/home/core/cnst.nix index 59aa2a80..377b5eea 100644 --- a/home/core/cnst.nix +++ b/home/core/cnst.nix @@ -2,12 +2,14 @@ home.sessionVariables = { BROWSER = "firefox"; EDITOR = "nvim"; - TERM = "kitty"; + TERM = "foot"; }; imports = [ ./git ./gui ./shell/cnst.nix ./appearance + ./system/polkit.nix + ./system/udiskie.nix ]; } diff --git a/home/core/gui/anyrun/default.nix b/home/core/gui/anyrun/default.nix new file mode 100644 index 00000000..734a8678 --- /dev/null +++ b/home/core/gui/anyrun/default.nix @@ -0,0 +1,46 @@ +{ + pkgs, + inputs, + ... +}: { + imports = [ + inputs.anyrun.homeManagerModules.default + ]; + + programs.anyrun = { + enable = true; + + config = { + plugins = with inputs.anyrun.packages.${pkgs.system}; [ + applications + # randr + rink + shell + symbols + ]; + + width.fraction = 0.25; + y.fraction = 0.3; + hidePluginInfo = true; + closeOnClick = true; + }; + + extraCss = builtins.readFile (./. + "/style-dark.css"); + + extraConfigFiles = { + "applications.ron".text = '' + Config( + desktop_actions: false, + max_entries: 5, + terminal: Some("foot"), + ) + ''; + + "shell.ron".text = '' + Config( + prefix: ">" + ) + ''; + }; + }; +} diff --git a/home/core/gui/anyrun/style-dark.css b/home/core/gui/anyrun/style-dark.css new file mode 100644 index 00000000..55f24f0c --- /dev/null +++ b/home/core/gui/anyrun/style-dark.css @@ -0,0 +1,48 @@ +* { + all: unset; + font-size: 1.2rem; +} + +#window, +#match, +#entry, +#plugin, +#main { + background: transparent; +} + +#match.activatable { + border-radius: 8px; + margin: 4px 0; + padding: 4px; + transition: 100ms ease-out; +} +#match.activatable:first-child { + margin-top: 12px; +} +#match.activatable:last-child { + margin-bottom: 0; +} + +#match:hover { + background: rgba(255, 255, 255, 0.05); +} +#match:selected { + background: rgba(255, 255, 255, 0.1); +} + +#entry { + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 8px; + padding: 4px 8px; +} + +box#main { + background: rgba(0, 0, 0, 0.5); + box-shadow: + inset 0 0 0 1px rgba(255, 255, 255, 0.1), + 0 30px 30px 15px rgba(0, 0, 0, 0.5); + border-radius: 20px; + padding: 12px; +} diff --git a/home/core/gui/default.nix b/home/core/gui/default.nix index 30984980..96b90d4a 100644 --- a/home/core/gui/default.nix +++ b/home/core/gui/default.nix @@ -6,8 +6,9 @@ }: { imports = [ ../../extra/mako - ./rofi.nix - ./waybar.nix + ./rofi + ./waybar + ./anyrun ]; home.packages = with pkgs; [ diff --git a/home/core/gui/rofi.nix b/home/core/gui/rofi/default.nix similarity index 100% rename from home/core/gui/rofi.nix rename to home/core/gui/rofi/default.nix diff --git a/home/core/gui/waybar.nix b/home/core/gui/waybar/default.nix similarity index 100% rename from home/core/gui/waybar.nix rename to home/core/gui/waybar/default.nix diff --git a/home/core/system/polkit.nix b/home/core/system/polkit.nix new file mode 100644 index 00000000..dd55fd16 --- /dev/null +++ b/home/core/system/polkit.nix @@ -0,0 +1,19 @@ +{pkgs, ...}: { + systemd.user.services.polkit-gnome-authentication-agent-1 = { + Unit.Description = "polkit-gnome-authentication-agent-1"; + + Install = { + WantedBy = ["graphical-session.target"]; + Wants = ["graphical-session.target"]; + After = ["graphical-session.target"]; + }; + + Service = { + Type = "simple"; + ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + }; +} diff --git a/home/core/system/udiskie.nix b/home/core/system/udiskie.nix new file mode 100644 index 00000000..f3ea3b85 --- /dev/null +++ b/home/core/system/udiskie.nix @@ -0,0 +1,3 @@ +{ + services.udiskie.enable = true; +} diff --git a/nixos/core/default.nix b/nixos/core/default.nix index b93c415d..9e4bf6ab 100644 --- a/nixos/core/default.nix +++ b/nixos/core/default.nix @@ -47,7 +47,6 @@ niv nix-output-monitor nvd - lxqt.lxqt-policykit # Util stow @@ -67,7 +66,6 @@ xdg-utils xdg-user-dirs ntfs3g - udiskie gnome-disk-utility wlroots fzf