rearrange hosts a bit
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -7,8 +7,7 @@ let
 | 
			
		||||
    globalArgs
 | 
			
		||||
  ];
 | 
			
		||||
  personalModules = [ ./modules/sound.nix ];
 | 
			
		||||
  serverModules = [ ./modules/server.nix ];
 | 
			
		||||
  builders = [ ./modules/x86builder.nix ];
 | 
			
		||||
  serverModules = [ ./modules/minimal.nix ];
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  flake.nixosConfigurations = {
 | 
			
		||||
@@ -43,8 +42,7 @@ in
 | 
			
		||||
        { nixpkgs.pkgs = self.legacyPackages.${system}; }
 | 
			
		||||
      ]
 | 
			
		||||
      ++ commonModules
 | 
			
		||||
      ++ serverModules
 | 
			
		||||
      ++ builders;
 | 
			
		||||
      ++ serverModules;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
{ config, pkgs, ... }:
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports =
 | 
			
		||||
    [
 | 
			
		||||
@@ -6,7 +6,8 @@
 | 
			
		||||
      ./hardware.nix
 | 
			
		||||
      ./boot.nix
 | 
			
		||||
      ./services.nix
 | 
			
		||||
      ./stuff.nix
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
  time.timeZone = "Asia/Kolkata";
 | 
			
		||||
  system.stateVersion = "21.05";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{ config, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  time.timeZone = "Asia/Kolkata";
 | 
			
		||||
  security = {
 | 
			
		||||
    sudo.enable = false;
 | 
			
		||||
    doas = {
 | 
			
		||||
@@ -14,6 +13,18 @@
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    git
 | 
			
		||||
    htop
 | 
			
		||||
    vim
 | 
			
		||||
    wireguard-tools
 | 
			
		||||
    rnix-lsp
 | 
			
		||||
    nmap
 | 
			
		||||
    gcc
 | 
			
		||||
    postgresql #for the client cli
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
    gnupg = {
 | 
			
		||||
      agent = {
 | 
			
		||||
@@ -22,11 +33,23 @@
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  nix = {
 | 
			
		||||
    package = pkgs.nixUnstable;
 | 
			
		||||
    extraOptions = ''
 | 
			
		||||
      experimental-features = nix-command flakes
 | 
			
		||||
    '';
 | 
			
		||||
    settings.trusted-users = [ "root" ];
 | 
			
		||||
    buildMachines = [{
 | 
			
		||||
      hostName = "satori";
 | 
			
		||||
      systems = [ "x86_64-linux" "aarch64-linux" ];
 | 
			
		||||
      maxJobs = 4;
 | 
			
		||||
      speedFactor = 2;
 | 
			
		||||
      supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
 | 
			
		||||
    }];
 | 
			
		||||
    distributedBuilds = true;
 | 
			
		||||
    extraOptions = ''
 | 
			
		||||
      builders-use-substitutes = true
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -1,34 +0,0 @@
 | 
			
		||||
{ config, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    git
 | 
			
		||||
    htop
 | 
			
		||||
    vim
 | 
			
		||||
    wireguard-tools
 | 
			
		||||
    rnix-lsp
 | 
			
		||||
    nmap
 | 
			
		||||
    gcc
 | 
			
		||||
    postgresql #for the client cli
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
    zsh = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      promptInit = "PROMPT='%B%F{cyan}%~ %F{blue}>%f%b '\nRPROMPT='%B%F{cyan}%n%f@%F{red}%m%b'";
 | 
			
		||||
      histSize = 12000;
 | 
			
		||||
      enableCompletion = true;
 | 
			
		||||
      syntaxHighlighting.enable = true;
 | 
			
		||||
      autosuggestions = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        highlightStyle = "fg=yellow,bold";
 | 
			
		||||
      };
 | 
			
		||||
      ohMyZsh.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
    gnupg = {
 | 
			
		||||
      agent = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        pinentryFlavor = "curses";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -12,6 +12,7 @@
 | 
			
		||||
      socketActivation = true;
 | 
			
		||||
      wireplumber.enable = true;
 | 
			
		||||
 | 
			
		||||
      # https://nixos.wiki/wiki/PipeWire#Low-latency_setup
 | 
			
		||||
      config.pipewire = {
 | 
			
		||||
        context.objects = [
 | 
			
		||||
          {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +0,0 @@
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  nix.buildMachines = [{
 | 
			
		||||
    hostName = "satori";
 | 
			
		||||
    systems = [ "x86_64-linux" "aarch64-linux" ];
 | 
			
		||||
    maxJobs = 4;
 | 
			
		||||
    speedFactor = 2;
 | 
			
		||||
    supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
 | 
			
		||||
  }];
 | 
			
		||||
  nix.distributedBuilds = true;
 | 
			
		||||
  nix.extraOptions = ''
 | 
			
		||||
    builders-use-substitutes = true
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
{ lib, config, ... }:
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports =
 | 
			
		||||
    [
 | 
			
		||||
@@ -7,8 +7,8 @@
 | 
			
		||||
      ./boot.nix
 | 
			
		||||
      ./services.nix
 | 
			
		||||
      ./mailserver.nix
 | 
			
		||||
      ./stuff.nix
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
  time.timeZone = "Asia/Kolkata";
 | 
			
		||||
  system.stateVersion = "21.11";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,32 +0,0 @@
 | 
			
		||||
{ config, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  time.timeZone = "Asia/Kolkata";
 | 
			
		||||
  security = {
 | 
			
		||||
    sudo.enable = false;
 | 
			
		||||
    doas = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      extraRules = [
 | 
			
		||||
        {
 | 
			
		||||
          users = [ ];
 | 
			
		||||
          keepEnv = true;
 | 
			
		||||
          persist = true;
 | 
			
		||||
        }
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  programs = {
 | 
			
		||||
    gnupg = {
 | 
			
		||||
      agent = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        pinentryFlavor = "curses";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  nix = {
 | 
			
		||||
    package = pkgs.nixUnstable;
 | 
			
		||||
    extraOptions = ''
 | 
			
		||||
      experimental-features = nix-command flakes
 | 
			
		||||
    '';
 | 
			
		||||
    settings.trusted-users = [ "root" ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user