nixos-configs/flake.nix

73 lines
1.8 KiB
Nix
Raw Normal View History

2023-09-29 23:46:34 -04:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
2023-10-08 14:42:43 -04:00
nur.url = "github:nix-community/NUR";
nix-gaming.url = "github:fufexan/nix-gaming";
2023-09-29 23:46:34 -04:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-20 10:20:12 -04:00
hyprland.url = "github:hyprwm/Hyprland";
2023-09-29 23:46:34 -04:00
hyprgrass = {
url = "github:horriblename/hyprgrass";
inputs.hyprland.follows = "hyprland";
};
ags = {
2023-10-12 09:07:58 -04:00
url = "github:Aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-flake = {
2023-10-26 00:35:24 -04:00
url = "github:nix-community/neovim-nightly-overlay";
2023-11-19 15:09:57 -05:00
# to make sure plugins and nvim have same binaries
2023-10-26 00:35:24 -04:00
inputs.nixpkgs.follows = "nixpkgs";
};
coc-stylelintplus = {
url = "github:matt1432/coc-stylelintplus";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-19 15:09:57 -05:00
nh.url = "github:viperML/nh";
nix-melt.url = "github:nix-community/nix-melt";
nurl.url = "github:nix-community/nurl";
2023-09-29 23:46:34 -04:00
};
outputs = { self, nixpkgs, home-manager, nur, nix-gaming, ... }@attrs: let
defaultModules = [
nur.nixosModules.nur
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = attrs;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
./common/default.nix
];
in {
2023-10-15 23:12:19 -04:00
nixosConfigurations = {
wim = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
2023-10-20 10:20:12 -04:00
modules = defaultModules ++ [
./devices/wim
2023-10-20 10:20:12 -04:00
];
2023-10-15 23:12:19 -04:00
};
binto = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
2023-10-20 10:20:12 -04:00
modules = defaultModules ++ [
./devices/binto
2023-10-20 10:20:12 -04:00
];
2023-10-15 23:12:19 -04:00
};
2023-09-29 23:46:34 -04:00
};
};
}