nixos-config/modules/workspace/misc.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

{ pkgs, lib, config, inputs, ... }: {
2020-02-17 17:00:59 +04:00
systemd.coredump.enable = true;
2021-01-21 22:13:53 +04:00
2021-06-09 11:17:48 +04:00
systemd.services.systemd-timesyncd.wantedBy = [ "multi-user.target" ];
systemd.timers.systemd-timesyncd = {
timerConfig.OnCalendar = "hourly";
};
2021-06-09 00:27:54 +04:00
environment.sessionVariables =
config.home-manager.users.balsoft.home.sessionVariables // rec {
NIX_AUTO_RUN = "1";
LESS = "MR";
SYSTEMD_LESS = LESS;
DE = "generic";
};
2020-02-17 17:00:59 +04:00
home-manager.users.balsoft = {
xdg.enable = true;
home.activation."mimeapps-remove" = {
before = [ "linkGeneration" ];
after = [ ];
data = "rm -f /home/balsoft/.config/mimeapps.list";
};
2021-01-21 22:13:53 +04:00
2020-02-17 17:00:59 +04:00
news.display = "silent";
programs.command-not-found = {
enable = true;
dbPath = ../../misc/programs.sqlite;
};
systemd.user.startServices = true;
2021-02-28 20:06:01 +04:00
programs.direnv.enable = true;
programs.direnv.enableNixDirenvIntegration = true;
2021-01-20 18:54:50 +04:00
2021-06-07 19:22:59 +04:00
home.stateVersion = "20.09";
};
2021-01-20 18:54:50 +04:00
2021-06-08 20:52:32 +04:00
persist.cache.directories = [ "/home/balsoft/.cache" "/var/cache" ];
2021-06-08 20:35:21 +04:00
2021-06-09 00:27:54 +04:00
persist.state.directories =
[ "/home/balsoft/.local/share/direnv" "/var/lib/nixos" "/var/lib/systemd" ];
2021-06-08 21:00:43 +04:00
2021-06-07 19:22:59 +04:00
services.avahi.enable = true;
2021-01-21 22:13:53 +04:00
system.stateVersion = "18.03";
2021-01-20 18:54:50 +04:00
2020-02-17 17:00:59 +04:00
}