Commit Graph

37 Commits

Author SHA1 Message Date
Jörg Thalheim
0c16f56ab8 add basic darwinModules
enable nix-daemon
2024-06-27 12:28:41 +02:00
zowoq
f69ed55135 flake: add nix-community cachix nixConfig 2024-06-08 00:45:44 +00:00
zowoq
4f89af165f flake: only build devShells on x86_64-linux 2024-04-12 00:43:38 +00:00
Jonas Chevalier
e19a0dc562
flake: distill the private flake input pattern (#376)
This PR distills the private flake inputs pattern to 10 lines of Nix
code.

This also allows removing flake-parts as a public dependency. It's only
needed internally as glue code.
2024-02-15 14:32:22 +01:00
zowoq
7a5f6d8ff5 dev flake
This allows us to have private dev inputs that we can use in the main flake and move the github actions checks to buildbot.
2024-01-14 09:08:22 +10:00
zowoq
93a91c8cc6 flake: enable checks on aarch64-linux 2024-01-05 22:28:38 +10:00
zowoq
ea15fb6c45 flake: drop permittedInsecurePackages 2024-01-05 22:28:38 +10:00
Jörg Thalheim
8f04a72366 upgrade to 23.11 2023-12-11 22:46:25 +00:00
r-vdp
d18368b774
Fix tests. 2023-11-30 14:34:20 +01:00
zowoq
5b5984e895 move nixos tests to main flake
also disable tests on aarch64-linux
2023-11-06 10:18:26 +10:00
Jörg Thalheim
0255510812
apply deadnix (#224)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-08-24 10:31:22 +02:00
zimbatm
7e7c0bc212 ci: also test nixos-23.05
Move tests to the ./dev folder
2023-07-16 06:32:59 +02:00
zimbatm
6fbc55c092
switch docs to mkdocs 2023-04-03 17:50:08 +02:00
zimbatm
e896b8f419
introduce dev flake
Keep the number of exposed inputs from the top-level flake small by
splitting the development environment into its own flake.

The .envrc uses `--override-input srvos path:$PATH` so that the srvos
path always get re-calculated on reload, but not recorded. Since the
hash of srvos is stored inside of srvos, it would infinitely update
otherwise.
2023-04-03 16:10:38 +02:00
zimbatm
7bb21aa822
flake: add bors TOML check
A new trick to keep the bors.toml in sync between Garnix and the flake
content.
2023-02-27 22:01:31 +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
5be7cdf5d8
flake: remove flake-compat as an input
Keep the dependency tree short so users don't have to override.
2023-02-27 12:02:26 +01:00
Jörg Thalheim
cbc02d2924 explicitly add flake-parts with override
otherwise we end up with a second 30mb nixpkgs.
2023-02-24 14:37:18 +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
zimbatm
c764097e37
make room for other types of modules 2023-02-15 10:45:26 +01:00
zimbatm
793e55fcaa
docs MVP 2023-02-13 17:20:20 +01:00
zimbatm
e3539e5b0b
add nix-remote-builder role 2023-02-04 09:40:57 +01:00
Jörg Thalheim
c807ba1fcc add trusted caches mixins
This adds a list of common trust-worthy caches. It's not enabled by
default since it's debatable what caches should be enabled by default.
2023-01-20 11:30:58 +01:00
Jörg Thalheim
4bee898e8d make terminfo a mixin
graphical programs are prone to break and my hinder quick upgrades on
unstable channels: https://github.com/nix-community/infra/pull/379
2023-01-16 16:22:28 +01:00
Jean-François Roche
782e1fb02a
Add new profile to create self hosted runners using github app (#6)
* feat: add original github-runner module

Add original nixpkgs/nixos module to create github runner services.

* feat: use github app to create self hosted runners
2023-01-10 19:03:21 +01:00
Jörg Thalheim
2685a22ab7 rename efi to systemd-boot 2023-01-02 12:10:20 +01:00
zimbatm
e3dd501d2b
flake: extend test converage
Hit all the files that we have
2022-12-31 16:59:49 +01:00
Jonas Chevalier
89c1beb1c4
expose modules list (#18)
Make the modules list available outside of flakes and prefix them.
2022-12-31 16:26:51 +01:00
zimbatm
2204eb5169
nixpkgs-fmt 2022-12-29 17:37:05 +01:00
Jonas Chevalier
db45a08ad2
use systemd-boot everywhere (#7)
* introduce EFI profile

For machines that can boot on EFI

* common: use systemd in the initrd as well

Replace the pile of shell scripts with systemd in the initrd

* Update profiles/common.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>

* Update profiles/common.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-28 14:38:11 +01:00
Jörg Thalheim
0ef3c32aee
add desktop profile (#14)
* add desktop profile

* flake: also test server and desktop profile

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2022-12-28 14:35:15 +01:00
Jörg Thalheim
fc4e7483cd
add nginx role (#10) 2022-12-28 14:27:23 +01:00
zimbatm
6423849123
split common and server profiles 2022-12-21 17:39:25 +01:00
Jörg Thalheim
d38aea1853 add telegraf configuration 2022-12-19 21:44:31 +01:00
Jörg Thalheim
54b32ddf08 expose github-actions-runner in flake 2022-12-19 16:09:46 +01:00
Jörg Thalheim
d25b67bd69 add some example configuration 2022-12-19 16:08:40 +01:00
Jörg Thalheim
e6fd2f278c expose as a flake 2022-12-08 18:59:07 +01:00