nix-conf/systems/kuraokami/default.nix

174 lines
3.9 KiB
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
pkgs,
lib,
nixos-hardware,
self,
...
}:
2023-05-16 14:55:15 +02:00
{
imports = [
./hardware.nix
2024-07-10 22:12:06 +02:00
nixos-hardware.nixosModules.common-cpu-intel
#nixos-hardware.nixosModules.common-gpu-intel
2024-07-14 15:22:14 +02:00
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
2024-05-01 17:54:48 +02:00
self.inputs.srvos.nixosModules.desktop
];
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;
local.enable = true;
nix.enable = true;
2024-05-01 08:58:36 +02:00
plasma.enable = true;
2023-12-29 16:43:40 +01:00
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-04-19 18:12:23 +02:00
gui.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 = {
2024-05-29 20:53:04 +02:00
enable = true;
extraPlugins = ps: with ps; [ pg_libversion ];
2024-04-01 17:02:33 +02:00
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
'';
};
2024-04-18 16:12:00 +02:00
pcscd.enable = true;
udev.packages = [ pkgs.yubikey-personalization ];
2024-05-01 08:51:55 +02:00
nix-serve = {
2024-05-29 20:53:04 +02:00
enable = false;
2024-05-01 08:51:55 +02:00
openFirewall = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
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 = {
2024-05-29 20:53:04 +02:00
cudaSupport = false;
2024-01-10 19:58:09 +01:00
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 = {
2024-07-10 22:12:06 +02:00
graphics = {
2023-12-30 23:39:33 +01:00
enable = true;
2024-07-10 22:12:06 +02:00
enable32Bit = true;
2023-12-30 23:39:33 +01:00
};
nvidia = {
2024-07-10 22:12:06 +02:00
#package = config.boot.kernelPackages.nvidiaPackages.stable;
#modesetting.enable = true;
2023-12-30 23:39:33 +01:00
};
2024-04-18 16:12:00 +02:00
gpgSmartcards.enable = true;
2023-12-30 23:39:33 +01:00
};
2023-07-26 20:55:11 +02:00
2024-05-29 21:26:22 +02:00
boot.kernelModules = [ "i2c-nct6775" ];
2024-07-10 22:12:06 +02:00
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
2024-05-29 21:26:22 +02:00
2023-05-16 14:55:15 +02:00
environment.systemPackages = with pkgs; [
localPkgs.prismlauncher-withExtraStuff
2024-07-13 21:35:47 +02:00
picard
2023-08-18 17:05:26 +02:00
mixxx
goverlay
2024-07-10 23:02:54 +02:00
(strawberry-qt6.overrideAttrs (
finalAttrs: previousAttrs: {
version = "1.1.0-rc3";
src = fetchFromGitHub {
owner = "strawberrymusicplayer";
repo = "strawberry";
rev = "1.1.0-rc3";
hash = "sha256-4LhFxCi0ixMAjVaNVrQrLc0Vf1Z2dhnw6DTfTqtpiC4=";
};
buildInputs = previousAttrs.buildInputs ++ [
kdsingleapplication
gst_all_1.gst-plugins-rs
kdePackages.qtsvg
kdePackages.qtimageformats
];
}
))
2024-02-06 15:46:26 +01:00
libreoffice-qt
2024-04-10 23:14:55 +02:00
jitsi-meet-electron
2024-04-22 16:44:20 +02:00
thunderbird
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;
2024-07-10 23:02:54 +02:00
package = pkgs.appimage-run.override { extraPkgs = pkgs: [ pkgs.brotli ]; };
2024-04-08 21:02:50 +02:00
};
2024-04-18 16:12:00 +02:00
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-qt;
};
2024-02-08 20:06:24 +01:00
};
2024-07-10 23:02:54 +02:00
nix.settings.system-features = [
"gccarch-alderlake"
"benchmark"
"big-parallel"
"kvm"
"nixos-test"
] ++ map (x: "gccarch-${x}") (lib.systems.architectures.inferiors.alderlake or [ ]);
2024-03-08 18:56:04 +01:00
2024-07-10 23:02:54 +02:00
boot.binfmt.emulatedSystems = [
"riscv64-linux"
"aarch64-linux"
];
2024-07-10 22:12:06 +02:00
2024-07-14 15:22:14 +02:00
catppuccin = {
2024-07-10 22:12:06 +02:00
enable = true;
2024-07-14 15:22:14 +02:00
flavor = "frappe";
accent = "mauve";
2024-07-10 22:12:06 +02:00
};
2023-05-16 14:55:15 +02:00
}