Compare commits
	
		
			No commits in common. "5e9b7b77327fc1af9969da8d09ff1027fac9608c" and "820adcfa3117a5c40e8cd09558440beef6394485" have entirely different histories.
		
	
	
		
			5e9b7b7732
			...
			820adcfa31
		
	
		
					 3 changed files with 3 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -39,9 +39,6 @@ let
 | 
			
		|||
    disko.nixosModules.disko
 | 
			
		||||
    srvos.nixosModules.server
 | 
			
		||||
 | 
			
		||||
    srvos.nixosModules.mixins-trusted-nix-caches
 | 
			
		||||
    srvos.nixosModules.mixins-terminfo
 | 
			
		||||
 | 
			
		||||
    # srvos.nixosModules.mixins-telegraf
 | 
			
		||||
    # srvos.nixosModules.mixins-terminfo
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -77,10 +74,6 @@ let
 | 
			
		|||
        nur.flake = nur;
 | 
			
		||||
      };
 | 
			
		||||
      time.timeZone = "UTC";
 | 
			
		||||
 | 
			
		||||
      environment.systemPackages = [
 | 
			
		||||
        pkgs.kitty.terminfo
 | 
			
		||||
      ];
 | 
			
		||||
    })
 | 
			
		||||
  ];
 | 
			
		||||
in
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,19 +24,11 @@ in
 | 
			
		|||
 | 
			
		||||
  config = {
 | 
			
		||||
    warnings = lib.optionals (config.simd.arch == null) [ "Please set simd.arch for ${config.networking.hostName}" ];
 | 
			
		||||
    # Allow more open files for non-root users to run NixOS VM tests.
 | 
			
		||||
    security.pam.loginLimits = [
 | 
			
		||||
      { domain = "*"; item = "nofile"; type = "-"; value = "20480"; }
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    nix = {
 | 
			
		||||
      # Garbage-collect often
 | 
			
		||||
      gc.automatic = true;
 | 
			
		||||
      gc.dates = "*:45";
 | 
			
		||||
      gc.options = ''--max-freed "$((128 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
 | 
			
		||||
 | 
			
		||||
      # Randomize GC to avoid thundering herd effects.
 | 
			
		||||
      gc.randomizedDelaySec = "1800";
 | 
			
		||||
      gc.dates = "03:15";
 | 
			
		||||
      gc.options = "--delete-older-than 30d";
 | 
			
		||||
 | 
			
		||||
      # 2.11, 2.12 suffers from a bug with remote builders…
 | 
			
		||||
      package = pkgs.nixVersions.nix_2_13;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,13 +4,5 @@
 | 
			
		|||
  programs.zsh.enableGlobalCompInit = false;
 | 
			
		||||
  programs.zsh.interactiveShellInit = ''
 | 
			
		||||
    source ${pkgs.zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh
 | 
			
		||||
    '';
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    autosuggestions.enable = true;
 | 
			
		||||
    promptInit = ''
 | 
			
		||||
      source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  users.defaultUserShell = pkgs.zsh;
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue