feat: better modules aragement.

This commit is contained in:
CronyAkatsuki 2025-03-23 20:01:51 +01:00
parent de11ee0676
commit 6e967a751f
49 changed files with 27 additions and 19 deletions

View File

@ -89,7 +89,9 @@
# Load updated auto-cpufreq
auto-cpufreq.nixosModules.default
# Load my modules
./modules/nixos
./modules/linux/nixos
# Still no specific modules here
# ./modules/cross-platform/nixos
# Setup home manager for my user
home-manager.nixosModules.home-manager
{
@ -99,7 +101,8 @@
home-manager.users.crony = {
imports = [
./hosts/nixos/home.nix
./modules/home-manager
./modules/linux/home-manager
./modules/cross-platform/home-manager
];
};
}

View File

@ -0,0 +1,13 @@
{lib, ...}: {
imports = [
./neovim.nix
./shell.nix
./tmux.nix
./zsh.nix
];
crony.neovim.enable = lib.mkDefault true;
crony.shell.enable = lib.mkDefault true;
crony.tmux.enable = lib.mkDefault true;
crony.zsh.enable = lib.mkDefault true;
}

View File

@ -1,27 +1,20 @@
{lib, ...}: {
imports = [
./mangohud.nix
./neovim.nix
./zsh.nix
./tmux.nix
./nnn.nix
./mpv.nix
./obs-studio.nix
./nh.nix
./restic.nix
./hyprland.nix
./browsers
./shell.nix
./scripts.nix
./emulators.nix
./desktop.nix
./emulators.nix
./gaming.nix
./hyprland.nix
./mangohud.nix
./mpv.nix
./nh.nix
./nnn.nix
./obs-studio.nix
./restic.nix
./scripts.nix
];
crony.mangohud.enable = lib.mkDefault true;
crony.neovim.enable = lib.mkDefault true;
crony.zsh.enable = lib.mkDefault true;
crony.tmux.enable = lib.mkDefault true;
crony.nnn.enable = lib.mkDefault true;
crony.mpv.enable = lib.mkDefault true;
crony.obs-studio.enable = lib.mkDefault true;
@ -29,7 +22,6 @@
crony.restic.enable = lib.mkDefault true;
crony.hyprland.enable = lib.mkDefault true;
crony.browsers.enable = lib.mkDefault true;
crony.shell.enable = lib.mkDefault true;
crony.scripts.enable = lib.mkDefault true;
crony.emulators.enable = lib.mkDefault true;
crony.desktop.enable = lib.mkDefault true;

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB