68 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, lib, fp, ... }:
 | |
| 
 | |
| {
 | |
|   imports = [
 | |
|     (fp /users)
 | |
|     (fp /modules/snakeoil-certs.nix)
 | |
| 
 | |
|     ./networking.nix
 | |
|     ./nix.nix
 | |
| 
 | |
|     ./services/acme.nix
 | |
|     ./services/auto-upgrade.nix
 | |
|     ./services/dbus.nix
 | |
|     ./services/fwupd.nix
 | |
|     ./services/irqbalance.nix
 | |
|     ./services/logrotate.nix
 | |
|     ./services/nginx.nix
 | |
|     ./services/openssh.nix
 | |
|     ./services/postfix.nix
 | |
|     ./services/smartd.nix
 | |
|     ./services/thermald.nix
 | |
|     ./services/userborn.nix
 | |
|     ./services/userdbd.nix
 | |
|   ];
 | |
| 
 | |
|   boot.tmp.cleanOnBoot = lib.mkDefault true;
 | |
|   boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
 | |
| 
 | |
|   time.timeZone = "Europe/Oslo";
 | |
| 
 | |
|   i18n.defaultLocale = "en_US.UTF-8";
 | |
|   console = {
 | |
|     font = "Lat2-Terminus16";
 | |
|     keyMap = "no";
 | |
|   };
 | |
| 
 | |
|   environment.systemPackages = with pkgs; [
 | |
|     file
 | |
|     git
 | |
|     gnupg
 | |
|     htop
 | |
|     nano
 | |
|     ripgrep
 | |
|     rsync
 | |
|     screen
 | |
|     tmux
 | |
|     vim
 | |
|     wget
 | |
| 
 | |
|     kitty.terminfo
 | |
|   ];
 | |
| 
 | |
|   programs.zsh.enable = true;
 | |
| 
 | |
|   security.lockKernelModules = true;
 | |
|   security.protectKernelImage = true;
 | |
|   security.sudo.execWheelOnly = true;
 | |
|   security.sudo.extraConfig = ''
 | |
|     Defaults lecture = never
 | |
|   '';
 | |
| 
 | |
|   users.groups."drift".name = "drift";
 | |
| 
 | |
|   # Trusted users on the nix builder machines
 | |
|   users.groups."nix-builder-users".name = "nix-builder-users";
 | |
| }
 | |
| 
 |