Restructure home and system modules
This commit is contained in:
parent
b86a8b50c7
commit
a03355b3a1
35 changed files with 82 additions and 82 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.apps.chromium;
|
||||
cfg = config.modules.home.apps.chromium;
|
||||
in
|
||||
{
|
||||
options.homeModules.apps.chromium = {
|
||||
options.modules.home.apps.chromium = {
|
||||
enable = mkEnableOption ''
|
||||
Enable chromium with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.apps.flatpak;
|
||||
cfg = config.modules.home.apps.flatpak;
|
||||
in
|
||||
{
|
||||
imports = [ nix-flatpak.homeManagerModules.nix-flatpak ];
|
||||
|
||||
options.homeModules.apps.flatpak = {
|
||||
options.modules.home.apps.flatpak = {
|
||||
enable = mkEnableOption ''
|
||||
Enable flatpak with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.apps.jetbrainsToolbox;
|
||||
cfg = config.modules.home.apps.jetbrainsToolbox;
|
||||
in
|
||||
{
|
||||
options.homeModules.apps.jetbrainsToolbox = {
|
||||
options.modules.home.apps.jetbrainsToolbox = {
|
||||
enable = mkEnableOption ''
|
||||
Enable jetbrainsToolbox with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.apps.kitty;
|
||||
cfg = config.modules.home.apps.kitty;
|
||||
in
|
||||
{
|
||||
options.homeModules.apps.kitty = {
|
||||
options.modules.home.apps.kitty = {
|
||||
enable = mkEnableOption ''
|
||||
Enable kitty with my custom configurations
|
||||
'';
|
||||
|
||||
enableBlur = mkOption {
|
||||
default = !config.homeModules.desktop.hyprland.enable; # Disable by default if hyprland is enabled (Hyprland enable own blur)
|
||||
default = !config.modules.home.desktop.hyprland.enable; # Disable by default if hyprland is enabled (Hyprland enable own blur)
|
||||
example = true;
|
||||
description = ''
|
||||
Enable blur (Usefull to disable with hyprland)
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.apps.vscode;
|
||||
cfg = config.modules.home.apps.vscode;
|
||||
in
|
||||
{
|
||||
options.homeModules.apps.vscode = {
|
||||
options.modules.home.apps.vscode = {
|
||||
enable = mkEnableOption ''
|
||||
Enable vscode with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.desktop.hyprland;
|
||||
cfg = config.modules.home.desktop.hyprland;
|
||||
|
||||
set_volume = pkgs.writeScriptBin "set_volume.sh" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
|
@ -10,13 +10,13 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
options.homeModules.desktop.hyprland = {
|
||||
options.modules.home.desktop.hyprland = {
|
||||
enable = mkEnableOption ''
|
||||
Enable hyprland with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
homeModules.apps.kitty.enable = true;
|
||||
modules.home.apps.kitty.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.shell.atuin;
|
||||
cfg = config.modules.home.shell.atuin;
|
||||
in
|
||||
{
|
||||
options.homeModules.shell.atuin = {
|
||||
options.modules.home.shell.atuin = {
|
||||
enable = mkEnableOption ''
|
||||
Enable atuin with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.shell.direnv;
|
||||
cfg = config.modules.home.shell.direnv;
|
||||
in
|
||||
{
|
||||
options.homeModules.shell.direnv = {
|
||||
options.modules.home.shell.direnv = {
|
||||
enable = mkEnableOption ''
|
||||
Enable direnv with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.shell.git;
|
||||
cfg = config.modules.home.shell.git;
|
||||
in
|
||||
{
|
||||
options.homeModules.shell.git = {
|
||||
options.modules.home.shell.git = {
|
||||
enable = mkEnableOption ''
|
||||
Enable git with my custom configurations
|
||||
'';
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.homeModules.shell.zsh;
|
||||
cfg = config.modules.home.shell.zsh;
|
||||
in
|
||||
{
|
||||
options.homeModules.shell.zsh = {
|
||||
options.modules.home.shell.zsh = {
|
||||
enable = mkEnableOption ''
|
||||
Enable zsh with my custom configurations
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue