Re-add the features
config prefix
This commit is contained in:
parent
34cb9db3d4
commit
45433358ff
50 changed files with 245 additions and 231 deletions
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.docker;
|
||||
cfg = config.features.cli.docker;
|
||||
in
|
||||
{
|
||||
options.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
options.features.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cli.${service};
|
||||
cfg = config.features.cli.${service};
|
||||
service = "kanata";
|
||||
|
||||
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.cli.${service} = {
|
||||
options.features.cli.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
devices = mkOption {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.password-store;
|
||||
cfg = config.features.cli.password-store;
|
||||
in
|
||||
{
|
||||
options.cli.password-store = {
|
||||
options.features.cli.password-store = {
|
||||
enable = mkEnableOption "Enable pass";
|
||||
|
||||
extensions = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.podman;
|
||||
cfg = config.features.cli.podman;
|
||||
in
|
||||
{
|
||||
options.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
options.features.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue