Commit Graph

155 Commits

Author SHA1 Message Date
phaer
a8d91908c3 telegraf: refactor exec checks 2023-06-26 14:04:59 +02:00
phaer
1c56e347cb telegraf: fix typo, {zpool,nfs}-health 2023-06-26 13:38:31 +02:00
phaer
09ab074744 common: don't log refused network connections 2023-06-26 13:00:13 +02:00
phaer
dec91a6d4f common: default to boot.tmp.cleanOnBoot=true 2023-06-26 12:46:14 +02:00
zimbatm
3d8edb9d95 fix CI 2023-06-22 10:27:59 +02:00
zimbatm
5d525f26bf fmt 2023-06-19 14:51:19 +02:00
phaer
27dca23cf4 upgrade-diff: Add delimiters around... 2023-06-19 00:09:30 +02:00
phaer
248a4db1f5 Fix typo 2023-06-18 22:38:16 +02:00
phaer
840296d9eb Run diff activationScript on dry-activate...
This is safe as the script doesn't modify the system.
And it's useful to check before applying.
2023-06-18 22:38:09 +02:00
zimbatm
93567672b2 flake update 2023-05-29 20:16:57 +02:00
Jörg Thalheim
497e0e69b7 telegraf: make mdstat monitoring option
It makes telegraf otherwise errors if /proc/mdstat is not available.
2023-05-12 14:25:48 +02:00
Jörg Thalheim
ad833c01d0 srvos: unset boot.consoles in desktop profile 2023-05-09 20:55:17 +02:00
bors[bot]
87f51752a9
Merge #28
28: hardware-vultr: add new profile r=zimbatm a=zimbatm



Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2023-05-08 16:53:55 +00:00
zimbatm
7bc256105d add vultr hardware 2023-05-08 18:39:24 +02:00
zimbatm
0ae1ad94ab cloud-init: auto-enable used filesystems 2023-05-08 17:53:02 +02:00
Jean-François Roche
43d858c9da feat(github-runner): add extra read write paths option
GitHub Runner services are configured to makes the entire system read-only by default.
Add a github-action-runner role option to allow specific paths to remain writable for the services.

To explicitely share files between runners in these paths, a shared group ID is also be added to the runners.

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-05-05 16:09:57 +02:00
zimbatm
aa1f673f16 hetzner-cloud: detect IPv6 automatically
Thanks to @jfroche fixing cloud-init in
https://github.com/NixOS/nixpkgs/pull/226216, it's now able to retrieve
the IPv6 address from the metadata server on boot and creates a
/etc/systemd/network/10-cloud-init-eth0.network file that contains it.
2023-04-28 18:55:19 +02:00
zimbatm
876a427065 stage1 systemd doens't support boot.growPartition 2023-04-28 14:39:10 +02:00
zimbatm
374804f9ce fix boot.cleanTmpDir rename warning 2023-04-28 14:39:10 +02:00
zowoq
0da5e66867 server: disable fontconfig 2023-04-22 11:11:13 +10:00
zowoq
d10c213cd5 server: disable all documentation 2023-04-22 10:55:30 +10:00
Jonas Chevalier
cc730ed60e
Update nixos/server/default.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-04-18 11:59:04 +02:00
zimbatm
d749be593d
server: disable documentation by default
Keep the evaluation and closure size small
2023-04-17 17:22:32 +02:00
Jean-François Roche
56ee5d90bf feat(github-runner): add optional async post build hook
Add option to enable asynchronous process to upload Nix packages to a binary cache without requiring the use of Cachix.
Based on https://github.com/nix-community/queued-build-hook

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-04-07 10:57:32 +02:00
zimbatm
b9e71438a3
well-known-hosts: use hostname as keys 2023-04-06 16:38:16 +02:00
zimbatm
55e8c5f281
well-known-hosts: remove RSA keys
We only need the ed25519 ones
2023-04-05 18:38:02 +02:00
zimbatm
cf3f3a6222
treefmt: introduce deadnix 2023-04-03 19:30:49 +02:00
zimbatm
6dc0711599
treefmt: format scripts with shfmt 2023-04-03 19:30:49 +02:00
Jean-François Roche
2013d0173b feat(github-runner): add role option to add extra labels
Introduces the `extraLabels` option to the GitHub action runners role, enabling users to target specific runners using custom labels.
2023-04-03 15:07:23 +02:00
zowoq
dece86b35e nginx: add recommendedZstdSettings 2023-04-02 16:19:14 +10:00
Lan Tian
8b514178b7
well-known-hosts: update rsa pubkey for GitHub 2023-03-24 01:34:20 -07:00
Sandro
788941a613
Don't use users.extraUsers alias
from the description of the option:
  Alias of users.users.
2023-03-18 16:23:28 +01:00
zimbatm
1e87cc4932
upgrade-diff: make it work when nix-command is disabled
Fixes #91
2023-03-13 16:08:17 +01:00
Jörg Thalheim
f758ca4a92 github-runners: restart always 2023-03-07 19:08:13 +01:00
Jean-François Roche
2722c8dab2 fix(github-runner): remove verbose script
Do not leak tokens in journal
2023-03-07 18:35:06 +01:00
Jean-François Roche
52a926f911 fix(github-runner): unregister existing offline runner using GitHub App token
The GitHub self-hosted runner service can unregister existing GitHub runners if their token still exists in the runner's state directory.
However, if the runner is still registered and the token no longer exists, the service is unable to unregister the runner, and it cannot
be started again as it is already registered.

Rather than relying on the token stored in the runner's state directory, this change enables the service to unregister an existing offline
runner using the GitHub App token.
2023-03-07 18:35:06 +01:00
bors[bot]
f93c7c9d92
Merge #85
85: github-actions-runner: drop kvm extra group r=jfroche a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-03-06 15:53:27 +00:00
Jörg Thalheim
251db6e303 github-actions-runner: drop kvm extra group
the systemd option is invalid and the device should be world-readable.
2023-03-04 14:50:22 +01:00
DavHau
65411ef452 fix: don't force nix.gc.randomizedDelaySec 2023-03-02 22:49:59 +07:00
zimbatm
6c1abd9f39
remove the _file references
After #80, the modules are exposed as paths, and Nix doesn't seem to
complain anymore.

This is probably a change in Nix itself. But that means we don't need
those `_file` anymore.
2023-02-27 14:00:50 +01:00
zimbatm
ca3fdd34f8
flake: remove flake-parts dependency
One drawback of flake-parts is that it makes the wiring of the flake
outputs less easy to follow. With the new version the user can open the
flake.nix and pretty easily follow how things are put together.

Another drawback is that it makes the flake dependency tree larger. We
want to limit how much baggage srvos is adding when added as an input.
2023-02-27 12:14:06 +01:00
zimbatm
f2e0c6fc4e
remove phantom configuration
That file was used early on to test the code and has been replaced by
the nixosConfigurations since then
2023-02-27 10:18:52 +01:00
Jörg Thalheim
53a30f74d3 drop fake-hardware module 2023-02-24 14:57:39 +01:00
DavHau
18031eb886
predictable module locations
We introduce a few new mechanism in this commit:

flake-parts is used to wire things together.

./all-parts.nix looks for and imports all flake-part.nix files. This
makes it easier to co-locate the parts next to the targeted code.

We introduce a `modules` flake output to hold all modules. For example
instead of `nixosModules`, use `modules.nixos`.

In ./nixos we enforce a 1:1 mapping between the module filenames and the
attribute. For example ./nixos/mixins/telegraf.nix will translate to
`modules.nixos.mixins-telegraf`.

flake-compat ensures that the default.nix and flake.nix are in sync and have the same outputs.
2023-02-24 11:47:49 +01:00
Jörg Thalheim
e046f4882b github actions runner: make cachix optional 2023-02-22 15:18:04 +01:00
Jean-François Roche
612b6a1b70
feat(github-runners): add option to install default packages
Some workflows assume packages to be installed by default (e.g. bld).
Sometime helpful to not run devshell in all workflows.
2023-02-20 22:51:29 +01:00
zowoq
5ee8ebd2dc common/openssh: update renamed setting
267b25f380
2023-02-10 13:22:59 +10:00
DavHau
210579334a
Update nixos/roles/nix-remote-builder.nix
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2023-02-07 10:54:12 +07:00
DavHau
d5b5979d9a
Update nixos/roles/nix-remote-builder.nix
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2023-02-07 10:54:07 +07:00
DavHau
30463eae2c fix: remote builder: ssh-ng capability + builder user 2023-02-04 21:49:27 +07:00
Jörg Thalheim
ada2da99da
common: drop Nsncd option
this is now upstream: https://github.com/NixOS/nixpkgs/pull/214153
2023-02-04 09:46:49 +01:00
bors[bot]
d29141b0ec
Merge #57
57: fix: make experimental-features a list r=zimbatm a=DavHau



Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2023-02-04 08:44:55 +00:00
zimbatm
e3539e5b0b
add nix-remote-builder role 2023-02-04 09:40:57 +01:00
DavHau
9f325f5e94 fix: make experimental-features a list
This fixes the problem, that you cannot add to more experimental features in another config
2023-02-04 14:33:28 +07:00
zimbatm
c2b0e3d418
move modules into nixos sub-folder
Make room for the docs folder
2023-01-27 10:39:18 +01:00