Files
spacestation/flake.nix

85 lines
1.9 KiB
Nix
Raw Permalink Normal View History

{
inputs = {
2026-01-01 19:28:17 -03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
2024-09-18 09:57:17 -03:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
2026-01-01 19:28:17 -03:00
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-04-01 10:06:41 -03:00
capytalcc = {
url = "git+https://code.capytal.cc/capytal/capytal.cc";
2025-09-13 11:29:00 -03:00
inputs.nixpkgs.follows = "nixpkgs";
2025-04-01 10:06:41 -03:00
};
2024-12-17 21:04:04 -03:00
keikoswork = {
url = "git+https://code.capytal.cc/guz013/keikos.work";
2024-12-17 21:04:04 -03:00
# inputs.nixpkgs.follows = "nixpkgs";
2024-09-18 09:58:09 -03:00
};
loreddev-gitea = {
url = "git+https://code.capytal.cc/loreddev/gitea";
};
dot013-nix = {
2025-09-13 11:29:00 -03:00
url = "github:dot013/nix";
};
2026-01-01 19:28:17 -03:00
# tangled = {
# url = "git+https://tangled.org/tangled.org/core";
# };
};
2024-06-16 20:08:29 -03:00
outputs = {
2025-09-13 11:29:00 -03:00
self,
2024-06-16 20:08:29 -03:00
nixpkgs,
home-manager,
2024-09-18 09:57:17 -03:00
nixpkgs-unstable,
2024-06-16 20:08:29 -03:00
...
2026-01-01 19:28:17 -03:00
} @ inputs: let
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 {
inherit pkgs;
inherit (pkgs) lib;
}
);
in {
2025-09-13 11:29:00 -03:00
nixosConfigurations = {
spacestation = nixpkgs.lib.nixosSystem rec {
2024-09-18 09:57:17 -03:00
system = "x86_64-linux";
2024-06-16 20:08:29 -03:00
specialArgs = {
2025-09-13 11:29:00 -03:00
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
config.allowUnfreePredicate = _: true;
};
inherit inputs self;
};
2024-06-16 20:08:29 -03:00
modules = [
inputs.home-manager.nixosModules.default
./configuration.nix
];
};
};
2025-09-13 11:29:00 -03:00
nixosModules = {
medama = ./modules/medama.nix;
gitea = ./modules/gitea.nix;
2025-09-13 11:29:00 -03:00
};
2024-06-16 20:08:29 -03:00
};
}