nixos-config/sets/base.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2022-02-08 02:51:16 +00:00
{ config, pkgs, pkgs-unstable, lib, ... }:
2020-04-11 21:47:33 +00:00
{
2020-11-17 01:51:13 +00:00
nix = {
autoOptimiseStore = true;
2021-11-20 00:34:44 +00:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2020-11-17 01:51:13 +00:00
gc = {
automatic = true;
dates = "00:00";
options = "--delete-older-than 14d";
};
2022-06-28 00:08:02 +00:00
settings.trusted-users = [ "artemis" ];
2020-11-17 01:51:13 +00:00
};
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-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;
2021-08-16 17:38:38 +00:00
extraGroups = [ "wheel" "artemis" ];
2021-11-20 00:34:44 +00:00
shell = pkgs.fish;
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;
};
2022-01-27 16:19:56 +00:00
security.sudo.execWheelOnly = true;
2020-04-11 21:47:33 +00:00
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
}