# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { lib, username, ... }: { swapDevices = [{ device = "/swap/swapfile"; size = 16 * 1024; }]; fileSystems = { "/" = { options = lib.mkOptionDefault [ "compress=zstd" ]; }; "/nix" = { options = lib.mkOptionDefault [ "compress=zstd" "noatime" ]; }; "/home" = { options = lib.mkOptionDefault [ "compress=zstd" ]; }; "/swap" = { options = lib.mkOptionDefault [ "compress=no" ]; }; "/tmp" = { device = "tmpfs"; fsType = "tmpfs"; }; # data目录 "/data/cache" = { device = "/dev/mapper/vcache-data"; fsType = "ext4"; }; "/data/arch" = { device = "/dev/mapper/varch-data"; fsType = "ext4"; }; # 用户目录 "/home/${username}/tmp" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "uid=1000" "gid=100" "defaults" "size=16G" "mode=755" ]; }; "/home/${username}/data" = { device = "/dev/disk/by-uuid/c52805e6-7d25-4930-806d-585f303b5572"; fsType = "btrfs"; options = [ "compress=zstd" "subvol=data" ]; }; "/home/${username}/srv" = { device = "/dev/disk/by-uuid/c52805e6-7d25-4930-806d-585f303b5572"; fsType = "btrfs"; options = [ "compress=zstd" "subvol=srv" ]; }; "/home/${username}/priv" = { device = "/dev/disk/by-uuid/c52805e6-7d25-4930-806d-585f303b5572"; fsType = "btrfs"; options = [ "compress=zstd" "subvol=priv" ]; }; # 微信相关 "/home/${username}/.local/WeChat/xwechat_files/zerociqher_516a/temp/ImageUtils" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "uid=1000" "gid=100" "defaults" "size=4G" "mode=755" ]; }; "/home/${username}/.local/WeChat/xwechat_files/zerociqher_516a/temp/InputTemp" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "uid=1000" "gid=100" "defaults" "size=4G" "mode=755" ]; }; }; }