From a6d13025b22c949342a6dc619e7d0cfe5ddb9dcc Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 7 Nov 2021 23:03:10 +0700 Subject: Force btrfs compression --- nix/awesome.nix | 1 - nix/configuration.nix | 8 ++++++-- nix/hardware-configuration.nix | 10 +++++----- 3 files changed, 11 insertions(+), 8 deletions(-) (limited to 'nix') diff --git a/nix/awesome.nix b/nix/awesome.nix index 51c0ccc..d1f4f2a 100644 --- a/nix/awesome.nix +++ b/nix/awesome.nix @@ -44,5 +44,4 @@ hardware.brillo.enable = true; programs.nm-applet.enable = true; programs.slock.enable = true; - # programs.udevil.enable = true; } diff --git a/nix/configuration.nix b/nix/configuration.nix index bc0d12c..afe9feb 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -64,11 +64,15 @@ }; environment.systemPackages = with pkgs; [ - htop inotify-tools isync killall oathToolkit rsync stow tor unzip w3m wget - mpv pavucontrol sent vimiv-qt yacreader youtube-dl + compsize htop inotify-tools killall rsync unzip + oathToolkit isync stow tor w3m wget youtube-dl + mpv pavucontrol sent vimiv-qt yacreader ffmpeg gifski gimp imagemagick inkscape pdftk simplescreenrecorder sox ]; + programs.iotop.enable = true; + programs.udevil.enable = true; + security.rtkit.enable = true; # List services that you want to enable: services = { diff --git a/nix/hardware-configuration.nix b/nix/hardware-configuration.nix index 63c0801..5af5d36 100644 --- a/nix/hardware-configuration.nix +++ b/nix/hardware-configuration.nix @@ -33,31 +33,31 @@ "/nix" = { device = "/dev/disk/by-uuid/c334d115-eda9-4470-8c28-b01c4628865b"; fsType = "btrfs"; - options = [ "subvol=nix" "compress=zstd" "noatime" ]; + options = [ "subvol=nix" "compress-force=zstd" "noatime" ]; }; "/etc" = { device = "/dev/disk/by-uuid/c334d115-eda9-4470-8c28-b01c4628865b"; fsType = "btrfs"; - options = [ "subvol=etc" "compress=zstd" "noatime" ]; + options = [ "subvol=etc" "compress-force=zstd" "noatime" ]; }; "/root" = { device = "/dev/disk/by-uuid/c334d115-eda9-4470-8c28-b01c4628865b"; fsType = "btrfs"; - options = [ "subvol=root" "compress=zstd" "noatime" ]; + options = [ "subvol=root" "compress-force=zstd" "noatime" ]; }; "/home" = { device = "/dev/disk/by-uuid/c334d115-eda9-4470-8c28-b01c4628865b"; fsType = "btrfs"; - options = [ "subvol=home" "compress=zstd" ]; + options = [ "subvol=home" "compress-force=zstd" ]; }; "/var/log" = { device = "/dev/disk/by-uuid/c334d115-eda9-4470-8c28-b01c4628865b"; fsType = "btrfs"; - options = [ "subvol=log" "compress=zstd" ]; + options = [ "subvol=log" "compress-force=zstd" ]; neededForBoot = true; }; }; -- cgit 1.4.1