refactor(infinidoge): move common elements to core/global
This commit is contained in:
parent
8b18fc1013
commit
6997ef919f
2 changed files with 20 additions and 26 deletions
|
@ -20,8 +20,14 @@ with lib.hlissner;
|
|||
cleanTmpDir = mkDefault (!config.boot.tmpOnTmpfs);
|
||||
};
|
||||
|
||||
# Allow non-root users to allow other users to access mount point
|
||||
programs.fuse.userAllowOther = mkDefault true;
|
||||
|
||||
programs = {
|
||||
# Allow non-root users to allow other users to access mount point
|
||||
fuse.userAllowOther = mkDefault true;
|
||||
|
||||
# Enable dconf for programs that need it
|
||||
dconf.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
# Ensure certain necessary directories always exist
|
||||
|
|
|
@ -63,30 +63,18 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
ffmpeg
|
||||
];
|
||||
|
||||
shellAliases = { };
|
||||
|
||||
variables.EDITOR =
|
||||
let
|
||||
editorScript = pkgs.writeScriptBin "emacseditor" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
if [ -z "$1" ]; then
|
||||
exec ${pkgs.emacs}/bin/emacsclient --create-frame --alternate-editor ${pkgs.emacs}/bin/emacs
|
||||
else
|
||||
exec ${pkgs.emacs}/bin/emacsclient --alternate-editor ${pkgs.emacs}/bin/emacs "$@"
|
||||
fi
|
||||
'';
|
||||
in
|
||||
(lib.mkOverride 900 "${editorScript}/bin/emacseditor");
|
||||
};
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
};
|
||||
environment.variables.EDITOR =
|
||||
let
|
||||
editorScript = pkgs.writeScriptBin "emacseditor" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
if [ -z "$1" ]; then
|
||||
exec ${pkgs.emacs}/bin/emacsclient --create-frame --alternate-editor ${pkgs.emacs}/bin/emacs
|
||||
else
|
||||
exec ${pkgs.emacs}/bin/emacsclient --alternate-editor ${pkgs.emacs}/bin/emacs "$@"
|
||||
fi
|
||||
'';
|
||||
in
|
||||
(lib.mkOverride 900 "${editorScript}/bin/emacseditor");
|
||||
|
||||
modules = {
|
||||
locale.fonts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue