2024-01-03 22:53:34 -03:00
|
|
|
{
|
|
|
|
|
inputs = {
|
2025-02-05 10:22:46 -03:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2024-08-09 21:53:29 -03:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-01-03 22:53:34 -03:00
|
|
|
|
|
|
|
|
home-manager = {
|
2025-02-05 10:22:46 -03:00
|
|
|
url = "github:nix-community/home-manager/release-24.11";
|
2024-01-03 22:53:34 -03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-05 10:22:46 -03:00
|
|
|
stylix = {
|
|
|
|
|
url = "github:danth/stylix/release-24.11";
|
2024-01-12 17:45:22 -03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2025-02-05 10:22:46 -03:00
|
|
|
inputs.home-manager.follows = "home-manager";
|
2024-01-12 17:45:22 -03:00
|
|
|
};
|
|
|
|
|
|
2025-02-05 10:22:46 -03:00
|
|
|
sops-nix = {
|
|
|
|
|
url = "github:Mic92/sops-nix";
|
2024-01-13 18:58:54 -03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-07 14:25:59 -03:00
|
|
|
xremap = {
|
|
|
|
|
url = "github:xremap/nix-flake";
|
2024-08-09 21:53:29 -03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2024-05-26 18:42:38 -03:00
|
|
|
|
2025-02-11 11:30:11 -03:00
|
|
|
nix-flatpak = {
|
|
|
|
|
url = "github:gmodena/nix-flatpak/?ref=latest";
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-09 00:16:27 -03:00
|
|
|
nixpak = {
|
|
|
|
|
url = "github:nixpak/nixpak";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-05 10:22:46 -03:00
|
|
|
# Dependecy of the Neovim configuration at ./modules/home-manager/devenv.nix
|
2025-02-05 13:12:01 -03:00
|
|
|
dot013-nvim = {
|
|
|
|
|
url = "github:dot013/nvim";
|
|
|
|
|
# url = "git+file:///home/guz/.projects/dot013-nvim";
|
2024-08-09 21:53:29 -03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2024-01-03 22:53:34 -03:00
|
|
|
};
|
|
|
|
|
|
2024-04-08 16:37:29 -03:00
|
|
|
outputs = {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
|
|
|
|
home-manager,
|
2024-08-09 21:53:29 -03:00
|
|
|
nixpkgs-unstable,
|
2024-04-08 16:37:29 -03:00
|
|
|
...
|
|
|
|
|
} @ inputs: let
|
2025-02-05 10:22:46 -03:00
|
|
|
systems = [
|
|
|
|
|
"x86_64-linux"
|
|
|
|
|
"aarch64-linux"
|
|
|
|
|
"x86_64-darwin"
|
|
|
|
|
"aarch64-darwin"
|
|
|
|
|
];
|
|
|
|
|
forAllSystems = f:
|
|
|
|
|
nixpkgs.lib.genAttrs systems (system: let
|
|
|
|
|
pkgs = import nixpkgs {inherit system;};
|
|
|
|
|
in
|
|
|
|
|
f pkgs);
|
|
|
|
|
|
2025-02-06 13:05:13 -03:00
|
|
|
# Home manager NixOS module
|
|
|
|
|
homeNixOSModules = [
|
2025-02-05 10:22:46 -03:00
|
|
|
home-manager.nixosModules.home-manager
|
2025-02-06 16:09:15 -03:00
|
|
|
./colors.nix
|
2024-04-08 16:37:29 -03:00
|
|
|
];
|
2025-02-05 10:22:46 -03:00
|
|
|
in {
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
|
"battleship" = nixpkgs.lib.nixosSystem {
|
2025-02-11 11:30:11 -03:00
|
|
|
system = "x86_64-linux";
|
2025-02-05 10:22:46 -03:00
|
|
|
specialArgs = {inherit inputs self;};
|
|
|
|
|
modules =
|
2025-02-06 13:05:13 -03:00
|
|
|
homeNixOSModules
|
2025-02-05 10:22:46 -03:00
|
|
|
++ [
|
|
|
|
|
./hosts/battleship/configuration.nix
|
2025-02-06 16:09:15 -03:00
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
|
./home/guz/configuration.nix
|
2025-02-05 10:22:46 -03:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
"fighter" = nixpkgs.lib.nixosSystem {
|
2025-02-11 11:30:11 -03:00
|
|
|
system = "x86_64-linux";
|
2025-02-05 10:22:46 -03:00
|
|
|
specialArgs = {inherit inputs self;};
|
|
|
|
|
modules =
|
2025-02-06 13:05:13 -03:00
|
|
|
homeNixOSModules
|
2025-02-05 10:22:46 -03:00
|
|
|
++ [
|
|
|
|
|
./hosts/fighter/configuration.nix
|
2025-02-06 16:09:15 -03:00
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
|
./home/guz-lite/configuration.nix
|
2025-02-05 10:22:46 -03:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-05 10:25:00 -03:00
|
|
|
homeConfigurations = {
|
2025-02-06 16:09:15 -03:00
|
|
|
"guz-lite" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
|
extraSpecialArgs = {inherit inputs self;};
|
|
|
|
|
modules = [
|
|
|
|
|
inputs.stylix.homeManagerModules.stylix
|
|
|
|
|
./colors.nix
|
|
|
|
|
inputs.xremap.homeManagerModules.default
|
|
|
|
|
./home/guz-lite
|
|
|
|
|
];
|
|
|
|
|
};
|
2025-02-05 10:25:00 -03:00
|
|
|
"guz" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
|
extraSpecialArgs = {inherit inputs self;};
|
|
|
|
|
modules = [
|
|
|
|
|
inputs.stylix.homeManagerModules.stylix
|
2025-02-06 13:05:13 -03:00
|
|
|
./colors.nix
|
2025-02-06 16:09:15 -03:00
|
|
|
inputs.xremap.homeManagerModules.default
|
|
|
|
|
./home/guz
|
2025-02-05 10:25:00 -03:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-05 10:27:12 -03:00
|
|
|
homeManagerModules = {
|
2025-02-12 11:23:24 -03:00
|
|
|
devkit = ./modules/home-manager/devkit.nix;
|
2025-02-10 18:28:24 -03:00
|
|
|
eww = ./modules/home-manager/eww.nix;
|
2025-02-05 10:27:12 -03:00
|
|
|
};
|
2025-02-12 11:21:55 -03:00
|
|
|
|
|
|
|
|
packages = forAllSystems (pkgs: {
|
2025-03-01 19:33:22 -03:00
|
|
|
devkit = import ./packages/devkit {inherit pkgs inputs;};
|
2025-02-12 11:21:55 -03:00
|
|
|
});
|
2024-04-08 16:37:29 -03:00
|
|
|
};
|
2024-01-03 22:53:34 -03:00
|
|
|
}
|