This commit is contained in:
2026-01-22 12:07:08 -07:00
parent 62c0915491
commit 6ec023f040
6 changed files with 205 additions and 10 deletions

44
flake.nix Normal file
View File

@@ -0,0 +1,44 @@
{
description = "NixOS Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
stylix.url = "github:danth/stylix";
};
outputs = { self, nixpkgs, home-manager, hyprland, stylix, ... }@inputs:
let
settings = import ./settings.nix;
system = "x86_64-linux";
lib = nixpkgs.lib;
in
{
nixosConfigurations = {
"${settings.hostname}" = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users."${settings.username}" = {
home.stateVersion = "24.05";
};
home-manager.extraSpecialArgs = { inherit inputs; };
}
];
};
};
};
}