nixos-config/sets/base.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2023-09-07 14:54:51 +00:00
{ config, pkgs, lib, inputs, ... }:
2020-04-11 21:47:33 +00:00
{
2023-11-26 07:30:29 +00:00
imports = [ inputs.private.nixosModules.base ];
systemd.tmpfiles.rules = lib.mapAttrsToList
(key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}") inputs;
2023-09-07 14:54:51 +00:00
2020-11-17 01:51:13 +00:00
nix = {
2023-09-07 14:54:51 +00:00
nixPath =
[ "/etc/channels" "/nix/var/nix/profiles/per-user/root/channels" ];
2022-12-01 19:52:31 +00:00
settings.auto-optimise-store = 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;
2023-11-26 07:30:29 +00:00
dates = "8:00";
2020-11-17 01:51:13 +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;
time.timeZone = "Etc/UTC";
2021-01-10 06:27:22 +00:00
environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
2020-11-17 01:51:13 +00:00
networking.firewall.enable = false;
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";
2023-08-26 23:00:18 +00:00
security.pam.loginLimits = [{
domain = "*";
item = "core";
type = "hard";
value = "infinity";
}];
2020-04-11 21:47:33 +00:00
}