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