Commit Graph

4201 Commits

Author SHA1 Message Date
clan-bot
dddf71daf5 Merge pull request 'Automatic flake update - sops-nix - 2024-09-23T00:00+00:00' (#2161) from flake-update-sops-nix-2024-09-23 into main 2024-09-23 00:33:42 +00:00
clan-bot
16045ba487 Merge pull request 'Automatic flake update - nixos-facter-modules - 2024-09-23T00:00+00:00' (#2157) from flake-update-nixos-facter-modules-2024-09-23 into main 2024-09-23 00:27:35 +00:00
Clan Merge Bot
3a89e7d8d7 update flake lock - sops-nix - 2024-09-23T00:00+00:00
Flake lock file updates:

• Updated input 'sops-nix':
    'github:Mic92/sops-nix/f30b1bac192e2dc252107ac8a59a03ad25e1b96e' (2024-09-13)
  → 'github:Mic92/sops-nix/e2d404a7ea599a013189aa42947f66cede0645c8' (2024-09-16)
2024-09-23 00:00:40 +00:00
Clan Merge Bot
2b33000ce7 update flake lock - nixos-facter-modules - 2024-09-23T00:00+00:00
Flake lock file updates:

• Updated input 'nixos-facter-modules':
    'github:numtide/nixos-facter-modules/d78cd60464df85279cbdddaba0e3d8d8ee6ab00c' (2024-09-13)
  → 'github:numtide/nixos-facter-modules/6eb13404bbe40b9a5ef9984792b27933658571fa' (2024-09-20)
2024-09-23 00:00:02 +00:00
clan-bot
36ac9ef31a Merge pull request 'Docs: add top-level index, refactor according to diataxis' (#2156) from hsjobeki/clan-core:hsjobeki-docs/inventory into main 2024-09-22 16:58:35 +00:00
Johannes Kirschbauer
37435acd79 Docs: fix flake-parts nav entry 2024-09-22 18:52:22 +02:00
Johannes Kirschbauer
30711a3d6d Docs: clarify inventory statement 2024-09-22 18:46:39 +02:00
Johannes Kirschbauer
55526b1fdb Docs: add top-level index, refactor according to diataxis 2024-09-22 18:39:13 +02:00
Mic92
350ed0b1fe Merge pull request 'f2fs: enable compression' (#2152) from f2fs into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2152
2024-09-20 15:52:11 +00:00
Jörg Thalheim
450afb883a f2fs: enable compression 2024-09-20 15:52:11 +00:00
clan-bot
5dc01b6213 Merge pull request 'docs: Rename guides to manual, Rename reference to options, add secure boot chapter to manual. Add secrets chapter to manual.' (#2154) from Qubasa/clan-core:main into main 2024-09-20 14:59:42 +00:00
Qubasa
036cd710e1 docs: Rename guides to manual, Rename reference to options, add secure boot chapter to manual. Add secrets chapter to manual. 2024-09-20 16:52:52 +02:00
clan-bot
2f50ccc77f Merge pull request 'vars/sops: improve shared secrets, switching backend' (#2151) from DavHau/clan-core:DavHau-vars-migration into main 2024-09-20 13:18:01 +00:00
DavHau
e49d1f0127 vars/sops: improve shared secrets, switching backend
When a second machine checks for a shared secret, now the exists() call returns negative and only when updating the secrets for that machine, the machine is added to the sops receivers.

Also throw proper errors when the user switches backends without cleaning the files first.
2024-09-20 15:06:54 +02:00
Mic92
77ac85df57 Merge pull request 'rename hw-generate to update-hardware-config' (#2150) from rename-update-hardware-command into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2150
2024-09-20 12:13:39 +00:00
Jörg Thalheim
8a8b473236 rename hw-generate to update-hardware-config 2024-09-20 13:42:18 +02:00
clan-bot
8e1734345b Merge pull request 'vars: implement migration' (#2148) from DavHau/clan-core:DavHau-vars-migration into main 2024-09-19 16:04:39 +00:00
DavHau
0a8b7f38a8 vars: implement migration
Migrating generated files from the facts subsystem to the vars subsystem is now possible.

HowTo:
1. declare `clan.core.vars.generators.<generator>.migrateFact = my_service` where `my_service` refers to a service from `clan.core.facts.services`
2. run `clan vers generate your_machine` or `clan machines update your_machine`

Vars will only be migrated for a generator if:
1. The facts service specified via `migrateFact` does exist
2. None of the vars to generate exist yet
3. All public var names exist in the public facts store
4. All secret var names exist in the secret fact store

If the migration is deemed possible, the generator script will not be executed. Instead the files from the public or secret facts store are read and stored into the corresponding vars store
2024-09-19 17:57:03 +02:00
clan-bot
733c44b7b6 Merge pull request 'vars/generate: improve output when vars are updated' (#2147) from DavHau/clan-core:DavHau-dave into main 2024-09-18 15:03:09 +00:00
DavHau
01c833f2bc vars/generate: improve output when vars are updated
fixes #2076

- print old and new value if possible
- also inform the user if something hasn't changed
2024-09-18 16:57:01 +02:00
clan-bot
1f07469923 Merge pull request 'clanModules/state-version: use default of vars' (#2146) from kenji/clan-core:kenji-modules/state-version into main 2024-09-18 12:16:34 +00:00
a-kenji
763554cf8a clanModules/state-version: use default of vars 2024-09-18 14:07:30 +02:00
clan-bot
55cfea9285 Merge pull request 'Inventory: docs fixup' (#2145) from hsjobeki/clan-core:hsjobeki-docs/inventory into main 2024-09-18 06:39:17 +00:00
clan-bot
11df6bb019 Merge pull request 'Inventory: fixup imports to extraModules' (#2141) from hsjobeki/clan-core:hsjobeki-main into main 2024-09-18 06:35:06 +00:00
Johannes Kirschbauer
9a24b1ee16 Inventory: docs fixup 2024-09-18 08:31:00 +02:00
Johannes Kirschbauer
9bee82d21e Inventory: fixup imports to extraModules 2024-09-18 08:27:39 +02:00
clan-bot
c3d2e4a424 Merge pull request 'vars: allow setting a default for values' (#2144) from DavHau/clan-core:DavHau-dave into main 2024-09-17 19:17:34 +00:00
DavHau
6fc27d402b vars: allow setting a default for values 2024-09-17 21:11:38 +02:00
clan-bot
8cbbeca49e Merge pull request 'vars: generate vars for clan install' (#2143) from DavHau/clan-core:DavHau-dave into main 2024-09-17 18:47:56 +00:00
DavHau
4ce3cf16bb vars: generate vars for clan install
fixes #2087
2024-09-17 20:41:39 +02:00
clan-bot
8b229522e6 Merge pull request 'vars: generate proper commit messages' (#2142) from DavHau/clan-core:DavHau-dave into main 2024-09-17 18:29:00 +00:00
DavHau
bd79e6aef6 vars: generate proper commit messages
fixes #2126
2024-09-17 20:22:18 +02:00
clan-bot
6d18d9d4ae Merge pull request 'docs/guides: add getting started guide to guides overview' (#2140) from kenji/clan-core:kenji-update/guide into main 2024-09-16 21:35:17 +00:00
a-kenji
7cdbe83bc6 docs/guides: add getting started guide to guides overview 2024-09-16 23:21:02 +02:00
clan-bot
ba8e46fe7a Merge pull request 'Inventory: docs improvements' (#2132) from hsjobeki/clan-core:hsjobeki-inventory-docs into main 2024-09-16 20:58:28 +00:00
Johannes Kirschbauer
3721fc4340 Inventory: fix doc typo 2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
d4123a14d2 Inventory: fix eval tests 2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
72f79dee37 Inventory: docs improvements 2024-09-16 22:52:40 +02:00
kenji
8ccc695b92 Merge pull request 'docs: update readme for irc bridge' (#2138) from kenji/clan-core:readme/update into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2138
2024-09-16 20:44:15 +00:00
a-kenji
fc9d5c1e51 docs: update readme for irc bridge 2024-09-16 20:44:15 +00:00
clan-bot
c55fa1b222 Merge pull request 'config: remove gitmodules file' (#2136) from kenji/clan-core:kenji-config/rm/gitmodules into main 2024-09-16 20:17:39 +00:00
a-kenji
5b37f8feec config: remove gitmodules file 2024-09-16 22:10:13 +02:00
clan-bot
04d0c0b0c1 Merge pull request 'vars/tests: fix nix eval triggering git concurrent access' (#2135) from DavHau/clan-core:DavHau-dave into main 2024-09-16 17:34:25 +00:00
DavHau
51bf3187d7 vars/tests: fix nix eval triggering git concurrent access
Prevents this error: Another git process seems to be running in this repository
2024-09-16 18:58:22 +02:00
clan-bot
1695c571b9 Merge pull request 'clan-cli: Init clan machines import' (#2134) from Qubasa/clan-core:Qubasa-main into main 2024-09-16 16:21:19 +00:00
Qubasa
e9bfb129a1 clan-cli: Init clan machines import 2024-09-16 18:15:55 +02:00
clan-bot
4254cf8ed0 Merge pull request 'templates: don't explicitly import hardware-configurations' (#2133) from kenji/clan-core:kenji-templates/modernize/new-clan into main 2024-09-16 15:31:38 +00:00
a-kenji
60b68bc9bd templates: don't explicitly import hardware-configurations 2024-09-16 17:21:50 +02:00
hsjobeki
5f6a2d227a Merge pull request 'Inventory: improve usability from nix' (#2116) from hsjobeki/clan-core:hsjobeki-main into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2116
2024-09-16 13:50:03 +00:00
Johannes Kirschbauer
97f4124e3b Inventory: docs improvements 2024-09-16 13:50:03 +00:00