This commit is contained in:
2025-12-06 20:21:06 +00:00
parent 5bb19d7643
commit 438e239fff
7 changed files with 49 additions and 222 deletions

View File

@@ -1,43 +0,0 @@
{
modulesPath,
hostname,
inputs,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./disk-config.nix
./hardware-configuration.nix
../../modules/nixos
inputs.disko.nixosModules.disko
inputs.tangled.nixosModules.knot
];
services.tangled.knot = {
enable = true;
server = {
hostname = "knot.schmatzler.com";
owner = "did:plc:yiapylv5gwzlyzesppjmukvj";
};
};
systemd.services.knot = {
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
};
networking.firewall.allowedTCPPorts = [ 5555 ];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = false;
};
};
networking.hostName = hostname;
}

View File

@@ -1,37 +0,0 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View File

@@ -1,18 +0,0 @@
{
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
networking.useDHCP = lib.mkDefault true;
}

View File

@@ -96,6 +96,16 @@
};
};
services.gitea = {
enable = true;
settings = {
server = {
DOMAIN = "git.tahani";
HTTP_PORT = 8380;
};
};
};
home-manager.users.${user} = {
programs.git.settings.user.email = "christoph@schmatzler.com";
};