nixos-config/configuration.nix

98 lines
1.9 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
./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;
};
chrony.enable = true;
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
printing = {
enable = true;
drivers = [ pkgs.brlaser ];
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-11-17 01:51:13 +00:00
extraGroups = [ "wheel" "docker" "lxd" ];
2020-04-11 21:47:33 +00:00
# hashedPassword set in private
};
mutableUsers = false;
};
systemd.extraConfig = "DefaultLimitCORE=infinity";
security.pam.loginLimits = [ { domain = "*"; item = "core"; type = "hard"; value = "infinity"; } ];
}