prepare for nixos 23.05

This commit is contained in:
Astro 2023-06-04 23:02:06 +02:00
parent 371d41b69b
commit 8bb6821b87
4 changed files with 9 additions and 16 deletions

View File

@ -6,18 +6,11 @@
(modulesPath + "/virtualisation/lxc-container.nix")
];
boot = {
isContainer = true;
loader = {
initScript.enable = true;
};
};
environment.etc."machine-id".text =
builtins.substring 0 8 (
builtins.hashString "sha256" config.networking.hostName
);
nix = {
settings = {
sandbox = false;

View File

@ -26,7 +26,7 @@ in lib.mkIf (pppoeInterfaces != {}) {
enable = true;
autostart = true;
config = ''
plugin rp-pppoe.so
plugin pppoe.so
nic-${upstream.link}
ifname ${ifName}
# Login settings. (PAP)
@ -39,11 +39,11 @@ in lib.mkIf (pppoeInterfaces != {}) {
maxfail 0
# Seconds between reconnection attempts
holdoff 1
# LCP settings.
lcp-echo-interval 5
lcp-echo-failure 6
# PPPoE compliant settings.
noaccomp
default-asyncmap

View File

@ -7,9 +7,9 @@
# Prevents automatic creation of interface bond0 by the kernel
"bonding.max_bonds=0"
];
boot.tmpOnTmpfs = true;
boot.tmp.useTmpfs = true;
# Includes wireguard
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.zfsUnstable.latestCompatibleLinuxPackages;
# Keep building
boot.zfs.enableUnstable = true;
@ -35,8 +35,8 @@
};
documentation = {
enable = false;
nixos.enable = false;
enable = lib.mkForce false;
nixos.enable = lib.mkForce false;
};
environment.systemPackages = with pkgs; [

View File

@ -18,7 +18,7 @@
services.openssh = {
enable = true;
permitRootLogin = "prohibit-password";
settings.PermitRootLogin = "prohibit-password";
};
# additional config for bare metal