nixos-config/configuration.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2020-11-16 22:03:57 +00:00
{ config, pkgs, lib, ... }:
2020-04-11 21:47:33 +00:00
{
2020-11-17 01:51:13 +00:00
imports = [
./private
./system/current
];
nix = {
daemonNiceLevel = 5;
daemonIONiceLevel = 1;
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "00:00";
options = "--delete-older-than 14d";
};
trustedUsers = [ "artemis" ];
};
2020-04-11 21:47:33 +00:00
2020-11-17 01:51:13 +00:00
console = {
keyMap = "us";
earlySetup = true;
};
2020-04-11 21:47:33 +00:00
2020-11-17 01:51:13 +00:00
nixpkgs.config.allowUnfree = true;
2020-04-11 21:47:33 +00:00
2020-11-17 01:51:13 +00:00
time.timeZone = "Etc/UTC";
2020-08-15 03:27:08 +00:00
2021-01-10 06:27:22 +00:00
environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
2020-04-11 21:47:33 +00:00
2021-01-15 19:27:51 +00:00
services.resolved.extraConfig = "MulticastDNS=true";
2020-04-11 21:47:33 +00:00
2020-11-17 01:51:13 +00:00
networking.firewall.enable = false;
2020-04-11 21:47:33 +00:00
2021-01-10 06:27:22 +00:00
programs.fish.enable = true;
2020-04-11 21:47:33 +00:00
users = {
users.artemis = {
isNormalUser = true;
description = "Artemis Tosini";
uid = 1000;
2020-12-02 04:17:30 +00:00
extraGroups = [ "wheel" ];
group = "artemis";
2020-04-11 21:47:33 +00:00
# hashedPassword set in private
};
groups.artemis.gid = config.users.users.artemis.uid;
2020-04-11 21:47:33 +00:00
mutableUsers = false;
};
systemd.extraConfig = "DefaultLimitCORE=infinity";
2021-01-15 19:27:51 +00:00
security.pam.loginLimits = [{ domain = "*"; item = "core"; type = "hard"; value = "infinity"; }];
2020-04-11 21:47:33 +00:00
}