nix-conf/systems/kuraokami/default.nix

132 lines
3 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, nixos-hardware, self, ... }:
2023-05-16 14:55:15 +02:00
{
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
2024-02-07 22:23:26 +01:00
self.inputs.nether.nixosModules.hosts
self.inputs.nether.nixosModules.zerotier
];
2023-05-16 14:55:15 +02:00
2023-12-29 16:43:40 +01:00
jopejoe1 = {
audio = {
enable = true;
2023-12-30 20:22:25 +01:00
sennheiser-hd-660s = true;
2023-12-29 16:43:40 +01:00
};
bluetooth.enable = true;
2024-01-29 11:55:32 +01:00
doc.enable = true;
2023-12-29 16:43:40 +01:00
local.enable = true;
nix.enable = true;
plasma6.enable = true;
printing.enable = true;
steam.enable = true;
2024-01-11 00:19:11 +01:00
ssh.enable = true;
2023-12-29 16:43:40 +01:00
asf.enable = true;
2024-01-13 15:10:41 +01:00
sway.enable = true;
2024-01-18 20:12:43 +01:00
zerotierone.enable = true;
2024-01-15 19:56:37 +01:00
keyboard = {
enable = true;
layout = "de";
};
2024-01-13 18:01:23 +01:00
user = {
jopejoe1.enable = true;
root.enable = true;
};
2024-01-02 20:58:18 +01:00
boot.systemd.enable = true;
2023-12-29 16:43:40 +01:00
};
2023-12-30 23:39:33 +01:00
networking = {
hostId = "16c22faf";
2023-10-26 19:28:35 +02:00
};
2023-10-12 18:41:54 +02:00
2023-12-30 23:39:33 +01:00
services = {
2024-01-05 22:37:54 +01:00
hardware.openrgb = {
enable = true;
motherboard = "intel";
};
2024-04-01 17:02:33 +02:00
postgresql = {
enable = false;
#extraPlugins = ps: with ps; [ pg_libversion ];
enableTCPIP = true;
initialScript = pkgs.writeText "backend-initScript" ''
CREATE DATABASE repology
CREATE USER repology WITH PASSWORD 'repology'
GRANT ALL ON DATABASE repology TO repology
'';
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
2023-12-30 23:39:33 +01:00
};
2023-06-30 13:38:44 +02:00
2023-12-30 23:39:33 +01:00
nixpkgs = {
2024-01-10 19:58:09 +01:00
config = {
cudaSupport = true;
cudaCapabilities = [ "8.6" ];
};
2023-12-30 23:39:33 +01:00
hostPlatform = {
# gcc.arch = "alderlake";
};
};
2023-05-16 14:55:15 +02:00
time.timeZone = "Europe/Berlin";
2023-12-30 23:39:33 +01:00
hardware = {
opengl = {
enable = true;
driSupport32Bit = true;
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
};
};
2023-07-26 20:55:11 +02:00
2023-05-16 14:55:15 +02:00
environment.systemPackages = with pkgs; [
localPkgs.prismlauncher-withExtraStuff
2023-08-18 17:05:26 +02:00
mixxx
2023-08-18 17:07:31 +02:00
picard
goverlay
2023-10-01 19:07:50 +02:00
strawberry
2023-10-12 15:21:14 +02:00
whatsapp-for-linux
2023-11-13 08:42:23 +01:00
teams-for-linux
2024-02-06 15:46:26 +01:00
libreoffice-qt
2023-11-13 08:42:23 +01:00
webex
2024-04-02 22:14:57 +02:00
2024-01-24 20:50:33 +01:00
((discord.overrideAttrs (old: {
desktopItem = old.desktopItem.override
(old: { exec = old.exec + " --disable-gpu-sandbox"; });
2024-01-30 14:55:47 +01:00
})).override {
withOpenASAR = true;
withVencord = true;
withTTS = true;
2024-01-24 20:50:33 +01:00
})
2023-05-16 14:55:15 +02:00
];
programs = {
2024-01-09 22:53:08 +01:00
adb.enable = true;
2023-05-16 14:55:15 +02:00
dconf.enable = true;
droidcam.enable = true;
2023-05-22 19:42:28 +02:00
xwayland.enable = true;
2023-05-16 14:55:15 +02:00
kdeconnect.enable = true;
gamemode.enable = true;
2024-04-08 21:02:50 +02:00
appimage = {
enable = true;
package = pkgs.appimage-run.override {
extraPkgs = pkgs: [ pkgs.brotli ];
};
};
2024-02-08 20:06:24 +01:00
};
2024-01-18 20:12:43 +01:00
nix.settings.system-features = [ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ]
2024-01-19 13:42:27 +01:00
++ map (x: "gccarch-${x}") (lib.systems.architectures.inferiors.alderlake or [ ]);
2024-03-08 18:56:04 +01:00
boot.binfmt.emulatedSystems = [ "riscv64-linux" ];
2023-05-16 14:55:15 +02:00
}