rearrange hosts a bit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-03-08 06:50:15 +05:30
parent c8d74d3af8
commit a739d6de6d
8 changed files with 32 additions and 89 deletions

View File

@@ -7,8 +7,7 @@ let
globalArgs globalArgs
]; ];
personalModules = [ ./modules/sound.nix ]; personalModules = [ ./modules/sound.nix ];
serverModules = [ ./modules/server.nix ]; serverModules = [ ./modules/minimal.nix ];
builders = [ ./modules/x86builder.nix ];
in in
{ {
flake.nixosConfigurations = { flake.nixosConfigurations = {
@@ -43,8 +42,7 @@ in
{ nixpkgs.pkgs = self.legacyPackages.${system}; } { nixpkgs.pkgs = self.legacyPackages.${system}; }
] ]
++ commonModules ++ commonModules
++ serverModules ++ serverModules;
++ builders;
}; };
}; };
} }

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, ... }:
{ {
imports = imports =
[ [
@@ -6,7 +6,8 @@
./hardware.nix ./hardware.nix
./boot.nix ./boot.nix
./services.nix ./services.nix
./stuff.nix
]; ];
time.timeZone = "Asia/Kolkata";
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }

View File

@@ -1,6 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
time.timeZone = "Asia/Kolkata";
security = { security = {
sudo.enable = false; sudo.enable = false;
doas = { doas = {
@@ -14,6 +13,18 @@
]; ];
}; };
}; };
environment.systemPackages = with pkgs; [
git
htop
vim
wireguard-tools
rnix-lsp
nmap
gcc
postgresql #for the client cli
];
programs = { programs = {
gnupg = { gnupg = {
agent = { agent = {
@@ -22,11 +33,23 @@
}; };
}; };
}; };
nix = { nix = {
package = pkgs.nixUnstable; package = pkgs.nixUnstable;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
settings.trusted-users = [ "root" ]; 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
'';
}; };
} }

View File

@@ -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";
};
};
};
}

View File

@@ -12,6 +12,7 @@
socketActivation = true; socketActivation = true;
wireplumber.enable = true; wireplumber.enable = true;
# https://nixos.wiki/wiki/PipeWire#Low-latency_setup
config.pipewire = { config.pipewire = {
context.objects = [ context.objects = [
{ {

View File

@@ -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
'';
}

View File

@@ -1,4 +1,4 @@
{ lib, config, ... }: { config, ... }:
{ {
imports = imports =
[ [
@@ -7,8 +7,8 @@
./boot.nix ./boot.nix
./services.nix ./services.nix
./mailserver.nix ./mailserver.nix
./stuff.nix
]; ];
time.timeZone = "Asia/Kolkata";
system.stateVersion = "21.11"; system.stateVersion = "21.11";
} }

View File

@@ -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" ];
};
}