forked from extern/nix-config
84af6079e4
Now flake.nix does *not* need to be edited when adjusting the configuration unless actual changes need to be done to the inputs.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
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";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs";
|
|
home-manager.follows = "home-manager";
|
|
};
|
|
};
|
|
|
|
hypr-contrib = {
|
|
url = "github:hyprwm/contrib";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
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 ./examples/laptop.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
|
|
./common.nix
|
|
];
|
|
};
|
|
};
|
|
}
|