My personal Nix flake
  • Nix 80%
  • HTML 9.5%
  • CSS 6.8%
  • Nushell 3.5%
  • Lua 0.2%
Find a file
cswimr f0358a9bb0
All checks were successful
Actions / Build Flake Packages & Push to Cache (push) Successful in 3m44s
nixcord: init
2026-07-27 16:35:20 -04:00
.forgejo/workflows ci: explicitly set --daemon in nix installation options 2026-07-12 10:18:16 -04:00
.zed shell: switch to fish 2026-06-18 12:23:19 -04:00
assets calagopus(wings): add swagger api documentation 2026-07-17 04:04:11 -04:00
config eclipse: use LTS kernel 2026-07-25 13:08:03 -04:00
hosts nixcord: init 2026-07-27 16:35:20 -04:00
lib Noctalia v4 -> v5 (#238) 2026-06-28 22:17:20 -04:00
modules nixcord: init 2026-07-27 16:35:20 -04:00
packages packages(psst): add minimal wrapper packages around each psst binary 2026-07-25 16:23:00 -04:00
scripts packages: remove bitwarden-native-messaging-host 2026-07-25 13:35:40 -04:00
templates chore(deps): lock file maintenance (#239) 2026-06-29 12:14:27 -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 nixcord: init 2026-07-27 16:35:20 -04:00
flake.nix nixcord: init 2026-07-27 16:35:20 -04:00
LICENSE add LICENSE file 2024-11-22 10:24:49 -05:00
nufmt.nuon style: format 2026-06-21 00:52:26 -04: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: tweaks 2026-06-20 15:04:50 -04:00
renovate.json5 renovate: update managerFilePatterns for new module layout 2026-07-11 10:59:19 -04:00
secrets.sops.yaml sops: add calagopus api key 2026-07-19 13:14:05 -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 nushell as the default shell. This also includes a starship prompt.
  • This repository manages secrets using sops-nix.