nixos-config/modules/workspace/misc.nix

50 lines
1.2 KiB
Nix

{ pkgs, lib, config, inputs, ... }: {
systemd.coredump.enable = true;
systemd.services.systemd-timesyncd.wantedBy = [ "multi-user.target" ];
systemd.timers.systemd-timesyncd = {
timerConfig.OnCalendar = "hourly";
};
environment.sessionVariables =
config.home-manager.users.balsoft.home.sessionVariables // rec {
NIX_AUTO_RUN = "1";
LESS = "MR";
SYSTEMD_LESS = LESS;
DE = "generic";
};
home-manager.users.balsoft = {
xdg.enable = true;
home.activation."mimeapps-remove" = {
before = [ "linkGeneration" ];
after = [ ];
data = "rm -f /home/balsoft/.config/mimeapps.list";
};
news.display = "silent";
programs.command-not-found = {
enable = true;
dbPath = ../../misc/programs.sqlite;
};
systemd.user.startServices = true;
programs.direnv.enable = true;
programs.direnv.enableNixDirenvIntegration = true;
home.stateVersion = "20.09";
};
persist.cache.directories = [ "/home/balsoft/.cache" "/var/cache" ];
persist.state.directories =
[ "/home/balsoft/.local/share/direnv" "/var/lib/nixos" "/var/lib/systemd" ];
services.avahi.enable = true;
system.stateVersion = "18.03";
}