cleanup config imports

This commit is contained in:
zuckerberg
2022-03-07 23:53:14 -05:00
parent 50ea80ad32
commit 7a08a607e4
6 changed files with 34 additions and 18 deletions

40
common/default.nix Normal file
View File

@@ -0,0 +1,40 @@
{ config, pkgs, ... }:
{
imports = [
./flakes.nix
./pia.nix
./zerotier.nix
./auto-update.nix
./boot
./server
./pc
];
system.stateVersion = "20.09";
networking.useDHCP = false;
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
programs.mosh.enable = true;
environment.systemPackages = with pkgs; [
wget kakoune htop git dnsutils tmux nethogs iotop pciutils usbutils
];
nixpkgs.config.allowUnfree = true;
users.mutableUsers = false;
users.users.googlebot = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = (import ./ssh.nix).users;
hashedPassword = "$6$TuDO46rILr$gkPUuLKZe3psexhs8WFZMpzgEBGksE.c3Tjh1f8sD0KMC4oV89K2pqAABfl.Lpxu2jVdr5bgvR5cWnZRnji/r/";
};
nix.trustedUsers = [ "root" "googlebot" ];
nix.gc.automatic = true;
}