From 28ba8e57bc3d44cf4d3255a20fbbbba5644c49c5 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Fri, 16 Feb 2024 17:45:51 +0100 Subject: [PATCH] updated syntax --- systems/common/obs.nix | 4 ++-- systems/laptop/default.nix | 4 ++-- systems/pc/default.nix | 8 ++------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/systems/common/obs.nix b/systems/common/obs.nix index c6e3edc..87be742 100644 --- a/systems/common/obs.nix +++ b/systems/common/obs.nix @@ -4,9 +4,9 @@ config, ... }: let - cfg = config.services.obs; + cfg = config.programs.obs; in { - options.services.obs = { + options.programs.obs = { autostart = pkgs.lib.mkOption { type = pkgs.lib.types.bool; default = false; diff --git a/systems/laptop/default.nix b/systems/laptop/default.nix index 57472fa..f647384 100644 --- a/systems/laptop/default.nix +++ b/systems/laptop/default.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{...}: { targets.genericLinux.enable = false; programs.bash.shellAliases = { @@ -12,5 +12,5 @@ }; }; - services.obs.autostart = false; + programs.obs.autostart = false; } diff --git a/systems/pc/default.nix b/systems/pc/default.nix index 17b6862..8146b1e 100644 --- a/systems/pc/default.nix +++ b/systems/pc/default.nix @@ -1,8 +1,4 @@ -{ - pkgs, - # options, - ... -}: { +{...}: { targets.genericLinux.enable = false; programs.bash.shellAliases = { @@ -16,5 +12,5 @@ }; }; - services.obs.autostart = true; + programs.obs.autostart = true; }