Jörg Thalheim
22d6e5e153
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
109d1faf9e
enable bug-bear linting rules
2024-09-02 13:26:07 +02:00
Jörg Thalheim
b313f2d066
make all same-module imports relative, the rest absolute
...
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Johannes Kirschbauer
41141c0483
API: fix online check
2024-08-26 18:00:41 +02:00
Johannes Kirschbauer
a0307a29b8
CLI: add option to generate facter.json
2024-08-26 09:05:01 +02:00
Jörg Thalheim
de34e058f6
hw-generate: don't load nixos-install-tools on local machine
...
We only need this on the target. Our installer have it already.
2024-08-24 12:07:22 +02:00
Jörg Thalheim
7ba0966da3
hw-generate: fix args
2024-08-24 12:07:22 +02:00
Jörg Thalheim
96321123d7
correct error message about allowed hostnames
2024-08-24 11:30:26 +02:00
Johannes Kirschbauer
1e766feb40
API: prepare hw_generate for facter
2024-08-23 11:13:06 +02:00
Johannes Kirschbauer
b0d57cbdf5
API: hw_generate commit generated config
2024-08-22 16:11:08 +02:00
Johannes Kirschbauer
2d119ae750
Clan-app: generate hw report
2024-08-22 15:57:00 +02:00
Johannes Kirschbauer
9a222d62a7
API: init set_machine
2024-08-21 15:29:08 +02:00
Jörg Thalheim
30bbb142e2
Merge remote-tracking branch 'origin/main' into rework-installation
2024-08-21 13:38:04 +02:00
Johannes Kirschbauer
cabdbe5ecd
Clan-app: connection check & show remote devices
2024-08-20 09:53:15 +02:00
Johannes Kirschbauer
02662867fb
UI: init update machine
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
90b13dc803
API: init machine update
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
3522b8ba49
Machine update: fix upload sources from machine flake, instead of current directory
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
3f46d37b67
Clan-app: generate hw spec via ssh
2024-08-14 16:28:43 +02:00
Johannes Kirschbauer
eb844e83fe
Clan-cli: remove unused show machine
2024-08-14 16:18:43 +02:00
Johannes Kirschbauer
68c65fb3fd
API: add keyfile arg
2024-08-13 19:29:28 +02:00
Johannes Kirschbauer
1128bf1cac
API: init install machine
2024-08-13 18:58:20 +02:00
Qubasa
f0a9a7a02b
clan-cli: Add --show-trace to nix build and nixos-rebuild commands
2024-08-12 22:27:54 +02:00
Johannes Kirschbauer
99dc5793b2
Clan-app: Add loading animations & improve async data handling
2024-08-06 22:29:11 +02:00
Johannes Kirschbauer
937c171769
Clan-app: refine create machine workflow via query operation
2024-08-06 16:04:21 +02:00
Johannes Kirschbauer
ede5cbcf13
Fix: regression list_machines. Split into multiple functions
...
list_inventory_machines, list_nixos_machine, list_sops_machines
The caller of the function should specify which machines they wants to see
2024-08-03 12:43:35 +02:00
Johannes Kirschbauer
8b0212b828
Add build-clan module
2024-08-03 12:05:09 +02:00
Jörg Thalheim
cc5546d79d
Merge remote-tracking branch 'origin/main' into rework-installation
2024-07-30 11:52:36 +02:00
DavHau
395c5cbace
vars/sops: fix loading of vars from directory structure
2024-07-29 18:01:26 +07:00
Jörg Thalheim
8ccd8af3cc
Merge remote-tracking branch 'origin/main' into rework-installation
2024-07-24 21:58:57 +02:00
Jörg Thalheim
fe99fb8e34
remove 'Extra config:' warning
2024-07-24 20:04:31 +02:00
Johannes Kirschbauer
1b52dca96b
Fix unit tests
2024-07-24 13:15:08 +02:00
Johannes Kirschbauer
d91090bb0e
Create machine: init view with api
2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
871fa8f1ff
Inventory: add load_eval method
2024-07-24 10:34:10 +02:00
Qubasa
31161322d6
clan-vm-manager: Fix waypipe regression in nix code
2024-07-23 13:20:02 +02:00
Jörg Thalheim
3bbfe7fad2
hw-configure: use hostname specified in the nixos configuration
2024-07-22 16:08:59 +02:00
Qubasa
131299694b
clan-vm-manager: Restore to known good version
2024-07-19 22:07:34 +02:00
Johannes Kirschbauer
fbe27bfa0a
Classgen: add mapped keys and more stuff
2024-07-18 21:58:36 +02:00
Jörg Thalheim
64956a7a0a
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit a598b878a5 .
2024-07-17 14:04:49 +02:00
DavHau
a598b878a5
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07:00
DavHau
e7d5a6f854
impure-checks: improve performance by disabling dynamic deps
2024-07-16 12:42:45 +07:00
Mic92
a3e2b76517
Merge branch 'main' into DavHau-dave
2024-07-09 09:33:11 +00:00
DavHau
941cf9fb9d
vars: implement generating public variables via in_repo
2024-07-09 14:26:56 +07:00
Johannes Kirschbauer
edcc1a5cb2
Test: fixup
2024-07-06 17:51:46 +02:00
DavHau
79d6f8e893
Reapply "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
...
This reverts commit 71009f80d8 .
workaround upstream bug: https://github.com/NixOS/nixpkgs/issues/324802
2024-07-05 19:29:01 +07:00
Jörg Thalheim
71009f80d8
Revert "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
...
This reverts commit 18b64f2d0b .
The old configuration cannot be updated like this:
eve] error:
[eve] … while calling the 'head' builtin
[eve] at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/attrsets.nix:1575:11:
[eve] 1574| || pred here (elemAt values 1) (head values) then
[eve] 1575| head values
[eve] | ^
[eve] 1576| else
[eve]
[eve] … while evaluating the attribute 'value'
[eve] at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/modules.nix:809:9:
[eve] 808| in warnDeprecation opt //
[eve] 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
[eve] | ^
[eve] 810| inherit (res.defsFinal') highestPrio;
[eve]
[eve] … while evaluating the option `system.build.toplevel':
[eve]
[eve] … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/activation/top-level.nix':
[eve]
[eve] … while evaluating the option `assertions':
[eve]
[eve] … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/boot/systemd.nix':
[eve]
[eve] … while evaluating the option `systemd.services':
[eve]
[eve] … while evaluating definitions from `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/zerotier':
[eve]
[eve] … while evaluating the option `clan.core.networking.zerotier.networkId':
[eve]
[eve] (stack trace truncated; use '--show-trace' to show the full, detailed trace)
[eve]
[eve] error: A definition for option `clan.core.networking.zerotier.networkId' is not of type `null or string'. Definition values:
[eve] - In `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/networking.nix':
[eve] {
[eve] _type = "override";
[eve] content = "267efd4a15b69623";
[eve] priorit
2024-07-05 11:16:05 +02:00
DavHau
18b64f2d0b
clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}
2024-07-04 17:05:37 +07:00
Jörg Thalheim
6037ad1ce0
move FlakeId to flake id
...
move FlakeId to flake id
2024-07-03 18:28:55 +02:00
clan-bot
842d9a360c
Merge pull request 'refactor-machine' ( #1691 ) from refactor-machine into main
2024-07-03 10:48:09 +00:00
Jörg Thalheim
2f1dac6962
make machine class now a dataclass
2024-07-03 12:34:43 +02:00
Johannes Kirschbauer
3227de583f
API: tests for module instance update
2024-07-02 16:09:13 +02:00