nixos-configs/flake.nix

108 lines
2.6 KiB
Nix
Raw Normal View History

2023-09-29 23:46:34 -04:00
{
2023-12-03 04:50:17 -05:00
outputs = inputs @ {
self,
home-manager,
nixpkgs,
...
2023-12-03 04:50:17 -05:00
}: let
supportedSystems = ["x86_64-linux" "aarch64-linux"];
2023-12-03 02:24:11 -05:00
2023-12-03 04:50:17 -05:00
perSystem = attrs:
nixpkgs.lib.genAttrs supportedSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in
attrs system pkgs);
2023-12-03 02:24:11 -05:00
2023-12-03 04:50:17 -05:00
# Default system
system = "x86_64-linux";
specialArgs = inputs;
defaultModules = [
2023-12-03 04:50:17 -05:00
{home-manager.extraSpecialArgs = inputs;}
./common
];
in {
nixosConfigurations = {
wim = nixpkgs.lib.nixosSystem {
2023-12-03 04:50:17 -05:00
inherit system specialArgs;
modules =
defaultModules
++ [./devices/wim];
};
binto = nixpkgs.lib.nixosSystem {
2023-12-03 04:50:17 -05:00
inherit system specialArgs;
modules =
defaultModules
++ [./devices/binto];
};
};
2023-12-03 04:50:17 -05:00
formatter = perSystem (_: pkgs: pkgs.alejandra);
};
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-11-28 21:43:26 -05:00
};
2023-12-03 02:24:11 -05:00
# Oksys flakes
2023-11-28 21:43:26 -05:00
headscale = {
url = "github:juanfont/headscale";
inputs.nixpkgs.follows = "nixpkgs";
2023-11-29 22:15:31 -05:00
};
caddy-plugins = {
url = "github:matt1432/nixos-caddy-patched";
inputs.nixpkgs.follows = "nixpkgs";
2023-09-29 23:46:34 -04:00
};
2023-12-03 02:24:11 -05:00
pihole = {
url = "github:matt1432/pihole-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-29 23:46:34 -04:00
hyprland = {
2023-11-30 13:41:52 -05:00
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 = {
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-flake = {
url = "github:matt1432/coc-stylelintplus";
inputs.nixpkgs.follows = "nixpkgs";
};
tree-sitter-hypr-flake = {
2023-11-26 02:11:49 -05:00
url = "github:luckasRanarison/tree-sitter-hypr";
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-11-22 14:36:42 -05:00
nix-index-db = {
2023-11-22 14:36:42 -05:00
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-29 23:46:34 -04:00
};
}