forked from extern/nix-config
flake.nix: Inputs before outputs
This commit is contained in:
parent
5694bbc450
commit
2b415d3bd4
28
flake.nix
28
flake.nix
@ -1,20 +1,7 @@
|
||||
{
|
||||
outputs = { self, nixpkgs, home-manager, stylix, nix-gaming, ... } @ attrs:
|
||||
let VARIABLES = import ./src/variables.nix; in {
|
||||
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
||||
system = VARIABLES.system;
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
stylix.nixosModules.stylix
|
||||
nix-gaming.nixosModules.pipewireLowLatency
|
||||
./src/main.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:donovanglover/nixpkgs/personal-unstable";
|
||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
@ -33,7 +20,18 @@
|
||||
url = "github:hyprwm/contrib";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||
outputs = { self, nixpkgs, home-manager, stylix, nix-gaming, ... } @ attrs: let VARIABLES = import ./src/variables.nix; in {
|
||||
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
||||
system = VARIABLES.system;
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
stylix.nixosModules.stylix
|
||||
nix-gaming.nixosModules.pipewireLowLatency
|
||||
./src/main.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user