nixos-config/profiles/workspace/misc.nix
2021-08-11 14:50:37 +03:00

33 lines
864 B
Nix

{ pkgs, lib, config, inputs, ... }: {
environment.sessionVariables =
config.home-manager.users.balsoft.home.sessionVariables // rec {
LESS = "MR";
LESSHISTFILE = "~/.local/share/lesshist";
CARGO_HOME = "${config.home-manager.users.balsoft.xdg.dataHome}/cargo";
SYSTEMD_LESS = LESS;
};
home-manager.users.balsoft = {
news.display = "silent";
systemd.user.startServices = true;
home.stateVersion = "20.09";
};
persist.cache.directories = [ "/home/balsoft/.cache" "/home/balsoft/.local/share/cargo" "/var/cache" ];
persist.state.directories = [ "/var/lib/nixos" "/var/lib/systemd" ];
system.stateVersion = "18.03";
systemd.services.systemd-timesyncd.wantedBy = [ "multi-user.target" ];
systemd.timers.systemd-timesyncd = { timerConfig.OnCalendar = "hourly"; };
services.avahi.enable = true;
}