Minor refactors

This commit is contained in:
Henrik Lissner 2020-12-31 19:34:11 -05:00
parent 86a7b8ab79
commit 25f0d8044a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 7 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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" ];