diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-24 11:01:47 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-24 11:01:47 +0200 |
commit | a313260ac9184327afafb8524a1778900000ace9 (patch) | |
tree | 59a7dfe5fa34414c97f0849d274f37576475815b /modules/by-name/ro/rofi/module.nix | |
parent | modules/ssh: Adapt to home-manager module changes (diff) | |
download | nixos-config-a313260ac9184327afafb8524a1778900000ace9.zip |
modules/legacy/{rofi,alacritty}: Migrate to by-name
Diffstat (limited to 'modules/by-name/ro/rofi/module.nix')
-rw-r--r-- | modules/by-name/ro/rofi/module.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/by-name/ro/rofi/module.nix b/modules/by-name/ro/rofi/module.nix new file mode 100644 index 00000000..f2b404d6 --- /dev/null +++ b/modules/by-name/ro/rofi/module.nix @@ -0,0 +1,31 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. +{ + config, + lib, + libraries, + ... +}: let + cfg = config.soispha.programs.rofi; +in { + options.soispha.programs.rofi = { + enable = libraries.base.options.mkEnable "rofi"; + }; + + config = lib.mkIf cfg.enable { + home-manager.users.soispha = { + programs.rofi = { + enable = true; + terminal = lib.getExe config.soispha.programs.alacritty.package; + theme = ./nord-twoLines.rasi; + }; + }; + }; +} |