83 lines
2 KiB
Nix
83 lines
2 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprgrass = {
|
|
url = "github:horriblename/hyprgrass";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
ags = {
|
|
url = "github:Aylur/ags";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixpkgs-wayland = {
|
|
url = "github:nix-community/nixpkgs-wayland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
neovim-nightly-overlay = {
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-melt = {
|
|
url = "github:nix-community/nix-melt";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nurl = {
|
|
url = "github:nix-community/nurl";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, nur, ... }@attrs: {
|
|
nixosConfigurations.wim = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = attrs;
|
|
modules = [
|
|
nur.nixosModules.nur
|
|
|
|
({ ... }: {
|
|
nix = {
|
|
# Edit nix.conf
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
keep-outputs = true;
|
|
keep-derivations = true;
|
|
auto-optimise-store = true;
|
|
warn-dirty = false;
|
|
};
|
|
|
|
# Minimize dowloads of indirect nixpkgs flakes
|
|
registry = {
|
|
nixpkgs.flake = self.inputs.nixpkgs;
|
|
nixpkgs.exact = false;
|
|
};
|
|
};
|
|
})
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.extraSpecialArgs = attrs;
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
}
|
|
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|