snowflake/flake.nix

55 lines
1.7 KiB
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
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Call hyprland
hyprland = {
url = "github:hyprwm/Hyprland";
# build with your own instance of nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# hardware.url = "github:nixos/nixos-hardware";
# Shameless plug: looking for a way to nixify your themes and make
# everything match nicely? Try nix-colors!
# nix-colors.url = "github:misterio77/nix-colors";
};
outputs = { nixpkgs, home-manager, self, hyprland, ... }@inputs: {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
2022-12-06 18:13:43 -05:00
specialArgs = { inherit inputs; flake-self = self; }; # Pass flake inputs to our config
2022-12-06 01:24:54 -05:00
# > Our main nixos configuration file <
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 18:13:43 -05:00
};
2022-12-06 01:24:54 -05:00
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"notoh@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main home-manager configuration file <
2022-12-06 18:13:43 -05:00
modules = [./home-manager/home.nix ];
2022-12-06 01:24:54 -05:00
};
};
};
}