snowflake/flake.nix

49 lines
1,012 B
Nix
Raw Normal View History

2022-12-06 01:24:54 -05:00
{
2022-12-06 18:13:43 -05:00
description = "notohh's flake";
2022-12-06 01:24:54 -05:00
inputs = {
# Nixpkgs
2022-12-14 19:26:48 -05:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-12-06 01:24:54 -05:00
# Call hyprland
hyprland = {
url = "github:hyprwm/Hyprland";
2022-12-16 03:45:51 -05:00
2022-12-06 01:24:54 -05:00
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
2022-12-14 19:26:48 -05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
2022-12-06 01:24:54 -05:00
2022-12-14 19:26:48 -05:00
};
2022-12-06 01:24:54 -05:00
};
outputs = { nixpkgs, home-manager, self, hyprland, ... }@inputs: {
2022-12-16 03:45:51 -05:00
2022-12-06 01:24:54 -05:00
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
2022-12-16 03:45:51 -05:00
specialArgs = { inherit inputs; flake-self = self; };
2022-12-06 18:13:43 -05:00
modules = [ ./configuration.nix
2022-12-06 01:24:54 -05:00
hyprland.nixosModules.default
{ programs.hyprland.enable = true; }
2022-12-06 18:13:43 -05:00
];
2022-12-06 01:24:54 -05:00
};
2022-12-06 21:36:50 -05:00
};
2022-12-06 01:24:54 -05:00
homeConfigurations = {
"notoh@nixos" = home-manager.lib.homeManagerConfiguration {
2022-12-16 03:45:51 -05:00
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
2022-12-16 23:42:46 -05:00
modules = [./home.nix];
2022-12-06 01:24:54 -05:00
};
};
};
2022-12-06 21:36:50 -05:00
2022-12-06 01:24:54 -05:00
}