From 63a2e52ed3f1ce475ae00f338a70fed34d8b75d4 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Mon, 19 Aug 2024 16:28:25 +0200 Subject: [PATCH] feat: make rofi toggleable --- home/default.nix | 1 + home/rofi/default.nix | 3 +-- hosts/marr/configuration.nix | 16 ++++++++++++++++ hosts/marr/home.nix | 4 +++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/home/default.nix b/home/default.nix index 9b39dbe..dbdc5a7 100644 --- a/home/default.nix +++ b/home/default.nix @@ -6,5 +6,6 @@ ./foot.nix ./graphical ./terminal + ./rofi ]; } diff --git a/home/rofi/default.nix b/home/rofi/default.nix index 6b37d74..6157450 100644 --- a/home/rofi/default.nix +++ b/home/rofi/default.nix @@ -4,14 +4,13 @@ lib, ... }: -{ +lib.mkIf config.programs.rofi.enable { programs.rofi = let conf = "${config.home.homeDirectory}/.config/rofi"; in rec { package = pkgs.rofi-wayland.override { inherit plugins; }; - enable = true; plugins = [ pkgs.rofi-calc ]; theme = "${conf}/themes/rounded-gray-dark.rasi"; terminal = "${pkgs.alacritty}/bin/alacritty"; diff --git a/hosts/marr/configuration.nix b/hosts/marr/configuration.nix index ebf3da9..7221f69 100644 --- a/hosts/marr/configuration.nix +++ b/hosts/marr/configuration.nix @@ -36,6 +36,12 @@ HibernateDelaySec=1200 ''; + specialisation = { + gpu.configuration = { + imports = [ inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia ]; + }; + }; + programs = { dconf.enable = true; steam.enable = true; @@ -45,6 +51,16 @@ 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; #: Virtualisation {{{ diff --git a/hosts/marr/home.nix b/hosts/marr/home.nix index c9012b0..2869f6f 100644 --- a/hosts/marr/home.nix +++ b/hosts/marr/home.nix @@ -8,7 +8,6 @@ home-manager.users.${username} = { imports = [ ../../home/sway - ../../home/rofi ../../home/themes/catppuccin.nix ../../home ]; @@ -28,6 +27,9 @@ nix-direnv.enable = true; }; + programs = { + rofi.enable = true; + }; home = { stateVersion = config.system.stateVersion; inherit username;