refactor: implement component-based architecture for enhanced maintainability
- Reorganize directory structure into core/, features/, and themes/ - Colocate application Nix logic, configs, scripts, and theme overrides - Implement 'Inversion of Control' for theming: apps now pull theme-specific layouts - Update flake.nix and shared library paths to match the new structure - Document the new Feature-Centric architecture in README.md
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -27,8 +27,8 @@
|
||||
inherit inputs;
|
||||
|
||||
nixosModules = {
|
||||
system = import ./modules/system;
|
||||
home = import ./modules/home;
|
||||
system = import ./core;
|
||||
home = import ./features;
|
||||
};
|
||||
|
||||
nixosConfigurations = {
|
||||
@@ -53,7 +53,7 @@
|
||||
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix"
|
||||
./hosts/live-iso.nix
|
||||
./modules/system
|
||||
./core
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
system.stateVersion = "25.11";
|
||||
@@ -65,7 +65,7 @@
|
||||
home-manager.useGlobalPkgs = false;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nixos = {
|
||||
imports = [ ./modules/home ];
|
||||
imports = [ ./features ];
|
||||
home.username = "nixos";
|
||||
home.homeDirectory = "/home/nixos";
|
||||
home.stateVersion = "25.11";
|
||||
@@ -80,8 +80,8 @@
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
||||
./hosts/live-iso.nix
|
||||
./modules/system/default.nix
|
||||
./modules/system/vm-guest.nix
|
||||
./core/default.nix
|
||||
./core/system/vm-guest.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
system.stateVersion = "25.11";
|
||||
@@ -97,7 +97,7 @@
|
||||
home-manager.useGlobalPkgs = false;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nixos = {
|
||||
imports = [ ./modules/home/default.nix ];
|
||||
imports = [ ./features/default.nix ];
|
||||
home.username = "nixos";
|
||||
home.homeDirectory = "/home/nixos";
|
||||
home.stateVersion = "25.11";
|
||||
@@ -117,8 +117,8 @@
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
||||
./modules/system/default.nix
|
||||
./modules/system/vm-guest.nix
|
||||
./core/default.nix
|
||||
./core/system/vm-guest.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
system.stateVersion = "25.11";
|
||||
@@ -141,7 +141,7 @@
|
||||
home-manager.useGlobalPkgs = false;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nomarchy = {
|
||||
imports = [ ./modules/home/default.nix ];
|
||||
imports = [ ./features/default.nix ];
|
||||
home.username = "nomarchy";
|
||||
home.homeDirectory = "/home/nomarchy";
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
Reference in New Issue
Block a user