nixos-configs/nixos/flake.nix

79 lines
1.9 KiB
Nix
Raw Normal View History

2023-09-29 23:46:34 -04:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-10-08 14:42:43 -04:00
nur.url = "github:nix-community/NUR";
2023-09-29 23:46:34 -04:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-29 23:46:34 -04:00
hyprgrass = {
url = "github:horriblename/hyprgrass";
inputs.hyprland.follows = "hyprland";
};
ags = {
url = "github:Aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-11 21:34:17 -04:00
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";
};
2023-10-11 18:03:15 -04:00
nix-melt = {
url = "github:nix-community/nix-melt";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-29 23:46:34 -04:00
};
2023-10-08 14:42:43 -04:00
outputs = { self, nixpkgs, home-manager, nur, ... }@attrs: {
2023-09-29 23:46:34 -04:00
nixosConfigurations.wim = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
2023-10-08 14:42:43 -04:00
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;
};
};
})
2023-10-08 14:42:43 -04:00
2023-09-29 23:46:34 -04:00
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = attrs;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-09-29 23:46:34 -04:00
}
2023-10-11 21:34:17 -04:00
./configuration.nix
2023-09-29 23:46:34 -04:00
];
};
};
}