feat: apps options
This commit is contained in:
parent
783502952c
commit
8c014a0a97
3 changed files with 24 additions and 27 deletions
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../options
|
../options
|
||||||
./option-inheritance.nix
|
./option-inheritance.nix
|
||||||
|
./options
|
||||||
|
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
./profile.nix
|
./profile.nix
|
||||||
|
|
|
@ -2,14 +2,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib.snowfall.system) is-linux;
|
options.marleycfg.apps = {
|
||||||
|
|
||||||
cfg = config.marleyos.apps;
|
|
||||||
in {
|
|
||||||
options.marleyos.apps = {
|
|
||||||
pinentry = lib.mkOption {
|
pinentry = lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
default = pkgs.pinentry-gtk2;
|
default = pkgs.pinentry-gtk2;
|
||||||
|
@ -46,7 +41,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
default = default;
|
inherit default;
|
||||||
};
|
};
|
||||||
|
|
||||||
terminal = lib.mkOption {
|
terminal = lib.mkOption {
|
||||||
|
@ -77,15 +72,10 @@ in {
|
||||||
options = {
|
options = {
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
default =
|
|
||||||
if config.marleyos.wayland.hyprland.enable
|
|
||||||
then config.programs.wofi.package
|
|
||||||
else config.programs.rofi.package;
|
|
||||||
description = "The launcher to use.";
|
description = "The launcher to use.";
|
||||||
};
|
};
|
||||||
command = lib.mkOption {
|
command = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "--show drun";
|
|
||||||
description = ''
|
description = ''
|
||||||
The command appended after the launcher binary to run it.
|
The command appended after the launcher binary to run it.
|
||||||
'';
|
'';
|
||||||
|
@ -95,18 +85,19 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (is-linux system) {
|
# config = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
home.packages = [
|
# home.packages = [
|
||||||
cfg.pinentry
|
# cfg.pinentry
|
||||||
cfg.clipboard.package
|
# cfg.clipboard.package
|
||||||
];
|
# ];
|
||||||
|
#
|
||||||
programs.rbw = lib.mkDefault {
|
# # TODO: move these to respective modules
|
||||||
settings.pinentry = cfg.pinentry;
|
# programs.rbw = lib.mkDefault {
|
||||||
};
|
# settings.pinentry = cfg.pinentry;
|
||||||
|
# };
|
||||||
services.gpg-agent = lib.mkDefault {
|
#
|
||||||
pinentryPackage = cfg.pinentry;
|
# services.gpg-agent = lib.mkDefault {
|
||||||
};
|
# pinentryPackage = cfg.pinentry;
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
5
modules/home/options/default.nix
Normal file
5
modules/home/options/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./apps.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue