1
Fork 0
satellite/hosts/nixos/tethys/default.nix

64 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, ... }: {
2023-12-10 23:48:46 +01:00
# {{{ Imports
2023-01-10 02:38:06 +01:00
imports = [
../common/global
../common/users/adrielus.nix
../common/optional/pipewire.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/services/kanata.nix
2023-12-10 23:48:46 +01:00
../common/optional/desktop/xdg-portal.nix
../common/optional/wayland/hyprland.nix
2023-01-10 02:38:06 +01: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";
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;
2023-11-04 18:58:09 +01:00
virtualisation.docker.enable = true;
2023-11-27 00:15:03 +01:00
virtualisation.spiceUSBRedirection.enable = true;
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
networking.extraHosts =
let
2023-09-22 18:37:24 +02:00
blacklisted = [
"twitter.com"
2023-09-22 20:08:11 +02:00
# "www.reddit.com"
2023-09-22 18:37:24 +02:00
# "minesweeper.online"
];
blacklist = lib.concatStringsSep "\n" (lib.forEach blacklisted (host: "127.0.0.1 ${host}"));
in
blacklist;
2023-07-30 01:22:25 +02:00
# }}}
2023-01-10 02:38:06 +01:00
}