Compare commits

..

4 Commits

Author SHA1 Message Date
Sven Vogel 90992598a2 added extra amdgpu support 2023-12-14 23:15:17 +01:00
Sven Vogel 9996b7d1a3 moved latex to dev/ 2023-12-14 22:02:06 +01:00
Sven Vogel 16dc04416f moved xdg to core/ 2023-12-14 21:56:53 +01:00
Sven Vogel 932ab66aad moved java to core/ 2023-12-14 21:55:48 +01:00
9 changed files with 59 additions and 9 deletions

View File

@ -83,7 +83,6 @@ in
programs.dconf.enable = true;
programs.xwayland.enable = true;
xdg.portal.enable = true;
# exclude packages from plasma5
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
@ -147,8 +146,6 @@ in
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
programs.java.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = (with pkgs; [
@ -218,8 +215,6 @@ in
# networking.firewall.enable = false;
environment.sessionVariables = rec {
_JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd";
# rust
CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "1";

View File

@ -1,6 +1,8 @@
{
imports = [
./java.nix
./dotnet.nix
./printing.nix
./xdg.nix
];
}

9
core/java.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, config, ... }: {
# enable smooth font rendering
environment.sessionVariables = rec {
_JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd";
};
programs.java.enable = true;
}

15
core/xdg.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs, config, ... }: {
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
};
environment.systemPackages = with pkgs; [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
}

View File

@ -5,5 +5,6 @@
./docker-rootless.nix
./platformio.nix
./qemu.nix
./latex.nix
];
}

7
dev/latex.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs, config, ... }: {
environment.systemPackages = with pkgs; [
# LaTeX and tlmgr
texlive.combined.scheme-small
];
}

20
hardware/amdgpu.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, config, ... }: {
# Make the kernel use the correct driver early
boot.initrd.kernelModules = [ "amdgpu" ];
# For 32 bit applications
hardware.opengl.driSupport32Bit = true;
# AMDVLK drivers can be used in addition to the Mesa RADV drivers
hardware.opengl.extraPackages = with pkgs; [
amdvlk
rocmPackages.clr.icd
];
environment.systemPackages = with pkgs; [
nvtop-amd
clinfo
rocmPackages.clr
];
}

5
hardware/default.nix Normal file
View File

@ -0,0 +1,5 @@
{
imports = [
./amdgpu.nix
];
}

View File

@ -40,9 +40,6 @@
discord
signal-desktop
# LaTeX and tlmgr
texlive.combined.scheme-full
godot_4
# command line tools
@ -54,7 +51,6 @@
btop
htop
tmux
nvtop-amd
asciiquarium
pipes
tldr