snowflake/flake.nix
2022-12-16 23:42:46 -05:00

49 lines
1,012 B
Nix

{
description = "notohh's flake";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Call hyprland
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, self, hyprland, ... }@inputs: {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; flake-self = self; };
modules = [ ./configuration.nix
hyprland.nixosModules.default
{ programs.hyprland.enable = true; }
];
};
};
homeConfigurations = {
"notoh@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [./home.nix];
};
};
};
}