changed myOptions to modules

This commit is contained in:
Charlie Root 2024-04-13 15:38:42 +02:00
commit 5378e5c84a
4 changed files with 10 additions and 10 deletions

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.myOptions.programs.ssh;
username = config.myOptions.other.system.username;
cfg = config.modules.programs.ssh;
username = config.modules.other.system.username;
in {
options.myOptions.programs.ssh.enable = mkEnableOption "ssh";
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {
programs.ssh = {

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.myOptions.programs.ncmpcpp;
username = config.myOptions.other.system.username;
cfg = config.modules.programs.ncmpcpp;
username = config.modules.other.system.username;
in {
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
options.modules.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
config = mkIf cfg.enable {
home-manager.users.${username} = {