Moved hosts/common to modules. Updated CI effects.

This commit is contained in:
Nikodem Rabuliński 2023-09-17 12:08:24 +02:00
parent fb0c1a4451
commit 96fb8b568f
No known key found for this signature in database
GPG key ID: FF629AA9E08138DB
6 changed files with 17 additions and 4 deletions

View file

@ -3,16 +3,17 @@
雪定<rp>(</rp><rt>せってい</rt><rp>)</rp> 雪定<rp>(</rp><rt>せってい</rt><rp>)</rp>
</ruby> </ruby>
</h1> </h1>
Collection of my personal Nix configurations and opinionated NixOS, nix-darwin, home-manager, and flake-parts modules.
## Project structure ## Project structure
- hosts - per-machine configurations - hosts - per-machine configurations
- common - common options between my machines which aren't reusable by others
- kazuki - my linux arm server - kazuki - my linux arm server
- legion - my linux x86 server[^1] - legion - my linux x86 server[^1]
- hijiri - my macbook[^1] - hijiri - my macbook[^1]
- hijiri-vm - linux vm running on my macbook - hijiri-vm - linux vm running on my macbook
- miyagi - my work machine[^1] - miyagi - my work machine[^1]
- modules - options which in principle should be reusable by others - modules - options which in principle should be reusable by others
- */common - common options between my machines which aren't meant to be reusable by others
- nixos - nixos
- settei - my opinionated nixos options - settei - my opinionated nixos options
- flake - flake-parts modules - flake - flake-parts modules

View file

@ -1,9 +1,16 @@
{ {
defaultEffectSystem = "aarch64-linux"; defaultEffectSystem = "aarch64-linux";
hercules-ci = { hercules-ci = {
flake-update = { flake-update = {
enable = true; enable = true;
when.dayOfWeek = null; when.dayOfWeek = "Mon";
};
};
herculesCI = {
onPush = {
default.enable = true;
}; };
}; };
} }

View file

@ -45,7 +45,7 @@
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.hercules-ci-agent.nixosModules.agent-service inputs.hercules-ci-agent.nixosModules.agent-service
self.nixosModules.settei self.nixosModules.settei
./common self.nixosModules.common
defaultOptions defaultOptions
module module
]; ];

View file

@ -4,6 +4,8 @@
lib, lib,
... ...
}: { }: {
_file = ./hercules.nix;
options.common.hercules.enable = lib.mkEnableOption "Enables hercules-ci-agent with my configuration"; options.common.hercules.enable = lib.mkEnableOption "Enables hercules-ci-agent with my configuration";
config = lib.mkIf config.common.hercules.enable { config = lib.mkIf config.common.hercules.enable {

View file

@ -1,3 +1,6 @@
{config, ...}: { {config, ...}: {
flake.nixosModules.settei = import ./settei {inherit (config) perInput;}; flake.nixosModules = {
settei = import ./settei {inherit (config) perInput;};
common = ./common;
};
} }