2022-01-06 10:22:46 +01:00
|
|
|
|
{
|
2022-03-23 13:10:18 +01:00
|
|
|
|
pkgs,
|
2024-10-30 17:39:29 +01:00
|
|
|
|
lib,
|
2023-04-19 01:01:07 +02:00
|
|
|
|
inputs,
|
2022-03-23 13:10:18 +01:00
|
|
|
|
...
|
|
|
|
|
}: {
|
2023-04-19 01:01:07 +02:00
|
|
|
|
imports = [
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
|
|
|
|
inputs.self.nixosModules.homeManagerConfig
|
|
|
|
|
inputs.custom-udev-rules.nixosModule
|
2024-01-15 15:59:54 +01:00
|
|
|
|
../../hardware/aorus.nix
|
2024-10-30 17:39:29 +01:00
|
|
|
|
../../modules/snapclient.nix
|
2024-08-18 11:50:22 +02:00
|
|
|
|
./topology.nix
|
2023-04-19 01:01:07 +02:00
|
|
|
|
];
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
config = {
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader = {
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
networking = {
|
|
|
|
|
hostName = "murex-pecten";
|
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
system.fsPackages = [pkgs.sshfs];
|
2022-12-01 18:08:49 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
|
inputs.nixpkgs-wayland.overlay
|
|
|
|
|
];
|
2022-03-12 23:23:53 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
settings.minimalGnome.enable = true;
|
2022-02-09 15:11:24 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
2022-02-09 15:11:24 +01:00
|
|
|
|
enable = true;
|
2023-04-19 01:01:07 +02:00
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
jack.enable = true;
|
2022-01-16 15:55:11 +01:00
|
|
|
|
};
|
2024-10-30 17:39:29 +01:00
|
|
|
|
services.snapclient.enable = true;
|
|
|
|
|
services.pipewire.extraConfig.pipewire."99-snapcast-stream"."context.modules" = lib.singleton {
|
|
|
|
|
name = "libpipewire-module-snapcast-discover";
|
|
|
|
|
args = {
|
|
|
|
|
stream.rules = lib.singleton {
|
|
|
|
|
matches = lib.singleton { "snapcast.hostname" = "snapserver"; };
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
xdg.portal = {
|
2022-01-06 10:22:46 +01:00
|
|
|
|
enable = true;
|
2024-01-22 21:09:05 +01:00
|
|
|
|
config.common.default = "*";
|
2023-12-14 10:30:38 +01:00
|
|
|
|
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
|
2022-01-06 10:22:46 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
hardware = {
|
2024-10-29 20:43:12 +01:00
|
|
|
|
graphics = {
|
2023-04-19 01:01:07 +02:00
|
|
|
|
enable = true;
|
2024-10-29 20:43:12 +01:00
|
|
|
|
enable32Bit = true;
|
2023-04-19 01:01:07 +02:00
|
|
|
|
extraPackages = with pkgs; [amdvlk];
|
|
|
|
|
extraPackages32 = with pkgs; [driversi686Linux.amdvlk];
|
|
|
|
|
};
|
2022-01-11 13:09:35 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
users.mutableUsers = false;
|
|
|
|
|
users.custom.malte.enable = true;
|
|
|
|
|
|
|
|
|
|
fonts = {
|
2023-08-25 20:02:50 +02:00
|
|
|
|
enableDefaultPackages = true;
|
2024-04-11 21:21:52 +02:00
|
|
|
|
packages = with pkgs; [hack-nerdfont noto-fonts noto-fonts-cjk joypixels];
|
2023-04-19 01:01:07 +02:00
|
|
|
|
fontconfig = {
|
|
|
|
|
enable = true;
|
2024-04-11 21:21:52 +02:00
|
|
|
|
defaultFonts.monospace = ["Hack Nerd Font Mono"];
|
2023-04-19 01:01:07 +02:00
|
|
|
|
};
|
|
|
|
|
};
|
2022-01-11 13:09:35 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# Configure GPG with SSH support and enable the yubikey
|
|
|
|
|
programs.gnupg.agent = {
|
2022-01-06 10:22:46 +01:00
|
|
|
|
enable = true;
|
2023-04-19 01:01:07 +02:00
|
|
|
|
enableSSHSupport = true;
|
2024-03-24 14:16:25 +01:00
|
|
|
|
pinentryPackage = pkgs.pinentry-qt;
|
2022-01-06 10:22:46 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
security.pam = {
|
|
|
|
|
yubico = {
|
|
|
|
|
enable = false;
|
|
|
|
|
mode = "challenge-response";
|
|
|
|
|
control = "sufficient";
|
|
|
|
|
};
|
|
|
|
|
services.login.yubicoAuth = true;
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
services.udev.customRules = [
|
|
|
|
|
# Rename the Scarlett Solo using udev
|
|
|
|
|
{
|
|
|
|
|
name = "85-scarlett-solo";
|
|
|
|
|
rules = ''
|
|
|
|
|
SUBSYSTEM=="usb", ENV{ID_MODEL_ID}=="8211", ENV{ID_VENDOR_ID}=="1235", TAG+="systemd", SYMLINK+="scarlett_solo"
|
|
|
|
|
'';
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "85-yubikey";
|
|
|
|
|
rules = ''
|
|
|
|
|
SUBSYSTEM=="usb", ENV{ID_MODEL_ID}=="0407", ENV{ID_VENDOR_ID}=="1050", TAG+="systemd", SYMLINK+="yubikey"
|
|
|
|
|
'';
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# TODO: This defaults to true, why does it not work with virtualisation.containers.enable?
|
|
|
|
|
boot.enableContainers = false;
|
|
|
|
|
virtualisation = {
|
|
|
|
|
podman = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
|
|
|
|
dockerCompat = true;
|
|
|
|
|
dockerSocket.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
|
2024-01-09 20:09:16 +01:00
|
|
|
|
programs.steam = {
|
|
|
|
|
enable = true;
|
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
|
};
|
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
programs.corectrl.enable = true;
|
|
|
|
|
|
|
|
|
|
services.dbus.packages = with pkgs; [openrgb];
|
|
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
|
yubikey-personalization
|
|
|
|
|
chrysalis
|
|
|
|
|
openrgb
|
|
|
|
|
i2c-tools
|
2024-10-29 20:43:12 +01:00
|
|
|
|
gnome-settings-daemon
|
2023-04-19 01:01:07 +02:00
|
|
|
|
qmk-udev-rules
|
|
|
|
|
vial
|
|
|
|
|
];
|
|
|
|
|
|
2024-01-15 15:59:54 +01:00
|
|
|
|
sops.defaultSopsFile = ../../secrets/hosts/murex-pecten/secrets.yaml;
|
2023-04-19 01:01:07 +02:00
|
|
|
|
sops.age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
qt5.qtwayland
|
|
|
|
|
thunderbolt
|
|
|
|
|
chrysalis
|
|
|
|
|
openrgb
|
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
|
qmk
|
|
|
|
|
vial
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
services.devmon.enable = true;
|
|
|
|
|
services.ratbagd.enable = true;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "21.11"; # Did you read the comment?
|
|
|
|
|
};
|
2022-01-06 10:22:46 +01:00
|
|
|
|
}
|