Regenerated
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
sysname = "zed";
|
||||
assetPath = "${flakeRoot}/generated/.config/${sysName}";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.zed-editor ];
|
||||
|
||||
environment.sessionVariables = {
|
||||
EDITOR = "zeditor";
|
||||
VISUAL = "zeditor";
|
||||
};
|
||||
|
||||
xdg.mime.defaultApplications = {
|
||||
"text/plain" = "dev.zed.Zed.desktop";
|
||||
"text/x-lua" = "dev.zed.Zed.desktop";
|
||||
"text/x-sql" = "dev.zed.Zed.desktop";
|
||||
"text/x-org" = "dev.zed.Zed.desktop";
|
||||
"text/x-script.python" = "dev.zed.Zed.desktop";
|
||||
"text/x-shellscript" = "dev.zed.Zed.desktop";
|
||||
"text/x-csrc" = "dev.zed.Zed.desktop";
|
||||
"text/x-chdr" = "dev.zed.Zed.desktop";
|
||||
"text/x-rust" = "dev.zed.Zed.desktop";
|
||||
"text/x-toml" = "dev.zed.Zed.desktop";
|
||||
"text/x-yaml" = "dev.zed.Zed.desktop";
|
||||
"text/x-json" = "dev.zed.Zed.desktop";
|
||||
"application/json" = "dev.zed.Zed.desktop";
|
||||
"text/markdown" = "dev.zed.Zed.desktop";
|
||||
"text/x-nix" = "dev.zed.Zed.desktop";
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
home.activation.MakeZedMutable = {
|
||||
after = [ "writeBoundary" ];
|
||||
before = [];
|
||||
data = ''
|
||||
rm -rf $HOME/.config/${sysName}
|
||||
mkdir -p $HOME/.config/${sysName}
|
||||
cp -r ${assetPath}/* $HOME/.config/${sysName}/
|
||||
chmod -R u+w $HOME/.config/${sysName}/
|
||||
find $HOME/.config/${sysName}/ -name "*.sh" -exec chmod +x {} \;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user