init: macmini nixos configuration.
This commit is contained in:
38
modules/services/ddns-go.nix
Normal file
38
modules/services/ddns-go.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ddns-go
|
||||
];
|
||||
|
||||
systemd.services.ddns-go = {
|
||||
description = "DDNS-Go";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ddns-go}/bin/ddns-go -l [::]:9876 -f 300";
|
||||
Restart = "always";
|
||||
RestartSec = 3;
|
||||
User = "ddns-go";
|
||||
Group = "ddns-go";
|
||||
|
||||
StateDirectory = "ddns-go";
|
||||
Environment = "HOME=/var/lib/ddns-go";
|
||||
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "strict";
|
||||
ReadWritePaths = "/var/lib/ddns-go";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.ddns-go = {
|
||||
isSystemUser = true;
|
||||
group = "ddns-go";
|
||||
home = "/var/lib/ddns-go";
|
||||
createHome = true;
|
||||
};
|
||||
users.groups.ddns-go = { };
|
||||
}
|
||||
38
modules/services/gitea.nix
Normal file
38
modules/services/gitea.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.catppuccin.nixosModules.catppuccin
|
||||
];
|
||||
|
||||
# Catppuccin Mocha Style
|
||||
|
||||
catppuccin.gitea = {
|
||||
enable = true;
|
||||
accent = "sky";
|
||||
flavor = "mocha";
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
user = "git";
|
||||
group = "git";
|
||||
|
||||
stateDir = "/var/lib/gitea";
|
||||
|
||||
database = {
|
||||
type = "sqlite3";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
users.groups.git = { };
|
||||
|
||||
users.users.git = {
|
||||
isNormalUser = true;
|
||||
home = "/var/lib/gitea";
|
||||
extraGroups = [ "git" ];
|
||||
packages = with pkgs; [
|
||||
gitea
|
||||
];
|
||||
};
|
||||
}
|
||||
3
modules/services/nignx.nix
Normal file
3
modules/services/nignx.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ ... }:
|
||||
|
||||
{ }
|
||||
4
modules/services/qqbot.nix
Normal file
4
modules/services/qqbot.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user