From 1e0eca0bcbfc338a585842c65c4b48d62d79728d Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 26 Oct 2024 17:44:36 +0200 Subject: Glued together corsac configuration Signed-off-by: Mel --- modules/common.nix | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 modules/common.nix (limited to 'modules/common.nix') diff --git a/modules/common.nix b/modules/common.nix new file mode 100644 index 0000000..f035db5 --- /dev/null +++ b/modules/common.nix @@ -0,0 +1,74 @@ +{ me, config, lib, pkgs, ... }: + +{ + imports = [ + ./nix.nix + ./user.nix + ./locale.nix + ./nix-ld.nix + ]; + + boot.kernelPackages = pkgs.linuxPackages_latest; + + networking.hostName = me; + + services.envfs.enable = true; + virtualisation.libvirtd.enable = true; + + services = { + openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; + }; + }; + tailscale = { + enable = true; + useRoutingFeatures = "both"; + extraUpFlags = [ "--ssh" ]; + }; + + # sometimes needed for gnupg + pcscd.enable = true; + }; + + programs = { + vim = { + defaultEditor = true; + package = pkgs.vim_configurable.customize { + vimrcFile = ../configs/.vimrc; + }; + }; + fish.enable = true; + git.enable = true; + tmux.enable = true; + + gnupg.agent = { + enable = true; + enableSSHSupport = true; + pinentryPackage = pkgs.pinentry-curses; + }; + }; + + environment.systemPackages = (with pkgs; [ + file unzip jq dig htop glances wget gnupg pinentry-curses + inetutils pciutils lshw inxi iw + tcpdump + ffmpeg_7-headless + qemu_full virtiofsd + + openvpn openvpn3 update-resolv-conf + + ripgrep gnumake gdb gcc clang + go gopls delve go-task + meson cmake + nil direnv + + wineWowPackages.stagingFull + borgbackup + ]); + + environment.etc.openvpn.source = "${pkgs.update-resolv-conf}/libexec/openvpn"; +} -- cgit 1.4.1