feat: make rofi toggleable

This commit is contained in:
Nydragon 2024-08-19 16:28:25 +02:00
parent fd76089ca7
commit 63a2e52ed3
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
4 changed files with 21 additions and 3 deletions

View file

@ -6,5 +6,6 @@
./foot.nix ./foot.nix
./graphical ./graphical
./terminal ./terminal
./rofi
]; ];
} }

View file

@ -4,14 +4,13 @@
lib, lib,
... ...
}: }:
{ lib.mkIf config.programs.rofi.enable {
programs.rofi = programs.rofi =
let let
conf = "${config.home.homeDirectory}/.config/rofi"; conf = "${config.home.homeDirectory}/.config/rofi";
in in
rec { rec {
package = pkgs.rofi-wayland.override { inherit plugins; }; package = pkgs.rofi-wayland.override { inherit plugins; };
enable = true;
plugins = [ pkgs.rofi-calc ]; plugins = [ pkgs.rofi-calc ];
theme = "${conf}/themes/rounded-gray-dark.rasi"; theme = "${conf}/themes/rounded-gray-dark.rasi";
terminal = "${pkgs.alacritty}/bin/alacritty"; terminal = "${pkgs.alacritty}/bin/alacritty";

View file

@ -36,6 +36,12 @@
HibernateDelaySec=1200 HibernateDelaySec=1200
''; '';
specialisation = {
gpu.configuration = {
imports = [ inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia ];
};
};
programs = { programs = {
dconf.enable = true; dconf.enable = true;
steam.enable = true; steam.enable = true;
@ -45,6 +51,16 @@
sway.enable = true; sway.enable = true;
}; };
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd \"sway --unsupported-gpu\"";
user = "greeter";
};
};
};
services.printing.enable = true; services.printing.enable = true;
#: Virtualisation {{{ #: Virtualisation {{{

View file

@ -8,7 +8,6 @@
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
../../home/sway ../../home/sway
../../home/rofi
../../home/themes/catppuccin.nix ../../home/themes/catppuccin.nix
../../home ../../home
]; ];
@ -28,6 +27,9 @@
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs = {
rofi.enable = true;
};
home = { home = {
stateVersion = config.system.stateVersion; stateVersion = config.system.stateVersion;
inherit username; inherit username;