Commit Graph

122 Commits

Author SHA1 Message Date
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
Johannes Kirschbauer
086e6c29d3 Format 2024-08-26 09:05:01 +02:00
Johannes Kirschbauer
fd2dd2b565 BuildClan: autoimport facter.json 2024-08-26 09:04:59 +02:00
zimbatm
4fa4af12dc feat(flake): make systems overridable
Clan users might want to use the flake on different architectures.

This allows them to override the systems input with a new value.
2024-08-15 20:03:56 +02:00
Jörg Thalheim
59c5942d86 drop binary cache from flake
This generates warnings for users of the CLI and confuses them.
In our CI systems we can just provide our binary cache.
2024-07-21 15:27:31 +02:00
Jörg Thalheim
b06a09281c remove nixos-generators 2024-07-08 16:24:34 +02:00
Jörg Thalheim
be480adfa8 nixos-generators: drop nixlib copy 2024-06-30 08:13:24 +02:00
DavHau
dfcf4d8309 vars: init
- init eval tests
- init basic interface
2024-06-27 21:09:55 +07:00
clan-bot
e83d428fd6 Merge pull request 'Docs: rename clanName to just name' (#1660) from hsjobeki/clan-core:hsjobeki-main into main 2024-06-25 12:25:27 +00:00
Johannes Kirschbauer
b90ec6e842 Inventory: move to lib.inventory 2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
cf03c71966 Docs: rename clanName to just name 2024-06-25 14:21:53 +02:00
Johannes Kirschbauer
881e95dd75 Inventory: init draft ideas 2024-06-19 09:40:23 +02:00
Jörg Thalheim
f0c754a1aa drop nixos-stable 2024-06-11 15:03:57 +02:00
Johannes Kirschbauer
c7008fd302 clan-core: add clan meta for ui usage 2024-05-31 16:26:46 +00:00
Jörg Thalheim
e23755d78e make git-hooks opt-in
pre-commit hook break git commits and are disruptive.
Therefore people that want to enable this feature, should enable it locally instead.
I.e. treefmt will also check untracked files that are not meant for the current commit.
2024-05-27 11:08:17 +02:00
Valentin Gagarin
ff5f55e779 add pre-commit check
make sure things are sane before they hit CI, re-purposing the existing
treefmt configuration.

this adds a custom installer for pre-commit hooks, which is inspired by
pre-commit.nix[0], but is much more minimal than the underlying
pre-commit[1] and builds on a historic idea[2] from this repository.

[0]: https://github.com/cachix/git-hooks.nix
[1]: https://github.com/pre-commit/pre-commit
[2]: 930923512c
2024-05-24 12:39:56 +00:00
Qubasa
48bb275946 flake.nix: change disko back to nix-community 2024-05-22 21:14:30 +02:00
Qubasa
dcf98a93ee Revert "Merge pull request 'add pre-commit-check' (#1369) from fricklerhandwerk/clan-core:add-pre-commit into main"
This reverts commit 4c4afe8028, reversing
changes made to 2785f59960.
2024-05-22 14:31:53 +02:00
Valentin Gagarin
63b2ffc6c2 use a custom installer for pre-commit hooks 2024-05-22 11:49:57 +00:00
Valentin Gagarin
29d713e44e add pre-commit check
make sure things are sane before they hit CI.
this re-purposes the existing treefmt configuration.
2024-05-22 11:49:57 +00:00
Johannes Kirschbauer
13678606e7 api: fix typing issues 2024-05-21 16:01:57 +02:00
Johannes Kirschbauer
d6e0bbebd1 webview: replace dream2nix by buildNpm from nixpkgs to save inputs 2024-05-21 15:52:20 +02:00
Johannes Kirschbauer
484247de6d add webview threaded api 2024-05-18 14:14:12 +00:00
Qubasa
b1dd5c2832 Add --ssh-pubkey FILE argument 2024-05-14 15:41:15 +02:00
Johannes Kirschbauer
77921f9c79 docs: clean up directory structure 2024-04-13 14:48:26 +02:00
Johannes Kirschbauer
c1f2784d05 disable module docs until migrated 2024-04-12 17:13:11 +02:00
Johannes Kirschbauer
a7e8500d99 docs: self host documentation with mkDocs 2024-04-12 17:13:11 +02:00