From b37d41881605068cc134d700b59449acd0fb7f9b Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 30 Jun 2021 13:10:54 +0100 Subject: [PATCH] mount tmpfs on /tmp and Downloads --- gAluminum/configuration.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/gAluminum/configuration.nix b/gAluminum/configuration.nix index 242fcd4..5ac188a 100644 --- a/gAluminum/configuration.nix +++ b/gAluminum/configuration.nix @@ -1,11 +1,11 @@ { config, pkgs, ... }: - + { imports = [ ./hardware-configuration.nix ]; nixpkgs.config.allowUnfree = true; networking.hostName = "gAluminum"; - + time.timeZone = "Europe/London"; i18n.defaultLocale = "en_US.UTF-8"; @@ -63,7 +63,7 @@ neovim home-manager ]; - + fonts.fonts = with pkgs; [cascadia-code]; system.stateVersion = "21.05"; # Did you read the comment? @@ -97,5 +97,17 @@ ]; }; }; + + fileSystems."/tmp" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = ["size=2G"]; + }; + + fileSystems."/home/giulio/Downloads" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = ["size=3G"]; + }; }