highly vibed modularization

This commit is contained in:
alisceon 2026-03-10 21:11:52 +01:00
parent a52cd4d35c
commit cea12431ff
12 changed files with 79 additions and 13 deletions

View file

@ -43,7 +43,7 @@
inherit inputs; inherit inputs;
}; };
sharedModules = [ sharedModules = [
./hosts/common/default.nix ./hosts/base.nix
stylix.nixosModules.stylix stylix.nixosModules.stylix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
({ config, ...}: { ({ config, ...}: {
@ -64,10 +64,10 @@
inherit pkgs; inherit pkgs;
specialArgs = sharedSpecialArgs // {}; specialArgs = sharedSpecialArgs // {};
modules = sharedModules ++ [ modules = sharedModules ++ [
./hosts/electra/configuration.nix ./hosts/hosts/electra.nix
./hosts/common/workstation.nix ./hosts/workstation.nix
./hosts/common/wm/sway.nix ./hosts/modules/wm/sway/default.nix
./hosts/common/stylix.nix ./hosts/modules/stylix.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
({ config, ...}: { ({ config, ...}: {
home-manager.users.alisceon.imports = [ home-manager.users.alisceon.imports = [
@ -87,10 +87,10 @@
inherit pkgs; inherit pkgs;
specialArgs = sharedSpecialArgs // {}; specialArgs = sharedSpecialArgs // {};
modules = sharedModules ++ [ modules = sharedModules ++ [
./hosts/tower/configuration.nix ./hosts/hosts/tower.nix
./hosts/common/workstation.nix ./hosts/workstation.nix
./hosts/common/wm/sway.nix ./hosts/modules/wm/sway/default.nix
./hosts/common/stylix.nix ./hosts/modules/stylix.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
({ config, ...}: { ({ config, ...}: {
home-manager.users.alisceon.imports = [ home-manager.users.alisceon.imports = [
@ -110,8 +110,8 @@
inherit pkgs; inherit pkgs;
specialArgs = sharedSpecialArgs // {}; specialArgs = sharedSpecialArgs // {};
modules = sharedModules ++ [ modules = sharedModules ++ [
./hosts/common/server.nix ./hosts/server.nix
./hosts/tesla-nixos/configuration.nix ./hosts/hosts/tesla-nixos.nix
nix-minecraft.nixosModules.minecraft-servers nix-minecraft.nixosModules.minecraft-servers
{ nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; } { nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; }
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
@ -131,8 +131,8 @@
inherit pkgs; inherit pkgs;
specialArgs = sharedSpecialArgs // {}; specialArgs = sharedSpecialArgs // {};
modules = sharedModules ++ [ modules = sharedModules ++ [
./hosts/common/server.nix ./hosts/server.nix
./hosts/nuc/configuration.nix ./hosts/hosts/nuc.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
({ config, ...}: { ({ config, ...}: {
home-manager.users.alisceon.imports = [ home-manager.users.alisceon.imports = [

6
hosts/base.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./default.nix
];
} # end file

6
hosts/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./common/default.nix
];
} # end file

6
hosts/hosts/electra.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../electra/configuration.nix
];
} # end file

6
hosts/hosts/nuc.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../nuc/configuration.nix
];
} # end file

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../tesla-nixos/configuration.nix
];
} # end file

6
hosts/hosts/tower.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../tower/configuration.nix
];
} # end file

6
hosts/modules/stylix.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../common/stylix.nix
];
} # end file

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../../../common/wm/gnome.nix
];
} # end file

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../../../common/wm/sway.nix
];
} # end file

6
hosts/server.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./common/server.nix
];
} # end file

6
hosts/workstation.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./common/workstation.nix
];
} # end file