rename myOptions to modules

This commit is contained in:
Dragyx 2024-04-12 22:03:29 +02:00
commit 48f8ac7b19
45 changed files with 1065 additions and 89 deletions

View file

@ -1,8 +1,8 @@
{pkgs, lib, config, ...}:
with lib; let
cfg = config.myOptions.programs.displaymanager;
cfg = config.modules.programs.displaymanager;
in {
options.myOptions.programs.displaymanager.enable = mkEnableOption "displaymanager";
options.modules.programs.displaymanager.enable = mkEnableOption "displaymanager";
config = mkIf cfg.enable {
services.xserver.displayManager = {

View file

@ -5,10 +5,10 @@
self,
...
}: with lib; let
cfg = config.myOptions.other.home-manager;
username = config.myOptions.other.system.username;
cfg = config.modules.other.home-manager;
username = config.modules.other.system.username;
in {
options.myOptions.other.home-manager = {
options.modules.other.home-manager = {
enable = mkEnableOption "home-manager";
enableDirenv = mkEnableOption "direnv";
};

View file

@ -3,9 +3,9 @@
lib,
...
}: with lib; let
cfg = config.myOptions.other.system;
cfg = config.modules.other.system;
in {
options.myOptions.other.system = {
options.modules.other.system = {
hostname = mkOption {
description = "hostname for this system";
type = types.str;

View file

@ -2,7 +2,7 @@
config,
...
}: let
username = config.myOptions.other.system.username;
username = config.modules.other.system.username;
hmCfg = config.home-manager.users.${username};
primary_browser = "firefox-schizo.desktop";
@ -31,7 +31,7 @@ in {
XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority";
};
*/
myOptions.programs.zsh.extraAliases = {
modules.programs.zsh.extraAliases = {
gdb = "gdb -n -x ${hmCfg.xdg.configHome}/gdb/init";
pidgin = "pidgin --config=${hmCfg.xdg.dataHome}/purple";
svn = "svn --config-dir ${hmCfg.xdg.configHome}/subversion";