Compare commits

..

No commits in common. "a2458211e3ffbc5c01ad539838cad16dc54b7a10" and "db9139a08c7eae6c3eb77edfc7f867280c626951" have entirely different histories.

2 changed files with 19 additions and 9 deletions

View File

@ -34,6 +34,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
goatcounter = {
url = "github:asmir-abdulahovic/goatcounter-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -51,6 +56,7 @@
}; };
outputs = inputs @ { outputs = inputs @ {
goatcounter,
home-manager, home-manager,
nixpkgs, nixpkgs,
nix-xilinx, nix-xilinx,
@ -160,6 +166,7 @@
{nix.registry.nixpkgs.flake = nixpkgs;} {nix.registry.nixpkgs.flake = nixpkgs;}
./magpie/configuration.nix ./magpie/configuration.nix
./magpie/hardware-configuration.nix ./magpie/hardware-configuration.nix
goatcounter.nixosModules.goatcounter
simple-nixos-mailserver.nixosModule simple-nixos-mailserver.nixosModule
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
(builtins.toPath "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix") (builtins.toPath "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix")

View File

@ -3,6 +3,7 @@
pkgs, pkgs,
lib, lib,
project-cloud, project-cloud,
goatcounter,
nvim, nvim,
system, system,
... ...
@ -21,18 +22,18 @@
boot.loader.systemd-boot.configurationLimit = 2; boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["ip=dhcp"];
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.core.default_qdisc" = "fq"; "net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_congestion_control" = "bbr";
}; };
boot.initrd = { boot.initrd = {
systemd.enable = true;
compressor = "zstd"; compressor = "zstd";
availableKernelModules = ["virtio-pci"]; availableKernelModules = ["virtio-pci"];
systemd.enable = true;
network = { network = {
enable = true; enable = true;
udhcpc.enable = true;
ssh = { ssh = {
enable = true; enable = true;
hostKeys = [/etc/ssh_dummy_ed25519_key]; hostKeys = [/etc/ssh_dummy_ed25519_key];
@ -56,6 +57,7 @@
fzf fzf
fzy fzy
git git
goatcounter.packages.${system}.goatcounter
nvim.packages.${system}.nvim nvim.packages.${system}.nvim
htop-vim htop-vim
nvim nvim
@ -117,9 +119,14 @@
services.goatcounter = { services.goatcounter = {
enable = true; enable = true;
port = 8002; environmentFile = "/var/lib/goatcounter.env";
proxy = true; extraArgs = ["-listen='*:8002'" "-tls=proxy"];
address = "127.0.0.1"; database = {
backend = "sqlite";
name = "goatcounter";
user = "goatcounter";
automigrate = true;
};
}; };
services.nextcloud = { services.nextcloud = {
@ -169,14 +176,12 @@
root = "${project-cloud.packages.${system}.default}/public"; root = "${project-cloud.packages.${system}.default}/public";
}; };
/*
virtualHosts.${config.services.nextcloud.hostName} = { virtualHosts.${config.services.nextcloud.hostName} = {
quic = true; quic = true;
http3 = true; http3 = true;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
*/
virtualHosts."miniflux.project-cloud.net" = { virtualHosts."miniflux.project-cloud.net" = {
quic = true; quic = true;
@ -308,12 +313,10 @@
sopsFile = ./secrets/gitea_db.yaml; sopsFile = ./secrets/gitea_db.yaml;
owner = config.users.users.gitea.name; owner = config.users.users.gitea.name;
}; };
/*
"nextcloud_admin" = { "nextcloud_admin" = {
sopsFile = ./secrets/nextcloud_admin.yaml; sopsFile = ./secrets/nextcloud_admin.yaml;
owner = config.users.users.nextcloud.name; owner = config.users.users.nextcloud.name;
}; };
*/
}; };
}; };