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
|
|
|
|
./packages.nix
|
|
|
|
./fonts.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
i18n.defaultLocale = "de_DE.UTF-8";
|
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
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
environment = {
|
|
|
|
variables.TERMINAL = "alacritty";
|
2020-04-11 21:47:33 +00:00
|
|
|
enableDebugInfo = true;
|
|
|
|
};
|
|
|
|
|
2020-06-01 02:42:32 +00:00
|
|
|
services = {
|
2020-04-11 21:47:33 +00:00
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
2021-01-04 00:41:24 +00:00
|
|
|
publish.enable = true;
|
2020-04-11 21:47:33 +00:00
|
|
|
};
|
|
|
|
flatpak.enable = true;
|
|
|
|
fwupd.enable = true;
|
|
|
|
kbfs.enable = true;
|
|
|
|
keybase.enable = true;
|
|
|
|
pcscd.enable = true;
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "artemis";
|
|
|
|
dataDir = "/home/artemis";
|
|
|
|
};
|
2020-09-21 01:32:44 +00:00
|
|
|
udev.packages = [
|
|
|
|
(pkgs.callPackage ./externals/rules/uhk.nix { })
|
|
|
|
];
|
2020-04-11 21:47:33 +00:00
|
|
|
};
|
|
|
|
|
2020-06-01 02:42:32 +00:00
|
|
|
hardware = {
|
2020-04-11 21:47:33 +00:00
|
|
|
bluetooth.enable = true;
|
2020-11-16 22:03:57 +00:00
|
|
|
opengl.driSupport32Bit = true;
|
2020-04-11 21:47:33 +00:00
|
|
|
pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
support32Bit = true;
|
|
|
|
daemon.config.flat-volumes = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
networking.firewall.enable = false;
|
2020-04-11 21:47:33 +00:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
fish.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
};
|
2020-12-02 19:35:35 +00:00
|
|
|
groups.artemis.gid = config.users.users.artemis.uid;
|
2020-04-11 21:47:33 +00:00
|
|
|
mutableUsers = false;
|
|
|
|
};
|
|
|
|
systemd.extraConfig = "DefaultLimitCORE=infinity";
|
2020-11-26 04:20:52 +00:00
|
|
|
security.pam.loginLimits = [{ domain = "*"; item = "core"; type = "hard"; value = "infinity"; }];
|
2020-04-11 21:47:33 +00:00
|
|
|
}
|