From 42808afe83f299d6c2ffe903b48f5584d57ddf06 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Tue, 1 Apr 2025 16:46:19 +0200 Subject: [PATCH] Start configs for every system --- dev_system.nix | 41 +++++++++++++++++++++++++++ configuration.nix => git_system.nix | 0 runner_system.nix | 44 +++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 dev_system.nix rename configuration.nix => git_system.nix (100%) create mode 100644 runner_system.nix diff --git a/dev_system.nix b/dev_system.nix new file mode 100644 index 0000000..a38bacc --- /dev/null +++ b/dev_system.nix @@ -0,0 +1,41 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +# NixOS-WSL specific options are documented on the NixOS-WSL repository: +# https://github.com/nix-community/NixOS-WSL + +{ config, lib, pkgs, ... }: +let + cfg = config.services.forgejo; + srv = cfg.settings.server; +in +{ + system.stateVersion = "24.11"; + + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + environment.systemPackages = with pkgs; [ + git + ]; + + virtualisation.docker = { + enable = true; + }; + + services = { + endlessh = { + enable = true; + port = 22; + }; + + openssh = { + enable = true; + ports = [ 23 ]; + }; + }; +} \ No newline at end of file diff --git a/configuration.nix b/git_system.nix similarity index 100% rename from configuration.nix rename to git_system.nix diff --git a/runner_system.nix b/runner_system.nix new file mode 100644 index 0000000..3a311dd --- /dev/null +++ b/runner_system.nix @@ -0,0 +1,44 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +# NixOS-WSL specific options are documented on the NixOS-WSL repository: +# https://github.com/nix-community/NixOS-WSL + +{ config, lib, pkgs, ... }: +let + cfg = config.services.forgejo; + srv = cfg.settings.server; +in +{ + system.stateVersion = "24.11"; + + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + environment.systemPackages = with pkgs; [ + git + forgejo-runner + ]; + + virtualisation.docker = { + enable = true; + }; + + services = { + endlessh = { + enable = true; + port = 22; + }; + + openssh = { + enable = true; + ports = [ 23 ]; + }; + + # TODO: forgejo runner + }; +} \ No newline at end of file