infra/flake.nix
2025-12-01 15:41:09 +07:00

130 lines
6.2 KiB
Nix

# ██╗░░██╗██╗░██████╗░██████╗██████╗░░█████╗░██╗░░██╗░█████╗░
# ██║░██╔╝██║██╔════╝██╔════╝██╔══██╗██╔══██╗██║░██╔╝██╔══██╗
# █████═╝░██║╚█████╗░╚█████╗░██████╦╝███████║█████═╝░███████║
# ██╔═██╗░██║░╚═══██╗░╚═══██╗██╔══██╗██╔══██║██╔═██╗░██╔══██║
# ██║░╚██╗██║██████╔╝██████╔╝██████╦╝██║░░██║██║░╚██╗██║░░██║
# ╚═╝░░╚═╝╚═╝╚═════╝░╚═════╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝
# Keep It Siimple Stoopid BAKA!
#
# "keep it low cognitive load, high clarity, and cute"
# - Lao Tzu, The Art of Config (maybe)
#
# !!! DO-NOT-EDIT THIS FILE !!!
# Generated by flake-file in each modules
# This text exist in /module/system/flake-description.nix
# `nix run ./#write-flake --impure` to apply edit
#
# so, here cirno fumo instead
#
# ⢀⣒⠒⠆⠤⣀⡀
# ⢠⡛⠛⠻⣷⣶⣦⣬⣕⡒⠤⢀⣀
# ⡿⢿⣿⣿⣿⣿⣿⡿⠿⠿⣿⣳⠖⢋⣩⣭⣿⣶⡤⠶⠶⢶⣒⣲⢶⣉⣐⣒⣒⣒⢤⡀
# ⣿ ⠉⣩⣭⣽⣶⣾⣿⢿⡏⢁⣴⠿⠛⠉⠁ ⠉⠙⠲⢭⣯⣟⡿⣷⣘⠢⡀
# ⠹⣷⣿⣿⣿⣿⣿⢟⣵⠋⢠⡾⠁ ⠈⠻⣿⣿⣾⣦⣾⣢
# ⠹⣿⣿⣿⡿⣳⣿⠃ ⣼⠃ ⠈⢻⣿⣿⣿⠟
# ⠹⣿⣿⣵⣿⠃ ⣿ ⠹⣷⡄
# ⠈⠛⣯⡇⠛⣽⣦⣿ ⢀⠔⠙⣄ ⣠⠳⡀ ⢿⡵⡀
# ⣸⣿⣿⣿⠿⢿⠟ ⢀⡏ ⠘⡄ ⢠⠃ ⠹⡄ ⠸⣿⣷⡀
# ⢰⣿⣿⣿⣿⡀ ⢸⠒⠤⢤⣀⣘⣆ ⡏⢀⣀⡠⢷ ⣿⡿⠃
# ⠸⣿⣿⠟⢹⣥ ⣸⣀⣀⣤⣀⣀⠈⠳⢤⡀⡇⣀⣠⣄⣸⡆ ⡏
# ⠁⠁ ⢸⢟⡄ ⣿⣾⣿⣿⣿⣿⠁ ⠈⠙⠙⣯⣿⣿⣿⡇ ⢠⠃
# ⠇⢨⢞⢆ ⡿⣿⣿⣿⣿⡏ ⣿⣿⣿⡿⡇ ⣠⢟⡄
# ⡼ ⢈⡏⢎⠳⣄ ⡇⠙⠛⠟⠛ ⠘⠻⠛⢱⢃⡜⡝⠈⠚⡄
# ⠘⣅⠁⢸⣋⠈⢣⡈⢷⠇ ⣄ ⢀⡄ ⣠⣼⢯⣴⠇⣀⡀⢸
# ⠈⠳⡌⠛⣶⣆⣷⣿⣦⣄⣀ ⠈⠉⠉⢉⣀⣤⡞⢛⣄⡀⢀⡨⢗⡦⠎
# ⠈⠑⠪⣿⠁ ⠐⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⠉⠁⢸ ⠄⠙⡆
# ⣀⠤⠚⡉⢳⡄⠡⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⠁⣠⣧⣤⣄⣀⡀⡰⠁
# ⢀⠔⠉ ⢀⣧⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣅⡀
# ⢸⠆ ⣀⣼⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠟⠋⠁⣠⠖⠒⠒⠛⢿⣆
# ⠑⠤⠴⠞⢋⣵⣿⢿⣿⣿⣿⣿⣿⣿⠗⣀ ⢰⠇ ⢀⡼⣶⣤
# ⡠⠟⢛⣿ ⠙⠲⠽⠛⠛⠵⠞⠉⠙⠳⢦⣀⣀⡞ ⡠⠋⠐⠣⠮⡁
# ⢠⣎⡀⢀⣾⠇⢀⣠⡶⢶⠞⠋⠉⠉⠒⢄⡀⠉⠈⠉ ⣠⣾ ⢸⡀
# ⠘⣦⡀⠘⢁⡴⢟⣯⣞⢉ ⢹⠶⠤⠤⡤⢖⣿⡋⢇ ⢸
# ⠙⠵⠗⠺⠟⠖⢈⡣⡄ ⢀⣼⡤⣬⣽⠾⠋⠉⠑⠺⠧⣀⣤⣤⡠⠟⠃
# ⠈⠛⠷⠶⠦⠶⠞⠉
#
#-----------------------------------------------------------------
{
description = "EXPERIMENTING Infrastructure";
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } (
inputs.import-tree [
./module
./puter
]
);
nixConfig = {
abort-on-warn = true;
extra-experimental-features = [
"flakes"
"nix-command"
"pipe-operators"
];
extra-substituters = [ "https://numtide.cachix.org" ];
extra-trusted-public-keys = [ "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=" ];
};
inputs = {
affinity-nix.url = "github:mrshmllow/affinity-nix";
antigravity-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:jacopone/antigravity-nix";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
claude-code.url = "github:sadjow/claude-code-nix";
den.url = "path:./flake/den";
deploy-rs = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:serokell/deploy-rs";
};
disko = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/disko";
};
flake-aspects.url = "github:vic/flake-aspects";
flake-file.url = "github:vic/flake-file";
flake-parts = {
inputs.nixpkgs-lib.follows = "nixpkgs";
url = "github:hercules-ci/flake-parts";
};
git-hooks = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:cachix/git-hooks.nix";
};
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager";
};
import-tree.url = "github:vic/import-tree";
lazy-apps = {
inputs.nixpkgs.follows = "nixpkgs";
url = "sourcehut:~rycee/lazy-apps";
};
nix-alien.url = "github:thiagokokada/nix-alien";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
nix-gaming.url = "github:fufexan/nix-gaming";
nix-systems.url = "github:nix-systems/default";
nix-webapps.url = "github:TLATER/nix-webapps";
nixkpgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
nixos-generators = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/nixos-generators";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-latest.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nur.url = "github:nix-community/NUR";
opencode-flake.url = "github:aodhanhayter/opencode-flake";
pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
sops-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:Mic92/sops-nix";
};
};
}