First upload

This commit is contained in:
Varyngoth
2025-11-16 20:01:57 -04:00
parent 3811ef090c
commit af743db51f
5 changed files with 619 additions and 0 deletions

46
flakies/flake.nix Normal file
View File

@@ -0,0 +1,46 @@
{
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 ];
};
};
}