impermanence: enable hyphenated folder names

This commit is contained in:
colin 2022-12-29 18:29:27 +00:00
parent 1a96859994
commit d3ff68217e
3 changed files with 5 additions and 14 deletions

View File

@ -2,8 +2,7 @@
lib.mkIf config.sane.home-manager.enable
{
# TODO(impermanence): re-enable!
# sane.impermanence.home-dirs = [ ".cache/vim-swap" ];
sane.impermanence.home-dirs = [ ".cache/vim-swap" ];
home-manager.users.colin.programs.neovim = {
# neovim: https://github.com/neovim/neovim

View File

@ -2,7 +2,7 @@
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
# https://github.com/nix-community/impermanence
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, utils, ... }:
with lib;
let
@ -41,13 +41,7 @@ let
};
# turn a path into a name suitable for systemd
cleanName = path: let
dashes = builtins.replaceStrings ["/"] ["-"] path;
startswith = builtins.substring 0 1 dashes;
in if startswith == "-"
then substring 1 255 dashes
else dashes
;
cleanName = utils.escapeSystemdPath;
# split the string path into a list of string components.
# root directory "/" becomes the empty list [].

View File

@ -120,8 +120,7 @@ let
networkmanagerapplet
# not strictly necessary, but allows caching articles; offline use, etc.
# TODO(impermanence): re-enable!
# { pkg = newsflash; dir = [ ".local/share/news-flash" ]; }
{ pkg = newsflash; dir = [ ".local/share/news-flash" ]; }
{ pkg = nheko; private = [
".config/nheko" # config file (including client token)
@ -144,8 +143,7 @@ let
# config (e.g. server connection details) is persisted in ~/.config/sublime-music/config.json
# possible to pass config as a CLI arg (sublime-music -c config.json)
# { pkg = sublime-music; dir = [ ".local/share/sublime-music" ]; }
# TODO(impermanence): re-enable!
# { pkg = sublime-music-mobile; dir = [ ".local/share/sublime-music" ]; }
{ pkg = sublime-music-mobile; dir = [ ".local/share/sublime-music" ]; }
tdesktop # broken on phosh
{ pkg = tokodon; private = [ ".cache/KDE/tokodon" ]; }