magpie/goatcounter: move to builting nixos module

This commit is contained in:
Asmir A 2024-09-02 22:57:53 +02:00
parent db9139a08c
commit 908c352932
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2
2 changed files with 3 additions and 17 deletions

View File

@ -34,11 +34,6 @@
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";
@ -56,7 +51,6 @@
}; };
outputs = inputs @ { outputs = inputs @ {
goatcounter,
home-manager, home-manager,
nixpkgs, nixpkgs,
nix-xilinx, nix-xilinx,
@ -166,7 +160,6 @@
{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,7 +3,6 @@
pkgs, pkgs,
lib, lib,
project-cloud, project-cloud,
goatcounter,
nvim, nvim,
system, system,
... ...
@ -57,7 +56,6 @@
fzf fzf
fzy fzy
git git
goatcounter.packages.${system}.goatcounter
nvim.packages.${system}.nvim nvim.packages.${system}.nvim
htop-vim htop-vim
nvim nvim
@ -119,14 +117,9 @@
services.goatcounter = { services.goatcounter = {
enable = true; enable = true;
environmentFile = "/var/lib/goatcounter.env"; port = 8002;
extraArgs = ["-listen='*:8002'" "-tls=proxy"]; proxy = true;
database = { address = "127.0.0.1";
backend = "sqlite";
name = "goatcounter";
user = "goatcounter";
automigrate = true;
};
}; };
services.nextcloud = { services.nextcloud = {