nixos-config/hosts/thanatos/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-13 17:29:54 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
lib,
pkgs,
...
}: let
secrets = config.my.secrets;
in {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko-configuration.nix
./home.nix
./secrets.nix
];
boot.loader.grub.enable = true;
boot.tmp.useTmpfs = true;
networking.hostName = "thanatos"; # Define your hostname.
networking.domain = "lrde.epita.fr";
# Set your time zone.
time.timeZone = "Europe/Paris";
# List services that you want to enable:
my.services = {
2023-12-13 17:43:53 +01:00
tailscale = {
enable = true;
useRoutingFeatures = "both";
};
2023-12-13 17:29:54 +01:00
};
services = {
2024-11-20 11:01:35 +01:00
gitlab-runner = {
enable = true;
settings = {
concurrent = 4;
};
services.default = {
authenticationTokenConfigFile = config.age.secrets."gitlab-runner/thanatos-runner-env".path;
dockerImage = "debian:stable";
};
};
2023-12-13 17:29:54 +01:00
openssh.enable = true;
};
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
docker-compose
];
}