2023-11-05 04:53:31 -03:00
|
|
|
{
|
|
|
|
description = "NixOS System Flake";
|
|
|
|
|
|
|
|
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";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-02-16 19:39:03 -03:00
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
|
|
|
|
2024-03-25 22:29:41 -03:00
|
|
|
outputs = { self, home-manager, hyprland, nixpkgs, ... }@inputs:
|
|
|
|
let system = "x86_64-linux";
|
|
|
|
in {
|
|
|
|
nixosConfigurations."nixos" = let
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
|
|
|
./nixos.nix
|
|
|
|
|
|
|
|
hyprland.nixosModules.default
|
|
|
|
{ programs.hyprland.enable = true; }
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
|
|
|
home-manager.extraSpecialArgs = inputs;
|
|
|
|
home-manager.users.wizardlink = import ./home-manager.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
in nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
|
|
|
|
|
|
|
formatter."${system}" = nixpkgs.legacyPackages.${system}.nixfmt;
|
2024-01-16 11:33:01 -03:00
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|