nix-config/flake.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-05-17 05:07:14 +02:00
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
2023-05-17 05:35:52 +02:00
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
2023-05-17 05:07:14 +02:00
};
2023-05-19 11:40:10 +02:00
hypr-contrib = {
url = "github:hyprwm/contrib";
2023-05-23 18:27:49 +02:00
inputs.nixpkgs.follows = "nixpkgs";
2023-05-19 11:40:10 +02:00
};
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, hyprland, stylix, hypr-contrib, nix-gaming, ... }@attrs: let
variables = import ./variables.nix;
in {
nixosConfigurations."${variables.hostname}" = nixpkgs.lib.nixosSystem {
system = variables.system;
specialArgs = attrs;
modules = [
home-manager.nixosModules.home-manager
hyprland.nixosModules.default
stylix.nixosModules.stylix
nix-gaming.nixosModules.pipewireLowLatency
2023-05-25 22:49:17 +02:00
./common.nix
./hardware-configuration.nix
];
};
};
}