nix-files/hosts/by-name/desko/default.nix

62 lines
2.0 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
./fs.nix
];
2023-07-09 18:49:36 +00:00
# sane.guest.enable = true;
2023-06-28 03:57:57 +00:00
2023-07-09 18:49:36 +00:00
# services.distccd.enable = true;
# sane.programs.distcc.enableFor.user.guest = true;
2023-06-28 04:04:45 +00:00
sops.secrets.colin-passwd.neededForUsers = true;
2023-11-20 04:58:13 +00:00
sane.ports.openFirewall = true; # for e.g. nix-serve
sane.roles.build-machine.enable = true;
2023-01-20 07:59:11 +00:00
sane.roles.client = true;
2023-05-10 21:23:42 +00:00
sane.roles.dev-machine = true;
sane.roles.pc = true;
2023-01-20 07:59:11 +00:00
sane.services.wg-home.enable = true;
sane.services.wg-home.ip = config.sane.hosts.by-name."desko".wg-home.ip;
2022-08-01 07:23:49 +00:00
sane.services.duplicity.enable = true;
sane.services.nixserve.secretKeyFile = config.sops.secrets.nix_serve_privkey.path;
sane.nixcache.substituters.desko = false;
sane.nixcache.remote-builders.desko = false;
2023-01-20 07:59:11 +00:00
sane.gui.sway.enable = true;
2023-02-21 01:11:42 +00:00
sane.programs.iphoneUtils.enableFor.user.colin = true;
2023-07-13 06:27:54 +00:00
sane.programs.steam.enableFor.user.colin = true;
2023-01-20 07:59:11 +00:00
2023-07-07 06:30:19 +00:00
# sane.programs.devPkgs.enableFor.user.colin = true;
sane.programs.signal-desktop.config.autostart = true;
sane.programs."gnome.geary".config.autostart = true;
boot.loader.efi.canTouchEfiVariables = false;
2022-08-01 07:23:49 +00:00
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
2022-06-10 08:43:48 +00:00
# needed to use libimobiledevice/ifuse, for iphone sync
services.usbmuxd.enable = true;
2022-12-10 12:27:02 +00:00
# don't enable wifi by default: it messes with connectivity.
systemd.services.iwd.enable = false;
2023-07-18 10:02:25 +00:00
systemd.services.wpa_supplicant.enable = false;
2022-12-10 12:27:02 +00:00
2022-06-29 10:58:11 +00:00
# default config: https://man.archlinux.org/man/snapper-configs.5
# defaults to something like:
# - hourly snapshots
# - auto cleanup; keep the last 10 hourlies, last 10 daylies, last 10 monthlys.
services.snapper.configs.nix = {
# TODO: for the impermanent setup, we'd prefer to just do /nix/persist,
# but that also requires setting up the persist dir as a subvol
SUBVOLUME = "/nix";
2022-06-29 10:58:11 +00:00
# TODO: ALLOW_USERS doesn't seem to work. still need `sudo snapper -c nix list`
ALLOW_USERS = [ "colin" ];
2022-06-29 10:58:11 +00:00
};
# docs: https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion
system.stateVersion = "21.05";
}