46 lines
1.5 KiB
Nix
46 lines
1.5 KiB
Nix
{
|
|
description = "Edict of Septentrio"; #NixOS Config
|
|
|
|
inputs = {
|
|
# Core Nixpkgs
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
# Home Manager
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# Hardware optimizations (optional)
|
|
hardware.url = "github:NixOS/nixos-hardware";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, hardware, ... }@inputs: {
|
|
# ---- NixOS system ----
|
|
nixosConfigurations = {
|
|
pantheon = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; }; # pass flake inputs to configs
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
./nixos/hardware-configuration.nix
|
|
|
|
# Integrate Home Manager directly (optional but neat)
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = false;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.me = import ./home-manager/home.nix;
|
|
}
|
|
# Optional: hardware optimizations
|
|
hardware.nixosModules.common-cpu-intel
|
|
hardware.nixosModules.common-gpu-amd
|
|
];
|
|
};
|
|
};
|
|
# ---- Standalone Home Manager (for non-NixOS systems or debugging) ----
|
|
homeConfigurations."me@pantheon" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [ ./home-manager/home.nix ];
|
|
};
|
|
};
|
|
} |