2022-11-18 20:47:23 +00:00
|
|
|
{ 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
|
2022-11-27 18:09:44 +00:00
|
|
|
../../modules/desktop/awesome/default.nix
|
2023-01-21 18:32:16 +00:00
|
|
|
../../modules/spotify/default.nix
|
2022-11-18 20:47:23 +00:00
|
|
|
./hardware-configuration.nix
|
2022-11-27 18:02:53 +00:00
|
|
|
./persist.nix
|
2022-12-02 18:20:12 +00:00
|
|
|
./resilio.nix
|
2022-11-18 20:47:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2022-11-27 17:53:16 +00:00
|
|
|
## Enable btrfs compression
|
|
|
|
config.fileSystems."/data".options = [ "compress=zstd" ];
|
|
|
|
config.fileSystems."/nix".options = [ "compress=zstd" ];
|
2023-01-07 17:02:16 +00:00
|
|
|
|
|
|
|
## Graphics
|
|
|
|
config.boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
config.services.xserver.videoDrivers = [ "amdgpu" ];
|
2022-11-18 20:47:23 +00:00
|
|
|
|
2023-01-21 18:32:16 +00:00
|
|
|
## Spotify
|
|
|
|
config.home-manager.users.jake.services.spotifyd.settings = {
|
|
|
|
global = {
|
|
|
|
device_name = "Gendry";
|
|
|
|
device_type = "computer";
|
|
|
|
bitrate = 320;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|