2024-03-07 02:49:09 +01:00
|
|
|
{ lib, pkgs, ... }: {
|
2023-12-10 23:48:46 +01:00
|
|
|
# {{{ Imports
|
2023-01-10 02:38:06 +01:00
|
|
|
imports = [
|
|
|
|
../common/global
|
2024-05-21 01:37:39 +02:00
|
|
|
../common/users/pilot.nix
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
../common/optional/pipewire.nix
|
2024-02-29 12:44:52 +01:00
|
|
|
../common/optional/bluetooth.nix
|
2023-07-22 16:21:29 +02:00
|
|
|
../common/optional/greetd.nix
|
2023-08-06 17:28:34 +02:00
|
|
|
../common/optional/quietboot.nix
|
2023-12-10 23:48:46 +01:00
|
|
|
../common/optional/desktop/steam.nix
|
|
|
|
../common/optional/desktop/xdg-portal.nix
|
|
|
|
../common/optional/wayland/hyprland.nix
|
2024-05-30 02:35:16 +02:00
|
|
|
../common/optional/services/kanata.nix
|
|
|
|
../common/optional/services/restic
|
2023-01-10 02:38:06 +01:00
|
|
|
|
2023-08-17 09:31:46 +02:00
|
|
|
./hardware
|
2023-01-10 02:38:06 +01:00
|
|
|
./boot.nix
|
2023-12-10 23:48:46 +01:00
|
|
|
./services/syncthing.nix
|
2023-01-10 02:38:06 +01:00
|
|
|
];
|
2023-12-10 23:48:46 +01:00
|
|
|
# }}}
|
2023-07-18 15:16:57 +02:00
|
|
|
|
2023-01-10 02:38:06 +01:00
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "22.11";
|
2023-04-17 10:53:41 +02:00
|
|
|
|
2024-02-24 01:53:32 +01:00
|
|
|
services.mullvad-vpn.enable = true;
|
|
|
|
|
2023-12-10 23:48:46 +01:00
|
|
|
# {{{ Machine ids
|
|
|
|
networking.hostName = "tethys";
|
|
|
|
environment.etc.machine-id.text = "08357db3540c4cd2b76d4bb7f825ec88";
|
|
|
|
# }}}
|
2023-05-28 00:41:22 +02:00
|
|
|
# {{{ A few ad-hoc hardware settings
|
2023-09-22 18:37:24 +02:00
|
|
|
hardware.enableAllFirmware = true;
|
2023-05-28 00:41:22 +02:00
|
|
|
hardware.opengl.enable = true;
|
2023-05-28 05:24:36 +02:00
|
|
|
hardware.opentabletdriver.enable = true;
|
2023-08-28 17:18:26 +02:00
|
|
|
hardware.keyboard.qmk.enable = true;
|
2023-09-22 18:37:24 +02:00
|
|
|
powerManagement.cpuFreqGovernor = "ondemand";
|
|
|
|
services.tlp.enable = true;
|
|
|
|
services.thermald.enable = true;
|
2023-05-28 00:41:22 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ A few ad-hoc programs
|
|
|
|
programs.kdeconnect.enable = true;
|
2023-11-04 18:58:09 +01:00
|
|
|
programs.firejail.enable = true;
|
2023-05-28 00:41:22 +02:00
|
|
|
programs.extra-container.enable = true;
|
2024-03-07 02:49:09 +01:00
|
|
|
virtualisation.docker.enable = true;
|
2024-07-06 19:32:14 +02:00
|
|
|
virtualisation.waydroid.enable = true;
|
2024-02-28 07:16:21 +01:00
|
|
|
# virtualisation.spiceUSBRedirection.enable = true; # This was required for the vm usb passthrough tomfoolery
|
2023-05-28 00:41:22 +02:00
|
|
|
# }}}
|
2023-05-28 05:24:36 +02:00
|
|
|
# {{{ Ad-hoc stylix targets
|
|
|
|
# TODO: include this on all gui hosts
|
2023-07-18 16:30:04 +02:00
|
|
|
# TODO: is this useful outside of home-manager?
|
2023-05-28 05:24:36 +02:00
|
|
|
stylix.targets.gtk.enable = true;
|
|
|
|
# }}}
|
2023-07-30 01:22:25 +02:00
|
|
|
# {{{ Some ad-hoc site blocking
|
2023-08-22 17:24:04 +02:00
|
|
|
networking.extraHosts =
|
|
|
|
let
|
2023-09-22 18:37:24 +02:00
|
|
|
blacklisted = [
|
2024-03-04 11:33:59 +01:00
|
|
|
# "twitter.com"
|
2023-09-22 20:08:11 +02:00
|
|
|
# "www.reddit.com"
|
2024-07-06 19:32:14 +02:00
|
|
|
"minesweeper.online"
|
2023-09-22 18:37:24 +02:00
|
|
|
];
|
2023-08-22 17:24:04 +02:00
|
|
|
blacklist = lib.concatStringsSep "\n" (lib.forEach blacklisted (host: "127.0.0.1 ${host}"));
|
|
|
|
in
|
|
|
|
blacklist;
|
2023-07-30 01:22:25 +02:00
|
|
|
# }}}
|
2024-03-07 02:49:09 +01:00
|
|
|
|
|
|
|
services.mysql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mysql80;
|
|
|
|
};
|
2024-04-13 22:42:29 +02:00
|
|
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
services.gnome.evolution-data-server.enable = true;
|
|
|
|
services.gnome.gnome-online-accounts.enable = true;
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|