2021-07-18 19:44:17 +00:00
|
|
|
{ config, pkgs, ... }:
|
2020-09-18 13:54:09 +00:00
|
|
|
{
|
2020-09-24 05:45:48 +00:00
|
|
|
time.timeZone = "US/Eastern";
|
2021-04-14 14:24:51 +00:00
|
|
|
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
boot = {
|
|
|
|
zfs.forceImportAll = false;
|
|
|
|
zfs.forceImportRoot = false;
|
|
|
|
kernelParams = [ "amdgpu.gpu_recovery=1" "panic=30" ];
|
2021-04-05 21:19:47 +00:00
|
|
|
initrd.availableKernelModules = [ "nvme" ];
|
2020-09-24 05:45:48 +00:00
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2021-10-03 21:29:58 +00:00
|
|
|
security.sudo.extraConfig = "Defaults lecture=never";
|
|
|
|
|
2021-08-15 02:50:24 +00:00
|
|
|
environment.systemPackages = map
|
|
|
|
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config"))
|
|
|
|
[ "switch" "build" "boot" ];
|
2021-08-03 16:11:50 +00:00
|
|
|
|
2021-05-03 02:17:54 +00:00
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"e /nix/var/log - - - 30d"
|
|
|
|
"e /home/sean/Downloads - - - 9d"
|
|
|
|
];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-11-13 20:49:36 +00:00
|
|
|
zramSwap.enable = true;
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2021-04-04 22:25:13 +00:00
|
|
|
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
|
2021-08-12 19:45:31 +00:00
|
|
|
networking.networkmanager.extraConfig = ''
|
|
|
|
[connection]
|
|
|
|
ipv4.dns-priority=101
|
|
|
|
'';
|
2021-04-04 22:25:13 +00:00
|
|
|
|
2021-04-29 16:00:42 +00:00
|
|
|
nix = {
|
|
|
|
daemonNiceLevel = 19;
|
|
|
|
daemonIONiceLevel = 7;
|
2021-05-28 20:16:28 +00:00
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2021-04-29 16:00:42 +00:00
|
|
|
};
|
|
|
|
|
2021-07-25 22:04:05 +00:00
|
|
|
services.xserver = {
|
|
|
|
libinput.mouse.middleEmulation = false;
|
|
|
|
deviceSection = ''
|
|
|
|
Option "VariableRefresh" "true"
|
|
|
|
'';
|
|
|
|
};
|
2021-06-09 23:39:28 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
services = {
|
|
|
|
earlyoom.enable = true;
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
publish.enable = true;
|
|
|
|
publish.addresses = true;
|
2020-09-18 13:54:09 +00:00
|
|
|
};
|
2020-09-24 05:45:48 +00:00
|
|
|
};
|
2020-11-13 19:49:22 +00:00
|
|
|
|
2020-12-27 16:23:42 +00:00
|
|
|
users.users.sean = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "audio" "video" "networkmanager" "dialout" "input" "wireshark" ];
|
|
|
|
openssh.authorizedKeys.keys = [
|
2021-02-03 02:40:19 +00:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqWHzIXaF88Y8+64gBlLbZ5ZZcLl08kTHG1clHd7gaq desktop"
|
2021-07-10 02:49:13 +00:00
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChhSNkLZXM7f8BUWdQDv63YL0feN2webGwA+ocpUnwm2mw/o/g+9SNaK7wOQoqDVjrS6yx4Mf2e8+6ZweM6Q2cT1uYSaipaclFR/xuyOeoWwEcRkFZ5O32OlRc3VoRYj8HPDYUsJn77hMlUmA6JEb6+rT4o6uEjDjgRP0bpLtDzPXNsCBFlVX0tUYE1WUirTL5n20KhJLe5/dAEkL8469nijcWcYCD7xpWrkEUK6j13v5wGfo4iujeeZUw5oU4O8tap+9gDHnRz3wtuZPq9qHOPQ2FqrvjWyagyQBhkU//09dCeKMAReeFrYk2XtGqeypTxmjpwXotjk8v36iAdvm/ PIVKey"
|
2021-10-09 17:36:46 +00:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJlMPWSVyDNAvXYtpXCI/geCeUEMbL9Nthm9B0zg1sIy sean@hp"
|
2020-12-27 16:23:42 +00:00
|
|
|
];
|
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
}
|