wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
parent
2033810429
commit
6a591ecbf7
115 changed files with 1028 additions and 791 deletions
|
|
@ -1,34 +0,0 @@
|
|||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ooknet.desktop.wayland.launcher.anyrun;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.anyrun.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
||||
applications
|
||||
randr
|
||||
shell
|
||||
rink
|
||||
symbols
|
||||
];
|
||||
};
|
||||
extraCss = /* css */ ''
|
||||
|
||||
* {
|
||||
font-family: JetBrains Mono Nerd Font;
|
||||
}
|
||||
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,21 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# ./anyrun
|
||||
./rofi
|
||||
./tofi
|
||||
./rofi.nix
|
||||
./tofi.nix
|
||||
];
|
||||
|
||||
options.ooknet.desktop.wayland.launcher = {
|
||||
anyrun = {
|
||||
enable = lib.mkEnableOption "enable anyrun launcher module";
|
||||
};
|
||||
rofi = {
|
||||
enable = lib.mkEnableOption "enable rofi launcher module";
|
||||
};
|
||||
tofi = {
|
||||
enable = lib.mkEnableOption "enable tofi launcher module";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
fonts = config.ooknet.theme.fonts;
|
||||
cfg = config.ooknet.desktop.wayland.launcher.rofi;
|
||||
inherit (lib) mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
wayland = config.ooknet.wayland;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf (wayland.launcher == "rofi") {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "${fonts.monospace.family}";
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ooknet.desktop.wayland.launcher.tofi;
|
||||
fonts = config.ooknet.theme.fonts;
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (lib) mkIf;
|
||||
wayland = config.ooknet.wayland;
|
||||
fonts = config.ooknet.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf (wayland.launcher == "tofi") {
|
||||
home.packages = [pkgs.tofi];
|
||||
xdg.configFile."tofi/config".text = /* config */ ''
|
||||
history = false
|
||||
|
|
@ -37,6 +37,5 @@ in
|
|||
selection-color = ${palette.base04}
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue