summaryrefslogtreecommitdiff
path: root/os/common/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/configuration.nix')
-rw-r--r--os/common/configuration.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/common/configuration.nix b/os/common/configuration.nix
index 16f6c4d..047b153 100644
--- a/os/common/configuration.nix
+++ b/os/common/configuration.nix
@@ -1,4 +1,4 @@
-{ config, ... }: let
+{ config, lib, ... }: let
host = config.networking.hostName;
in {
disabledModules = [
@@ -18,6 +18,11 @@ in {
time.timeZone = "Asia/Kolkata";
networking.useDHCP = false;
+ swapDevices = lib.mkDefault [{
+ device = "/swapfile";
+ size = 2048; # 2GB
+ }];
+
sops = {
defaultSopsFile = ../${host}/secrets.yaml;
age.keyFile = "/var/secrets/${host}.sops";