rename myOptions to modules

This commit is contained in:
Dragyx 2024-04-12 22:03:29 +02:00
commit 15827edc6c
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.awesome;
cfg = config.modules.programs.awesome;
in {
options.myOptions.programs.awesome.enable = mkEnableOption "awesome";
options.modules.programs.awesome.enable = mkEnableOption "awesome";
config = mkIf cfg.enable {
services.xserver = {

View file

@ -6,7 +6,7 @@
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;
programs.kdeconnect.enable = true;
myOptions = {
modules = {
other = {
system = {
hostname = "mars";

View file

@ -2,8 +2,8 @@
with lib; let
cfg = config.myOptions.programs.hypr.land;
username = config.myOptions.other.system.username;
cfg = config.modules.programs.hypr.land;
username = config.modules.other.system.username;
hmCfg = config.home-manager.users.${username};
smwPresent = elem inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces cfg.extraPlugins;
@ -13,7 +13,7 @@ with lib; let
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
inherit (inputs.hyprlock.packages.${pkgs.system}) hyprlock;
in {
options.myOptions.programs.hypr.land = {
options.modules.programs.hypr.land = {
enable = mkEnableOption "huperland";
startupSound = mkOption {
type = with types; nullOr path;
@ -359,7 +359,7 @@ in {
"[workspace special:rog silent;tile] ${config.services.asusd.package}/bin/rog-control-center")
"[workspace special:keepassxc silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
(if config.myOptions.programs.foot.server then "sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user restart foot.service" else ";")
(if config.modules.programs.foot.server then "sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user restart foot.service" else ";")
"${hyprland}/bin/hyprctl setcursor Bibata-Modern-Classic 24"

View file

@ -5,12 +5,12 @@
pkgs,
...
}: with lib; let
cfg = config.myOptions.programs.hypr.lock;
username = config.myOptions.other.system.username;
cfg = config.modules.programs.hypr.lock;
username = config.modules.other.system.username;
text_color = "rgba(eae0e4FF)";
in {
options.myOptions.programs.hypr.lock = {
options.modules.programs.hypr.lock = {
enable = mkEnableOption "hiper zamek";
extraSettings = mkOption {
type = types.attrs;

View file

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

View file

@ -1,6 +1,6 @@
{ config, inputs, pkgs, ... }:
let
username = config.myOptions.other.system.username;
username = config.modules.other.system.username;
in {
home-manager.users.${username} = {
home.packages = let