60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
|
|
|
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
tg-ha-door = {
|
|
url = "github:peprolinbot/tg-ha-door";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
stylix = {
|
|
url = "github:nix-community/stylix/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
firefox-addons = {
|
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
clan-core,
|
|
nixpkgs,
|
|
...
|
|
} @ inputs: let
|
|
# Usage see: https://docs.clan.lol
|
|
clan = clan-core.lib.clan {
|
|
inherit self;
|
|
imports = [./clan.nix];
|
|
specialArgs = {inherit inputs;};
|
|
};
|
|
in {
|
|
inherit (clan.config) nixosConfigurations nixosModules clanInternals;
|
|
# Add the Clan cli tool to the dev shell.
|
|
# Use "nix develop" to enter the dev shell.
|
|
devShells =
|
|
nixpkgs.lib.genAttrs
|
|
[
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
]
|
|
(system: {
|
|
default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
|
|
packages = [clan-core.packages.${system}.clan-cli];
|
|
};
|
|
});
|
|
|
|
clan = clan.config;
|
|
};
|
|
}
|