summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-17 15:53:41 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-17 15:53:41 +0100
commit30531facff062d140079e2e354fb6e62b184b5cd (patch)
treed092a864afbc2c18cd401258093c880b0ef0e7b7
parent0df93e912e8644f2a93be0119296dbcb5ae06093 (diff)
downloaduser-config-30531facff062d140079e2e354fb6e62b184b5cd.tar.gz
user-config-30531facff062d140079e2e354fb6e62b184b5cd.zip
Add discard, cleanup /tmp on boot
-rw-r--r--nixos/common.nix1
-rw-r--r--nixos/kusanagi.nix2
-rw-r--r--nixpkgs/kusanagi.nix4
3 files changed, 4 insertions, 3 deletions
diff --git a/nixos/common.nix b/nixos/common.nix
index cfbc160..a840d3b 100644
--- a/nixos/common.nix
+++ b/nixos/common.nix
@@ -2,6 +2,7 @@
{
boot.supportedFilesystems = [ "ntfs" ];
+ boot.cleanTmpDir = true;
networking.networkmanager.enable = true;
diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix
index eea3f9e..236e162 100644
--- a/nixos/kusanagi.nix
+++ b/nixos/kusanagi.nix
@@ -34,6 +34,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/2f606c6b-8009-4158-b367-2e0cf1a57ade";
fsType = "ext4";
+ options = [ "discard" ];
};
fileSystems."/boot" = {
@@ -44,6 +45,7 @@
fileSystems."/home" = {
device = "/dev/disk/by-uuid/f955ce34-f25e-4abf-8732-bcf17465f78c";
fsType = "ext4";
+ options = [ "discard" ];
};
swapDevices =
diff --git a/nixpkgs/kusanagi.nix b/nixpkgs/kusanagi.nix
index 6757886..56d3dc4 100644
--- a/nixpkgs/kusanagi.nix
+++ b/nixpkgs/kusanagi.nix
@@ -1,7 +1,5 @@
{ pkgs, ... }: {
- imports = [
- ./common.nix
- ];
+ imports = [ ./common.nix ];
home.homeDirectory = "/home/lx";
xdg.userDirs.download = "/home/lx/Downloads";