snix/users/grfn/system/system/modules/common.nix
Vincent Ambo b75dd136cb refactor(grfn): Stop importing nixpkgs a bunch of times
Once is enough!

<grfn> https://tazj.in/blobs/touch-garbage.jpg

Change-Id: I68f66669e82d35a71752638450fa4b820e137172
Signed-Off-By: Florian Klink <flokli@flokli.de>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3048
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
2021-04-20 10:43:19 +00:00

76 lines
1.3 KiB
Nix

{ config, lib, pkgs, ... }:
let
depot = import ../../../../.. {};
in
with lib;
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.useDHCP = false;
networking.networkmanager.enable = true;
i18n = {
defaultLocale = "en_US.UTF-8";
};
time.timeZone = lib.mkDefault "America/New_York";
environment.systemPackages = with pkgs; [
wget
vim
zsh
git
w3m
libnotify
file
lm_sensors
dnsutils
depot.users.grfn.system.system.rebuilder
htop
];
services.openssh.enable = true;
programs.ssh.startAgent = true;
networking.firewall.enable = mkDefault false;
users.mutableUsers = true;
programs.zsh.enable = true;
environment.pathsToLink = [ "/share/zsh" ];
users.users.grfn = {
isNormalUser = true;
initialPassword = "password";
extraGroups = [
"wheel"
"networkmanager"
"audio"
"docker"
];
shell = pkgs.zsh;
};
nix = {
trustedUsers = [ "grfn" ];
autoOptimiseStore = true;
distributedBuilds = true;
gc = {
automatic = true;
dates = mkDefault "weekly";
options = "--delete-older-than 30d";
};
};
services.udev.packages = with pkgs; [
yubikey-personalization
];
services.pcscd.enable = true;
}