Commit Graph

148 Commits

Author SHA1 Message Date
Michael Hoang
dc66321a72 test-fixtures: move to devFlake 2025-10-05 23:26:24 +02:00
Michael Hoang
01baa46b36 flake: make privateInputs actually the inputs 2025-10-05 22:09:44 +02:00
Johannes Kirschbauer
50c8df7e40 flake: keep imports sorted 2025-09-16 16:02:10 +02:00
Qubasa
6a96ce8679 docs: Move age plugins to vars/sops backend group. Improve age plugin documentation 2025-09-12 14:13:49 +02:00
Jörg Thalheim
8fe7cb1b3d virtiofsd: fix nix chroot store support 2025-08-19 14:47:12 +02:00
Johannes Kirschbauer
308a10d6e6 clanModules: remove unused code 2025-08-16 11:48:13 +02:00
Jörg Thalheim
9e9ab22c37 skip private inputs again 2025-08-11 17:16:34 +02:00
Jörg Thalheim
f248cc91ad switch to flake-compat for private flake 2025-08-08 15:06:57 +02:00
Michael Hoang
a71a5880c1 treewide: reformat 2025-08-08 15:28:37 +10:00
Jörg Thalheim
e99981cfaf flake: fix privateInputs loading in nix store contexts
When clan-core is fetched via fetchgit (e.g. in tests), the devFlake/private
directory exists but cannot be loaded as a flake. This causes errors when
building test machines.

Fix by:
1. Adding a .skip-private-inputs marker file in clan-core-for-checks to
   explicitly disable private inputs in test contexts
2. Checking for this marker file before attempting to load private inputs
3. Keeping the original tryEval approach as a fallback for compatibility

This ensures tests can run without errors while preserving the ability to
load private inputs in development environments.
2025-07-30 20:15:44 +02:00
Michael Hoang
4bc57980ff flake: remove unnecessary follows for data-mesher 2025-07-17 17:30:36 +10:00
Jörg Thalheim
4c13dd38f3 devFlake: don't load if sources have been filtered out 2025-07-07 18:38:01 +02:00
Jörg Thalheim
8d3bd6b690 add dev flake pattern
This allows us to have dev dependencies which are not propagated to the user.
2025-07-07 15:59:09 +00:00
Jörg Thalheim
14226d222e add regression test for macOS evaluation 2025-06-29 23:58:19 +02:00
Johannes Kirschbauer
5f4775ef10 flake-parts: enable modules feature 2025-06-26 17:08:47 +02:00
DavHau
2a7827eb03 nuschtos: fix flake dependencies crashing tests 2025-06-25 13:48:50 +07:00
DavHau
12682b608c docs: add clan options search page
This provides a simpler and more intuitive search over a flat list of possible options.

Styling still to be improved
2025-06-25 12:55:25 +07:00
Jörg Thalheim
7515d54d9e introduce flake parts module for clan nixos tests 2025-06-17 18:38:52 +02:00
Jörg Thalheim
51a57ba962 don't depend on git for flake inputs
This makes migration of an existing machine without git installed
easier:

fixes:
https://git.clan.lol/clan/clan-core/issues/3465#issuecomment-28189
2025-05-04 07:30:49 +02:00
lassulus
d93e58218d Refactor select with new maybe selector
This is a great refactor of the select functionality in the flake class.
This now uses the same parser as the nix code, but runs it in python for
nice stacktraces.

Also we now have a maybe selector which can be used by prepending the
selector with a ?

Tests have been expanded to make sure the code is more stable and easier
to understand
2025-04-25 16:26:45 +10:00
Johannes Kirschbauer
101648d657 init(clanServices): add zerotier boilerplate to clanServices 2025-04-16 11:34:58 +02:00
Michael Hoang
66700bf44e flake: update nix-darwin owner 2025-04-10 10:31:26 +02:00
Michael Hoang
8bc2112e45 flake: add nix-darwin 2025-04-08 07:39:49 +02:00
DavHau
6226164e0b update nixos-facter-modules for bugfix 2025-04-03 17:31:32 +07:00
Pablo Ovelleiro Corral
8ed186ce55 data-mesher: init module
Co-authored-by: Brian McGee <brian@bmcgee.ie>
2025-03-29 13:49:41 +00:00
Michael Hoang
61c59a2d6a flake: switch back to using main branch of sops-nix 2025-03-18 12:55:13 +00:00
Jörg Thalheim
59cca52f55 actually hide test-fixture from user
if we actually want to avoid the dependency on this facter json, we
cannot expose this as a flake input because nix flake archive will have
to download this on each deployment step.
2025-03-11 12:23:59 +00:00
Michael Hoang
685effd22b checks: use facter.json from external test-fixtures repo 2025-03-10 12:30:03 +09:00
DavHau
74b30cca9f switch to nixpkgs hosteded by cache.nixos.org
take 2 on https://git.clan.lol/clan/clan-core/pulls/2921
2025-03-07 07:20:07 +00:00
Pablo Ovelleiro Corral
1d906b8373 Revert "switch to nixpkgs hosteded by cache.nixos.org"
This reverts commit 30fc207dc5.
2025-02-25 09:04:27 +01:00
Jörg Thalheim
30fc207dc5 switch to nixpkgs hosteded by cache.nixos.org
This now works thanks to https://github.com/NixOS/infra/pull/562
2025-02-24 10:44:15 +07:00
lassulus
0b1b43fded add demo_iso code for iso-morphing 2025-02-22 03:39:42 +00:00
Michael Hoang
742040cd03 templates: allow specifying from flake-parts module 2025-02-16 21:10:22 +07:00
Johannes Kirschbauer
3cb3259c0f flake.nix: remove unused self reference 2025-02-03 12:00:47 +01:00
Qubasa
caaafdf5f9 clan-cli: Add test_clan_nix_attrset.py and minor fixups 2025-01-31 16:36:20 +07:00
Qubasa
0db5abf56a clan-cli: Make clan flakes create discover templates from inputs. Add clan flakes list command 2025-01-30 16:24:50 +07:00
Qubasa
ed6aaf5f0c clan: Add autoloaded clanModules from flake inputs. Rename 'directory' to 'self' in buildClan 2025-01-24 12:32:04 +07:00
a-kenji
673935785d Fix various typos 2025-01-22 13:26:58 +01:00
DavHau
5ce72dd261 tests: reduce unnecessary rebuilds of several tests
Some test were referring to the whole source code via ${self} which amde them rebuild on every single commit.

This is not mitigated by introduceing `self.filter { include = [...]; }` allowin to a content addressed subset of the source code in tests.
2025-01-17 17:00:18 +07:00
Pablo Ovelleiro Corral
038083bece Migrate borgbackup module to vars 2025-01-16 13:14:24 +01:00
Michael Hoang
12ea766904 Make treefmt-nix optional 2024-12-10 17:48:28 +11:00
a-kenji
b5cd929961 flake/inputs: Remove obsolete nixpkgs-stable reference for sops-nix 2024-11-19 10:48:56 +01:00
a-kenji
689b2e7560 flake/inputs: Group inputs together 2024-11-09 20:13:15 +01:00
Jörg Thalheim
bae360b3b7 remove unused nixos-images flake input 2024-10-23 09:44:39 +02:00
Jörg Thalheim
858631a30e bump flakes 2024-09-24 12:52:53 +02:00
a-kenji
6aa1fc3a1a inputs: nixos-facter-modules user flake 2024-09-15 13:50:40 +02:00
Johannes Kirschbauer
38991c9bf6 Flake: nixos-facter-module with flake: false 2024-08-28 11:01:07 +02:00
Jörg Thalheim
dc94545655 remove nixos-factor modules for now
I would like to get rid of blueprint before having this feature
2024-08-27 09:38:28 +02:00
Johannes Kirschbauer
8f39db5c54 Remove nixos-facter until fixed upstream 2024-08-26 11:47:26 +02:00
Johannes Kirschbauer
10f6292073 Facter: only export the standard linux package for caching 2024-08-26 09:23:46 +02:00