58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ config, pkgs, lib, inputs, ... }:
|
|
|
|
{
|
|
imports = [ inputs.private.nixosModules.base ];
|
|
|
|
systemd.tmpfiles.rules = lib.mapAttrsToList
|
|
(key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}") inputs;
|
|
|
|
nix = {
|
|
nixPath =
|
|
[ "/etc/channels" "/nix/var/nix/profiles/per-user/root/channels" ];
|
|
settings.auto-optimise-store = true;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
gc = {
|
|
automatic = true;
|
|
dates = "8:00";
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
settings.trusted-users = [ "artemis" ];
|
|
};
|
|
|
|
console = {
|
|
keyMap = "us";
|
|
earlySetup = true;
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
time.timeZone = "Etc/UTC";
|
|
environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
|
|
networking.firewall.enable = false;
|
|
programs.fish.enable = true;
|
|
|
|
users = {
|
|
users.artemis = {
|
|
isNormalUser = true;
|
|
description = "Artemis Tosini";
|
|
uid = 1000;
|
|
extraGroups = [ "wheel" "artemis" ];
|
|
shell = pkgs.fish;
|
|
# hashedPassword set in private
|
|
};
|
|
groups.artemis.gid = config.users.users.artemis.uid;
|
|
mutableUsers = false;
|
|
};
|
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
systemd.extraConfig = "DefaultLimitCORE=infinity";
|
|
security.pam.loginLimits = [{
|
|
domain = "*";
|
|
item = "core";
|
|
type = "hard";
|
|
value = "infinity";
|
|
}];
|
|
}
|