2024-02-29 22:20:26 -05:00
|
|
|
{
|
|
|
|
|
description = "Nixos config flake";
|
|
|
|
|
|
2024-04-03 00:43:16 -04:00
|
|
|
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 = {
|
2024-04-18 12:11:52 -04:00
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-18 13:49:10 -04:00
|
|
|
nixos-generators = {
|
|
|
|
|
url = "github:nix-community/nixos-generators";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-17 16:14:57 -04:00
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
2024-04-17 15:45:55 -04:00
|
|
|
|
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";
|
|
|
|
|
};
|
2024-03-01 14:18:58 -05:00
|
|
|
|
|
|
|
|
kb-gui = {
|
|
|
|
|
url = "github:zackartz/kb-gui";
|
|
|
|
|
};
|
2024-03-19 16:03:41 -04:00
|
|
|
|
2024-03-19 16:48:26 -04:00
|
|
|
waybar = {
|
|
|
|
|
url = "github:Alexays/Waybar";
|
|
|
|
|
};
|
2024-03-20 13:45:01 -04:00
|
|
|
|
|
|
|
|
neovim-nightly-overlay = {
|
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
|
};
|
2024-03-24 18:13:24 -04:00
|
|
|
|
|
|
|
|
rio-term = {
|
2024-03-24 20:45:43 -04:00
|
|
|
url = "github:zackartz/rio";
|
2024-03-24 18:13:24 -04:00
|
|
|
};
|
2024-04-16 14:38:07 -04:00
|
|
|
|
|
|
|
|
systems.url = "github:nix-systems/default";
|
2024-02-29 22:20:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
2024-04-16 14:38:07 -04:00
|
|
|
systems,
|
2024-02-29 22:20:26 -05:00
|
|
|
...
|
|
|
|
|
} @ inputs: let
|
2024-04-16 14:38:07 -04:00
|
|
|
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
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-04-16 14:38:07 -04:00
|
|
|
|
2024-04-17 20:52:27 -04:00
|
|
|
nixosConfigurations.live = nixpkgs.lib.nixosSystem {
|
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
|
modules = [
|
2024-04-18 13:49:10 -04:00
|
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
|
2024-04-17 23:42:35 -04:00
|
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
2024-04-17 20:52:27 -04:00
|
|
|
./hosts/live/configuration.nix
|
|
|
|
|
inputs.home-manager.nixosModules.default
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-16 14:38:07 -04:00
|
|
|
devShells = eachSystem (pkgs: {
|
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
|
buildInputs = [
|
|
|
|
|
pkgs.nil
|
|
|
|
|
pkgs.stylua
|
2024-04-16 15:15:46 -04:00
|
|
|
pkgs.lua-language-server
|
2024-04-16 14:44:08 -04:00
|
|
|
pkgs.luajitPackages.lua-lsp
|
2024-04-16 14:38:07 -04:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
});
|
2024-02-29 22:20:26 -05:00
|
|
|
};
|
|
|
|
|
}
|