impermanence: enable hyphenated folder names
This commit is contained in:
@@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
lib.mkIf config.sane.home-manager.enable
|
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 = {
|
home-manager.users.colin.programs.neovim = {
|
||||||
# neovim: https://github.com/neovim/neovim
|
# neovim: https://github.com/neovim/neovim
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
|
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
|
||||||
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
|
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
|
||||||
# https://github.com/nix-community/impermanence
|
# https://github.com/nix-community/impermanence
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, utils, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
@@ -41,13 +41,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
# turn a path into a name suitable for systemd
|
# turn a path into a name suitable for systemd
|
||||||
cleanName = path: let
|
cleanName = utils.escapeSystemdPath;
|
||||||
dashes = builtins.replaceStrings ["/"] ["-"] path;
|
|
||||||
startswith = builtins.substring 0 1 dashes;
|
|
||||||
in if startswith == "-"
|
|
||||||
then substring 1 255 dashes
|
|
||||||
else dashes
|
|
||||||
;
|
|
||||||
|
|
||||||
# split the string path into a list of string components.
|
# split the string path into a list of string components.
|
||||||
# root directory "/" becomes the empty list [].
|
# root directory "/" becomes the empty list [].
|
||||||
|
@@ -120,8 +120,7 @@ let
|
|||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
|
|
||||||
# not strictly necessary, but allows caching articles; offline use, etc.
|
# 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 = [
|
{ pkg = nheko; private = [
|
||||||
".config/nheko" # config file (including client token)
|
".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
|
# 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)
|
# possible to pass config as a CLI arg (sublime-music -c config.json)
|
||||||
# { pkg = sublime-music; dir = [ ".local/share/sublime-music" ]; }
|
# { 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
|
tdesktop # broken on phosh
|
||||||
|
|
||||||
{ pkg = tokodon; private = [ ".cache/KDE/tokodon" ]; }
|
{ pkg = tokodon; private = [ ".cache/KDE/tokodon" ]; }
|
||||||
|
Reference in New Issue
Block a user