This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/os/linux/nix/machines/third.nix

46 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2020-10-24 10:03:34 -05:00
{ config, pkgs, ... }: {
2020-10-24 09:06:34 -05:00
imports = [
../profiles/laptop.nix
../modules/systemd-boot-efi.nix
../modules/intel.nix
2020-10-24 10:03:34 -05:00
../modules/docker.nix
../modules/network-manager.nix
../modules/bluetooth.nix
../modules/pulseaudio.nix
../modules/de/sway.nix
2020-11-05 23:32:22 -06:00
../modules/de/gnome.nix
2020-10-24 10:03:34 -05:00
../modules/users/daniel.nix
../modules/users/valerie.nix
2020-10-24 09:06:34 -05:00
];
2020-10-24 21:48:02 -05:00
networking = {
hostName = "third.lyte.dev";
firewall.enable = false;
networkmanager.wifi.powersave = true;
};
services.fwupd = {
enable = true;
};
2020-10-25 00:33:20 -05:00
console.useXkbConfig = true;
services.xserver.xkbOptions = "ctrl:nocaps";
# TODO: setup caps-lock as Control/Escape?
# console.font = "TER16x32";
2020-10-24 21:48:02 -05:00
swapDevices = [ { device = "/swapfile"; size = (1024*16); } ];
boot = {
# fallocate -l 16G /swapfile
resumeDevice = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122";
# sudo filefrag -v /swapfile | head -n 4 | tail -n 1 | \
# tr -s "[:blank:]" | field 5 | tr -d ":"
kernelParams = [ "resume_offset=874496" ];
};
2020-10-24 21:48:02 -05:00
# services.upower = {
# enable = true;
# criticalPowerAction = "Hibernate";
# };
2020-10-24 09:06:34 -05:00
}