43 lines
943 B
Nix
43 lines
943 B
Nix
{
|
|
description = "My Nix Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland = {
|
|
# Official Hyprland flake
|
|
url = "github:vaxerski/Hyprland"; # Add "hyprland.nixosModules.default" to the host modules
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, home-manager, hyprland, ... }:
|
|
|
|
let
|
|
system = "x86_64-linux";
|
|
user = "glen";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in
|
|
{
|
|
nixosConfigurations = (
|
|
import ./hosts {
|
|
inherit (nixpkgs) lib;
|
|
inherit inputs user system home-manager hyprland;
|
|
}
|
|
);
|
|
};
|
|
|
|
}
|