summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix63
1 files changed, 36 insertions, 27 deletions
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?
-}
+}