nixos/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix
Jake Hillion 985c68587d
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
gendry: use amdgpu drivers
2023-01-07 17:07:03 +00:00

39 lines
1.4 KiB
Nix

{ config, pkgs, lib, ... }:
{
config.system.stateVersion = "22.05";
config.networking.hostName = "gendry";
config.networking.domain = "jakehillion-terminals.ts.hillion.co.uk";
imports = [
../../modules/common/default.nix
../../modules/desktop/awesome/default.nix
./hardware-configuration.nix
./persist.nix
./resilio.nix
];
config.boot.loader.systemd-boot.enable = true;
config.boot.loader.efi.canTouchEfiVariables = true;
## Tailscale
config.age.secrets."tailscale/gendry.jakehillion-terminals.ts.hillion.co.uk".file = ../../secrets/tailscale/gendry.jakehillion-terminals.ts.hillion.co.uk.age;
config.tailscalePreAuth = config.age.secrets."tailscale/gendry.jakehillion-terminals.ts.hillion.co.uk".path;
## Password (for interactive logins)
config.age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".file = ../../secrets/passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake.age;
config.users.users."jake".passwordFile = config.age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".path;
config.security.sudo.wheelNeedsPassword = lib.mkForce true;
## Enable btrfs compression
config.fileSystems."/data".options = [ "compress=zstd" ];
config.fileSystems."/nix".options = [ "compress=zstd" ];
## Graphics
config.boot.initrd.kernelModules = [ "amdgpu" ];
config.services.xserver.videoDrivers = [ "amdgpu" ];
}