config/flake.nix

94 lines
1.9 KiB
Nix
Raw Normal View History

2024-02-29 22:20:26 -05:00
{
description = "Nixos config flake";
nixConfig = {
extra-substituters = [
"https://zackartz.cachix.org"
];
extra-trusted-public-keys = [
"zackartz.cachix.org-1:nrEfVZF8MVX0Lnt73KwYzH2kwDzFuAoR5VPjuUd4R30="
];
};
2024-02-29 22:20:26 -05:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
2024-02-29 22:20:26 -05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
2024-02-29 22:20:26 -05:00
hyprland = {
url = "github:hyprwm/Hyprland/";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprcontrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
kb-gui = {
url = "github:zackartz/kb-gui";
};
waybar = {
url = "github:Alexays/Waybar";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
};
rio-term = {
url = "github:zackartz/rio";
};
systems.url = "github:nix-systems/default";
2024-02-29 22:20:26 -05:00
};
outputs = {
self,
nixpkgs,
systems,
2024-02-29 22:20:26 -05:00
...
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlays = [
inputs.neovim-nightly-overlay.overlay
];
eachSystem = f:
nixpkgs.lib.genAttrs (import systems) (
system:
f nixpkgs.legacyPackages.${system}
);
2024-02-29 22:20:26 -05:00
in {
nixosConfigurations.earth = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/earth/configuration.nix
inputs.home-manager.nixosModules.default
];
};
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = [
pkgs.nil
pkgs.stylua
pkgs.lua-language-server
pkgs.luajitPackages.lua-lsp
];
};
});
2024-02-29 22:20:26 -05:00
};
}