Reorganized flake.nix

This commit is contained in:
panotaka
2023-12-22 22:28:10 -04:00
parent e1a46e38fa
commit 31c09af227
2 changed files with 19 additions and 6 deletions

View File

@@ -4,5 +4,5 @@
deadnix.enable = true; deadnix.enable = true;
}; };
packages = with pkgs; [nixpkgs-fmt nixfmt]; packages = with pkgs; [nixpkgs-fmt nixfmt alejandra deadnix];
} }

View File

@@ -29,18 +29,24 @@
in { in {
nixosConfigurations = { nixosConfigurations = {
Equinox = nixpkgs.lib.nixosSystem { Equinox = nixpkgs.lib.nixosSystem {
# System
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
inherit system; inherit system;
}; };
# Modules
modules = [ modules = [
# Theme # Theme Modules
stylix.nixosModules.stylix stylix.nixosModules.stylix
./themes/targets/all.nix ./themes/targets/all.nix
./themes/sandstone-forest ./themes/sandstone-forest
# Host Module
./hosts/Equinox ./hosts/Equinox
# Home Manager Modules
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@@ -49,7 +55,6 @@
inherit inputs; inherit inputs;
inherit system; inherit system;
}; };
home-manager.users.panotaka = { home-manager.users.panotaka = {
imports = [./home ./home/shell ./home/desktop]; imports = [./home ./home/shell ./home/desktop];
}; };
@@ -58,13 +63,24 @@
}; };
Blackbird = nixpkgs.lib.nixosSystem { Blackbird = nixpkgs.lib.nixosSystem {
# System
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
inherit system; inherit system;
}; };
# Modules
modules = [ modules = [
# Theme Modules
stylix.nixosModules.stylix
./themes/targets/all.nix
./themes/spaceduck
# Host Module
./hosts/Blackbird ./hosts/Blackbird
# Home Manager Modules
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@@ -78,9 +94,6 @@
imports = [./home ./home/shell ./home/desktop]; imports = [./home ./home/shell ./home/desktop];
}; };
} }
stylix.nixosModules.stylix
./themes/targets/all.nix
./themes/spaceduck
]; ];
}; };
}; };