2025-01-27 23:30:24 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
inherit (config.local.systemVars) username;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./neovim.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = mkIf config.local.profiles.desktop.enable {
|
2025-02-02 13:42:16 +01:00
|
|
|
/*
|
|
|
|
we don't want the default NixOS EDITOR value, which is nano and will override the `environment.d` setting.
|
|
|
|
we have to unset it like this so that our systemd user variable will take precedence:
|
|
|
|
*/
|
|
|
|
environment.extraInit = ''
|
|
|
|
unset -v EDITOR
|
|
|
|
'';
|
2025-01-27 23:30:24 +01:00
|
|
|
hjem.users.${username} = {
|
2025-02-02 19:28:10 +01:00
|
|
|
environment.variables = {
|
|
|
|
EDITOR = "nvim";
|
2025-01-27 23:30:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|