From 892de67a9f64d0b0cdb023d830a019d8feec0a57 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Wed, 19 Nov 2025 21:02:52 +0100 Subject: Nix fmt --- common.nix | 63 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 27 deletions(-) (limited to 'common.nix') diff --git a/common.nix b/common.nix index fcc7105..f6c036c 100644 --- a/common.nix +++ b/common.nix @@ -1,10 +1,19 @@ -{pkgs, lib, inputs, config,...}: { +{ + pkgs, + lib, + inputs, + config, + ... +}: +{ imports = [ ./modules - ]; - + ]; - nix.settings.experimental-features = ["nix-command" "flakes"]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; nixpkgs = { config = { permittedInsecurePackages = [ @@ -16,9 +25,9 @@ time.timeZone = "Europe/Amsterdam"; # Set timezone sops.defaultSopsFile = ./secrets/secrets.yaml; - sops.age.sshKeyPaths = ["/etc/ssh_host_ed25519_key"]; - sops.age.keyFile = "/var/lib/sops-nix/key.txt"; - sops.age.generateKey = true; + sops.age.sshKeyPaths = [ "/etc/ssh_host_ed25519_key" ]; + sops.age.keyFile = "/var/lib/sops-nix/key.txt"; + sops.age.generateKey = true; systemd.oomd = { enable = true; @@ -26,16 +35,16 @@ enableSystemSlice = true; enableRootSlice = true; extraConfig = { - SwapUsedLimit="50%"; - DefaultMemoryPressureLimit="50%"; - DefaultMemoryPressureDurationSec=20; + SwapUsedLimit = "50%"; + DefaultMemoryPressureLimit = "50%"; + DefaultMemoryPressureDurationSec = 20; }; }; nix.gc = { - automatic = true; - dates = "weekly"; + automatic = true; + dates = "weekly"; options = "--delete-older-than 30d"; }; systemd.services.nix-daemon.serviceConfig = { @@ -46,44 +55,44 @@ environment.systemPackages = with pkgs; [ htop - btop - nmap + btop + nmap dig - ripgrep - unzip + ripgrep + unzip sshfs ranger file - lm_sensors + lm_sensors # Needed for getting credentials age - sops - + sops + bashInteractive coreutils utillinux iproute2 iputils - pciutils + pciutils usbutils vim # TODO: Dev stuff, move later - # This could really make the image smaller + # This could really make the image smaller git pkg-config - cmake - ( hiPrio gcc) + cmake + (hiPrio gcc) gnumake clang rustup ]; - + networking.hosts = { - "0.0.0.0" = ["apresolve.spotify.com"]; + "0.0.0.0" = [ "apresolve.spotify.com" ]; }; - # This option defines the first version of NixOS you have installed on this particular machine, + # This option defines the first version of NixOS you have installed on this particular machine, # DO NOT CHANGE UNLESS USING NIXOS-INSTALL system.stateVersion = "24.11"; # Did you read the comment? -} +} -- cgit v1.3.1