My personal Nix flake
  • Nix 79.5%
  • HTML 10.2%
  • CSS 7.3%
  • Python 2.6%
  • Lua 0.2%
  • Other 0.2%
Find a file
cswimr fd365e7b87
All checks were successful
Actions / Build Flake Packages (push) Successful in 43s
niri: open windows maximized by default
2026-06-14 23:43:06 -04:00
.forgejo/workflows packages: update tacklebox, drop ziplinepy 2026-06-09 17:16:50 -04:00
.zed zed: tweak task configs 2026-06-07 13:34:47 -04:00
assets noctalia: fix improper wallpaper names, use monitor overrides 2026-06-05 12:34:01 -04:00
home-manager zed: add codesnap integration 2026-06-14 20:51:08 -04:00
hosts eclipse: add secret for tidalwave 2026-06-11 16:10:18 -04:00
lib fastfetch: customize config 2026-06-07 18:16:28 -04:00
nixos nixos: properly override nixPath 2026-06-13 13:18:08 -04:00
packages packages(tacklebox): update to 0.4.3 2026-06-14 20:15:21 -04:00
programs niri: open windows maximized by default 2026-06-14 23:43:06 -04:00
scripts git: simplify https secret auth 2026-05-23 01:01:32 -04:00
shared flake: update inputs 2026-06-05 03:19:47 -04:00
templates chore(deps): lock file maintenance (#213) 2026-05-22 15:38:57 -04:00
.envrc flake refactoring 2025-06-11 12:39:25 -05:00
.gitignore add uv2nix template 2026-05-17 15:33:54 -04:00
.luarc.json yazi: add typechecking for yazi plugins 2026-06-07 15:13:53 -04:00
.sops.yaml get supernova ready for migrating to nix services 2026-04-30 23:57:10 -04:00
flake.lock flake: update lockfile 2026-06-14 16:09:50 -04:00
flake.nix nixos: properly override nixPath 2026-06-13 13:18:08 -04:00
LICENSE add LICENSE file 2024-11-22 10:24:49 -05:00
pyproject.toml packages(cswimrflake): attempt to fix cswimrflake rebuilding every time the flake changes 2026-05-01 22:56:27 -04:00
README.md readme: remove notable applications section 2026-06-05 15:52:46 -04:00
renovate.json5 renovate: reformat 2026-05-02 11:26:55 -04:00
secrets.sops.yaml update zipline secret 2026-05-15 21:34:30 -04:00

flake

Hi there! This repository contains my NixOS flake. This is mainly meant as a utility for my own use, but if you'd like to base your configs on mine for some reason, feel free!

Templates

These devshell templates come with direnv and nix-direnv support. Here is an example NixOS configuration to enable these tools.

{
  programs.direnv = {
    enable = true;
    nix-direnv.enable = true;
    direnvrcExtra =
      # setting the DIRENV_DISABLE environment variable will prevent direnv from running.
      # useful for scripts, so you don't have to wait for a flake to evaluate.
      ''
        ''${DIRENV_DISABLE:+exit}
      '';
  };
}

Simple

This template has all the batteries included to get you started with numtide's devshell. Use the following command to add it to your project:

nix flake init -t "git+https://c.csw.im/cswimr/flake#simple"

uv

This template offers a Python environment, sporting uv as the package manager and some example packages. It also automatically handles installing your dependencies, whether they're from a pyproject.toml file or from an older requirements.txt file. Use the following command to add it to your project:

nix flake init -t "git+https://c.csw.im/cswimr/flake#uv"

Avoiding Python Compilation

This template uses nixpkgs-python to retrieve Python builds. You can use Cachix to add their binary cache to your user configuration. This will avoid lengthy Python compilation times. You can use the following command to add the binary cache to your user's nix.conf file:

nix-shell -p cachix --run "cachix use nixpkgs-python"

Here's an example NixOS configuration that configures this binary cache system-wide:

{
    nix = {
        substituters = [
            "https://nixpkgs-python.cachix.org"
        ];
        trusted-public-keys = [
            "nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU="
        ];
    };
};

uv2nix

This template offers a Python environment, similar to that of the uv template, but built by Nix using the uv2nix project. This is not meant to be dropped into pre-existing projects like the uv template is, and as such it comes with a pyproject.toml and uv.lock file included. Use the following command to add it to your project:

nix flake init -t "git+https://c.csw.im/cswimr/flake#uv2nix"

Notes

  • This configuration offers zsh as the default shell. You can change this in shell.nix. This also includes a starship prompt.
  • This repository manages secrets using sops-nix.