Foundry

Misterio77MIT活跃维护

用 Nix 和 home-manager 管理个人 NixOS 配置、网站及其他项目的单体仓库,适合想参考 Nix 声明式系统配置写法的人。

Personal monorepo. NixOS+home-manager configs, website, and other projects.

暂无版本1,346star +2 / 7 天57fork同步于 2026-11-10 17:51 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/Misterio77/Foundry && cd Foundry
nix develop
硬件要求按 README 说明

README 未说明具体硬件要求,仅提到配置覆盖台式机、笔记本和服务器,Ubuntu 笔记本使用 system-manager 与独立 Home Manager

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

作者个人的 NixOS 与 home-manager 基础设施 monorepo,用声明式配置管理多台机器和自托管服务

用 Nix 和 home-manager 管理个人 NixOS 配置、网站及其他项目的单体仓库,适合想参考 Nix 声明式系统配置写法的人。

核心能力

  • 用 Nix flakes 管理多台机器的 NixOS 与 home-manager 配置
  • 通过 impermanence 实现可选持久化,并在每次启动时清空根子卷
  • 用 disko 声明式分区,使用单个加密 BTRFS 分区
  • 用 lanzaboote 启用 Secure Boot,用 sops-nix 管理部署密钥
  • 用 tailscale 和 headscale 组网,用 feature flags 灵活配置 Home Manager

容易踩的坑

需要启用 Nix flakes 实验特性才能使用;这是作者个人配置,直接套用前需按自己的机器和密钥改写;部署密钥依赖个人 PGP 密钥与各主机 SSH host key,无法直接复用

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    built with nix nixbot status

    Foundry

    My public infrastructure monorepo: the NixOS/home-manager configuration that runs all my machines, plus the source of the personal projects it deploys. Requires Nix flakes.

    Looking for something simpler to start out with flakes? Try my starter config repo.

    Repository layout

    hosts/nixos/    per-machine NixOS configurations (atlas, alcyone, ...)
    hosts/ubuntu/   system-manager configurations for Ubuntu machines
    hosts/common/   configuration shared between both
    home/           home-manager configuration (feature-flagged)
    modules/        reusable nixos/ and home-manager/ modules
    overlays/, pkgs/ package overlays and custom packages (including wallpapers)
    lib/            pure-Nix Material You color engine
    projects/       my public projects deployed from here (e.g. the m7.rs website)
    

    Highlights:

    • NixOS configurations: desktop, laptop, servers
    • Opt-in persistence through impermanence + blank snapshotting
    • Encrypted single BTRFS partition (with disko for declarative partitioning)
    • Secure Boot via lanzaboote
    • Fully declarative self-hosted stuff
    • Deployment secrets using sops-nix
    • Mesh networked hosts with tailscale and headscale
    • Flexible Home Manager configs through feature flags
    • Extensively configured hyprland environment
    • Declarative theming: wallpapers and a pure-Nix Material You color engine
    • Nixbot CI/CD polls my self-hosted Git, builds every host, and drives pull deployment through an independent binary cache

    About the installation

    My NixOS machines use a single btrfs (encrypted on all except headless systems) partition, with subvolumes for /nix, a /persist directory (which I opt in using impermanence), swap file, and a root subvolume (cleared on every boot).

    On NixOS, Home Manager is integrated via home-manager.users. My Ubuntu work laptop uses system-manager and standalone Home Manager instead.

    Secrets

    For deployment secrets (such as user passwords and server service secrets), I'm using the awesome sops-nix. All secrets are encrypted with my personal PGP key (stored on a YubiKey), as well as the relevant systems' SSH host keys.

    On my desktop and laptop, I use pass for managing passwords, which are encrypted using (you bet) my PGP key. This same key is also used for mail signing, as well as for SSH'ing around.

    Tooling and applications I use

    Most relevant user apps daily drivers:

    • hyprland + hypridle + hyprlock
    • waybar
    • helix
    • fish
    • alacritty
    • qutebrowser
    • aerc + mbsync
    • khal + khard + vdirsyncer
    • todomd
    • gpg + pass
    • tailscale
    • podman
    • zathura
    • wofi
    • bat + fd + rg
    • kdeconnect

    Some of the services I host:

    • nixbot
    • jellyfin
    • *arrs (including torrent and usenet)
    • prometheus
    • websites (such as https://m7.rs)
    • minecraft
    • headscale

    Nixy stuff:

    • sops-nix
    • impermanence
    • disko
    • lanzaboote
    • home-manager
    • and NixOS and nix itself, of course :)

    Let me know if you have any questions about them :)

    Unixpornish stuff

    fakebusy clean

    AI usage note

    Since June 2026, I've been trying out LLM assistance in my workflows. So far it feels pretty good; brainstorming helps me a lot with decision paralysis. I'm trying to keep my use bounded and disclosed. I think it's a useful tool, but it should be adopted with care.

    I will write a decent blog post about my opinions on AI at some point. The gist is:

    • These things are useful for bounded tasks with good docs and reviews, but suck at owning architecture or accountability
    • There's no going back now that open-weight models run on consumer hardware, we can't uninvent them
    • Boycotting AI does not help by itself; non-use is not a political strategy
    • We need clear LLM policy on projects rather than trying (and failing) to forbid it
    • Disclosure is very important, and trying to pass LLM output off as human-written is disrespectful
    • LLMs should never have been built by scraping and exploiting our art and work
    • If copyright doesn't protect our creations, it shouldn't protect their models; support open-weight models and distillation as harm reduction
    • We need regulation, decentralization, and redistribution of the value LLMs generate
    • Machines can't be horny, thus can't create art; LLMs are for utility, not art or craft. Pay an artist instead

    Some bibliography I'd recommend: