85 lines
1.9 KiB
Nix
85 lines
1.9 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
capytalcc = {
|
|
url = "git+https://code.capytal.cc/capytal/capytal.cc";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
keikoswork = {
|
|
url = "git+https://code.capytal.cc/guz013/keikos.work";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
loreddev-gitea = {
|
|
url = "git+https://code.capytal.cc/loreddev/gitea";
|
|
};
|
|
|
|
dot013-nix = {
|
|
url = "github:dot013/nix";
|
|
};
|
|
|
|
# tangled = {
|
|
# url = "git+https://tangled.org/tangled.org/core";
|
|
# };
|
|
};
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
nixpkgs-unstable,
|
|
...
|
|
} @ 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 {
|
|
nixosConfigurations = {
|
|
spacestation = nixpkgs.lib.nixosSystem rec {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
config.allowUnfreePredicate = _: true;
|
|
};
|
|
inherit inputs self;
|
|
};
|
|
modules = [
|
|
inputs.home-manager.nixosModules.default
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
nixosModules = {
|
|
medama = ./modules/medama.nix;
|
|
gitea = ./modules/gitea.nix;
|
|
};
|
|
};
|
|
}
|