mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 11:46:51 +01:00
120 lines
2.6 KiB
Nix
120 lines
2.6 KiB
Nix
{ config, pkgs, lib, nixos-hardware, self, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware.nix
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
nixos-hardware.nixosModules.common-gpu-intel
|
|
nixos-hardware.nixosModules.common-gpu-nvidia
|
|
nixos-hardware.nixosModules.common-pc
|
|
nixos-hardware.nixosModules.common-hidpi
|
|
nixos-hardware.nixosModules.common-pc-ssd
|
|
self.inputs.nether.nixosModules.hosts
|
|
self.inputs.nether.nixosModules.zerotier
|
|
];
|
|
|
|
jopejoe1 = {
|
|
audio = {
|
|
enable = true;
|
|
sennheiser-hd-660s = true;
|
|
};
|
|
bluetooth.enable = true;
|
|
doc.enable = true;
|
|
local.enable = true;
|
|
nix.enable = true;
|
|
plasma6.enable = true;
|
|
printing.enable = true;
|
|
steam.enable = true;
|
|
ssh.enable = true;
|
|
asf.enable = true;
|
|
sway.enable = true;
|
|
repo-sync.enable = true;
|
|
zerotierone.enable = true;
|
|
keyboard = {
|
|
enable = true;
|
|
layout = "de";
|
|
};
|
|
user = {
|
|
jopejoe1.enable = true;
|
|
root.enable = true;
|
|
};
|
|
boot.systemd.enable = true;
|
|
};
|
|
|
|
networking = {
|
|
hostId = "16c22faf";
|
|
};
|
|
|
|
services = {
|
|
hardware.openrgb = {
|
|
enable = true;
|
|
motherboard = "intel";
|
|
};
|
|
};
|
|
|
|
nixpkgs = {
|
|
config = {
|
|
cudaSupport = true;
|
|
cudaCapabilities = [ "8.6" ];
|
|
};
|
|
hostPlatform = {
|
|
# gcc.arch = "alderlake";
|
|
};
|
|
};
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
hardware = {
|
|
opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
nvidia = {
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
modesetting.enable = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
localPkgs.prismlauncher-withExtraStuff
|
|
mixxx
|
|
picard
|
|
goverlay
|
|
strawberry
|
|
whatsapp-for-linux
|
|
teams-for-linux
|
|
libreoffice-qt
|
|
webex
|
|
((discord.overrideAttrs (old: {
|
|
desktopItem = old.desktopItem.override
|
|
(old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
|
})).override {
|
|
withOpenASAR = true;
|
|
withVencord = true;
|
|
withTTS = true;
|
|
})
|
|
element-desktop
|
|
mumble
|
|
|
|
# Theming
|
|
catppuccin-kvantum
|
|
catppuccin-kde
|
|
catppuccin-gtk
|
|
localPkgs.tela-icon-theme-git
|
|
];
|
|
|
|
programs = {
|
|
adb.enable = true;
|
|
dconf.enable = true;
|
|
droidcam.enable = true;
|
|
xwayland.enable = true;
|
|
kdeconnect.enable = true;
|
|
gamemode.enable = true;
|
|
appimage.enable = true; # Not upstream jet
|
|
};
|
|
|
|
nix.settings.system-features = [ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ]
|
|
++ map (x: "gccarch-${x}") (lib.systems.architectures.inferiors.alderlake or [ ]);
|
|
|
|
boot.binfmt.emulatedSystems = [ "riscv64-linux" ];
|
|
}
|