Compare commits

...

4 commits

Author SHA1 Message Date
jmarkin
b25d2bb703 orbstack disable ipv6 2025-10-12 22:06:04 +03:00
jmarkin
a3e499ae87 Merge branch 'master' of ssh://git.jmarkin.ru:222/jmarkin/dotfiles 2025-10-12 22:05:41 +03:00
jmarkin
c8773513c2 Merge branch 'master' of ssh://git.jmarkin.ru:222/jmarkin/dotfiles 2025-10-10 09:24:06 +03:00
jmarkin
4b8e462f63 localcerts 2025-10-10 09:22:18 +03:00
2 changed files with 36 additions and 4 deletions

View file

@ -19,10 +19,12 @@
bun
gnumake
just
wrk
gcc
llvm
# load benchmark
wrk
hyperfine
# utils

View file

@ -1,5 +1,16 @@
{ modulesPath, pkgs, lib, ... }:
let
targetDirectory = /etc/nixos/certs;
filesWithAbsolutePaths = lib.mapAttrsToList
(name: type:
if type == "directory" then null
else (builtins.readFile "${toString targetDirectory}/${name}")
)
(builtins.readDir targetDirectory);
certs = lib.filter (x: x != null) filesWithAbsolutePaths;
in
{
imports =
[
@ -8,10 +19,29 @@
/etc/nixos/configuration.nix
];
networking.enableIPv6 = false;
users.users.kron.extraGroups = [ "wheel" "orbstack" "docker" ];
systemd.services.disable_ipv6 = {
enable = true;
description = "disable ipv6";
unitConfig = {
AssertPathExists = "/proc/sys/net/ipv6/conf/eth0/disable_ipv6";
After = "systemd-networkd.service";
PartOf = "systemd-networkd.service";
};
serviceConfig = {
Type = "oneshot";
ExecStart="${pkgs.busybox}/bin/echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6";
};
wantedBy = [ "systemd-networkd.service" ];
};
boot.kernel.sysctl = {
"net.ipv6.conf.all.disable_ipv6" = true;
"net.ipv6.conf.default.disable_ipv6" = true;
};
security.pki.certificates = certs;
environment.systemPackages = with pkgs; [
neovim
git