mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Move modules in programs/services subfolders
This commit is contained in:
parent
2ff87c8404
commit
211ca98e92
38 changed files with 0 additions and 0 deletions
27
modules/home/programs/rofi/default.nix
Normal file
27
modules/home/programs/rofi/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.custom.programs.rofi.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.programs.rofi.enable {
|
||||
home.packages = [ pkgs.rofi-wayland ];
|
||||
|
||||
xdg.configFile."rofi/config.rasi".source =
|
||||
let
|
||||
theming =
|
||||
{
|
||||
dark = ./dark-theme.rasi;
|
||||
light = ./light-theme.rasi;
|
||||
}
|
||||
.${config.custom.theme};
|
||||
in
|
||||
pkgs.concatText "rofi-config" [
|
||||
./config.rasi
|
||||
theming
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue