Minor refactors
This commit is contained in:
parent
86a7b8ab79
commit
25f0d8044a
|
@ -19,11 +19,8 @@ with inputs;
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
nixPath = [
|
nixPath = (mapAttrsToList (n: v: "${n}=${v}") inputs) ++ [
|
||||||
"nixpkgs=${nixpkgs}"
|
|
||||||
"nixpkgs-unstable=${nixpkgs-unstable}"
|
|
||||||
"nixpkgs-overlays=${dotFilesDir}/overlays"
|
"nixpkgs-overlays=${dotFilesDir}/overlays"
|
||||||
"home-manager=${home-manager}"
|
|
||||||
"dotfiles=${dotFilesDir}"
|
"dotfiles=${dotFilesDir}"
|
||||||
];
|
];
|
||||||
binaryCaches = [
|
binaryCaches = [
|
||||||
|
@ -45,7 +42,7 @@ with inputs;
|
||||||
## Some reasonable, global defaults
|
## Some reasonable, global defaults
|
||||||
# This is here to appease 'nix flake check' for generic hosts with no
|
# This is here to appease 'nix flake check' for generic hosts with no
|
||||||
# hardware-configuration.nix or fileSystem config.
|
# hardware-configuration.nix or fileSystem config.
|
||||||
fileSystems."/".device = "/dev/disk/by-label/nixos";
|
fileSystems."/".device = mkDefault "/dev/disk/by-label/nixos";
|
||||||
|
|
||||||
# Use the latest kernel
|
# Use the latest kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_5_9;
|
boot.kernelPackages = pkgs.linuxPackages_5_9;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, home-manager, ... }:
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) attrValues;
|
inherit (lib) attrValues;
|
||||||
inherit (lib.my) mapModules mapModulesRec mapHosts;
|
inherit (lib.my) mapModules mapModulesRec mapHosts;
|
||||||
|
|
|
@ -18,15 +18,16 @@ in {
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
log.level = "Info";
|
|
||||||
|
|
||||||
user = "git";
|
user = "git";
|
||||||
database.user = "git";
|
database.user = "git";
|
||||||
useWizard = false;
|
|
||||||
disableRegistration = true;
|
|
||||||
|
|
||||||
|
disableRegistration = true;
|
||||||
# We're assuming SSL-only connectivity
|
# We're assuming SSL-only connectivity
|
||||||
cookieSecure = true;
|
cookieSecure = true;
|
||||||
|
# Only log what's important
|
||||||
|
log.level = "Error";
|
||||||
|
settings.server.DISABLE_ROUTER_LOG = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
user.extraGroups = [ "gitea" ];
|
user.extraGroups = [ "gitea" ];
|
||||||
|
|
Loading…
Reference in a new issue