This commit is contained in:
jopejoe1 2023-12-30 23:39:33 +01:00
parent 673524b947
commit 9ad1975f72
33 changed files with 358 additions and 471 deletions

View file

@ -1,10 +1,7 @@
{ config, pkgs, lib, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware.nix
];
imports = [ ./hardware.nix ];
jopejoe1 = {
audio = {
@ -24,75 +21,71 @@
root.enable = true;
};
networking.hostName = "kami";
networking.hostId = "16c22faf";
services.hardware.openrgb.enable = true;
services.fwupd.enable = true;
nixpkgs.config = {
cudaSupport = true;
allowAliases = false;
allowUnfree = true;
networking = {
hostName = "kami";
hostId = "16c22faf";
};
services.xserver.desktopManager.kodi.enable = true;
services = {
hardware.openrgb.enable = true;
fwupd.enable = true;
xserver = {
videoDrivers = [ "nvidia" ];
layout = "de";
};
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nixpkgs = {
config = { cudaSupport = true; };
hostPlatform = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
# gcc.arch = "alderlake";
};
};
#boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelPackages = pkgs.linuxPackages_testing;
networking.networkmanager.enable = true;
boot = {
kernelPackages = pkgs.linuxPackages_testing;
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
editor = false;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
};
time.timeZone = "Europe/Berlin";
services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
services.logmein-hamachi.enable = true;
programs.haguichi.enable = true;
#boot.kernelParams = [ "module_blacklist=i915" ];
fonts.packages = with pkgs; [
google-fonts
noto-fonts
noto-fonts-color-emoji
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-emoji-blob-bin
nerdfonts
league-of-moveable-type
twitter-color-emoji
];
hardware = {
opengl = {
enable = true;
driSupport32Bit = true;
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
};
};
environment.systemPackages = with pkgs; [
mcrcon
prismlauncher
libsForQt5.discover
skypeforlinux
jetbrains.pycharm-community
jetbrains.idea-community
carla
#devolo-dlan-cockpit
libsForQt5.qtstyleplugin-kvantum
mixxx
picard
mangohud
goverlay
strawberry
whatsapp-for-linux
qdirstat
teams-for-linux
webex
discord
element-desktop
mumble
(python3.withPackages(ps: with ps; [ beautifulsoup4 requests]))
# Theming
catppuccin-kvantum
catppuccin-kde
@ -100,19 +93,10 @@
tela-icon-theme
];
programs.java = {
enable = true;
binfmt = true;
};
hardware.nvidia.modesetting.enable = true;
services.flatpak.enable = true;
programs = {
dconf.enable = true;
droidcam.enable = true;
#sysdig.enable = true;
sysdig.enable = true;
xwayland.enable = true;
kdeconnect.enable = true;
gamemode.enable = true;
@ -125,31 +109,9 @@
enable = true;
keyMap = "de";
};
services.xserver = {
layout = "de";
};
#boot.plymouth = {
# enable = true;
#themePackages = [ pkgs.catppuccin-plymouth ];
#theme = "catppuccin-frappe";
# };
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.systemd-boot.configurationLimit = 10;
# https://github.com/NixOS/nixpkgs/blob/c32c39d6f3b1fe6514598fa40ad2cf9ce22c3fb7/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L66
boot.loader.systemd-boot.editor = false;
# Re-Compile everything for my specific cpu
nix.settings.system-features = ["gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test"];
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
nixpkgs.hostPlatform = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
# gcc.arch = "alderlake";
};
nix.settings.system-features =
[ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ];
systemd.services.nix-daemon.serviceConfig.LimitNOFILE =
lib.mkForce 1048576000;
}

View file

@ -4,8 +4,7 @@
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
hardware.nvidia.prime = {
offload.enable = false;
@ -18,7 +17,8 @@
nvidiaBusId = "PCI:1:0:0";
};
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules =
[ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
@ -26,16 +26,16 @@
zramSwap.enable = true;
fileSystems = {
# "/" = {
# "/" = {
# device = "/dev/disk/by-uuid/99a47ace-7e69-4520-b914-d4fe5b31dc79";
# fsType = "btrfs";
# options = [ "subvol=@" "compress=zstd:8" ];
# fsType = "btrfs";
# options = [ "subvol=@" "compress=zstd:8" ];
#};
# "/" = {
# "/" = {
# device = "none";
# fsType = "tmpfs";
# options = [ "size=4G" "mode=755" ]; # mode=755 so only root can write to those files
# };
# fsType = "tmpfs";
# options = [ "size=4G" "mode=755" ]; # mode=755 so only root can write to those files
# };
"/" = {
device = "/dev/nvme0n1p2";
fsType = "bcachefs";
@ -51,12 +51,12 @@
"/media/gaming" = {
device = "/dev/disk/by-uuid/4038F97238F966F6";
fsType = "ntfs";
options = [ "rw" "uid=1000"];
options = [ "rw" "uid=1000" ];
};
#"/media/zfs" = {
# device = "jopejoe1";
# fsType = "zfs";
# };
# device = "jopejoe1";
# fsType = "zfs";
# };
};
swapDevices = [ ];
@ -71,5 +71,6 @@
#nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}