Sun Aug 21 07:34:26 PM CEST 2022
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
secrets = import ./secrets.nix;
|
||||
in
|
||||
{
|
||||
let secrets = import ./secrets.nix;
|
||||
in {
|
||||
environment.shells = with pkgs; [ bashInteractive zsh ];
|
||||
|
||||
services = {
|
||||
@ -30,22 +28,16 @@ in
|
||||
];
|
||||
};
|
||||
fwupd.enable = true;
|
||||
journald = {
|
||||
extraConfig = "SystemMaxUse=500M";
|
||||
};
|
||||
journald = { extraConfig = "SystemMaxUse=500M"; };
|
||||
};
|
||||
|
||||
networking = {
|
||||
nameservers = [ "127.0.0.1" "::1" ];
|
||||
hosts = {
|
||||
"2.56.97.114" = [ "old-vps" ];
|
||||
"207.180.220.97" = [ "szczepan.ski" ];
|
||||
"10.100.0.1" = [ "vps.wg" ];
|
||||
"10.100.0.2" = [ "desktop.wg" ];
|
||||
"10.100.0.3" = [ "mini.wg" ];
|
||||
"192.168.0.24" = [ "mini.lan" ];
|
||||
"192.168.0.100" = [ "homeserver.lan" ];
|
||||
"192.168.0.150" = [ "desktop.lan" ];
|
||||
};
|
||||
# If using dhcpcd:
|
||||
dhcpcd.extraConfig = "nohook resolv.conf";
|
||||
@ -87,15 +79,13 @@ in
|
||||
|
||||
documentation.enable = false;
|
||||
|
||||
nix.autoOptimiseStore = true;
|
||||
nix.settings = { auto-optimise-store = true; };
|
||||
|
||||
boot = {
|
||||
tmpOnTmpfs = true;
|
||||
kernelParams = [ "quiet" ];
|
||||
consoleLogLevel = 0;
|
||||
kernel.sysctl = {
|
||||
"vm.max_map_count" = 262144;
|
||||
};
|
||||
kernel.sysctl = { "vm.max_map_count" = 262144; };
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
|
@ -8,7 +8,5 @@
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ docker-compose ];
|
||||
}
|
||||
|
Binary file not shown.
@ -6,6 +6,7 @@ in {
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
mutableUsers = false;
|
||||
|
||||
users.alex = {
|
||||
isNormalUser = true;
|
||||
@ -84,41 +85,7 @@ in {
|
||||
serverAliveInterval = 60;
|
||||
forwardAgent = true;
|
||||
|
||||
matchBlocks."old-vps" = {
|
||||
hostname = "2.56.97.114";
|
||||
localForwards = [
|
||||
{
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 8386;
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 8384;
|
||||
}
|
||||
{
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 9092;
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 9091;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
matchBlocks."szczepan.ski" = {
|
||||
hostname = "207.180.220.97";
|
||||
localForwards = [
|
||||
{
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 8387;
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 8384;
|
||||
}
|
||||
{
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 9092;
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 9091;
|
||||
}
|
||||
];
|
||||
};
|
||||
matchBlocks."szczepan.ski" = { hostname = "207.180.220.97"; };
|
||||
|
||||
matchBlocks."nixos-vm" = {
|
||||
hostname = "192.168.122.222";
|
||||
|
Reference in New Issue
Block a user