Compare commits
2 Commits
5d23126205
...
9c0f3ce601
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9c0f3ce601 | ||
![]() |
e09eea2049 |
@ -42,7 +42,7 @@
|
|||||||
];
|
];
|
||||||
nix.settings.trusted-users = [ "@wheel" ];
|
nix.settings.trusted-users = [ "@wheel" ];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_11;
|
# boot.kernelPackages = pkgs.linuxPackages_6_11;
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
services.getty = {
|
services.getty = {
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
|
./optimized_build.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Generate with `head -c4 /dev/urandom | od -A none -t x4`
|
# Generate with `head -c4 /dev/urandom | od -A none -t x4`
|
||||||
|
30
nix/configuration/hosts/odo/optimized_build.nix
Normal file
30
nix/configuration/hosts/odo/optimized_build.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [ ];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(
|
||||||
|
self: super:
|
||||||
|
let
|
||||||
|
optimizeWithFlags =
|
||||||
|
pkg: flags:
|
||||||
|
pkg.overrideAttrs (old: {
|
||||||
|
NIX_CFLAGS_COMPILE = [ (old.NIX_CFLAGS_COMPILE or "") ] ++ flags;
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
linux_znver4 = optimizeWithFlags super.linux_zen [
|
||||||
|
"-march=znver4"
|
||||||
|
"-mtune=znver4"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelPackages = lib.mkIf (!config.me.buildingIso) (pkgs.linuxPackagesFor pkgs.linux_znver4);
|
||||||
|
}
|
@ -298,11 +298,13 @@ in
|
|||||||
''
|
''
|
||||||
export WLR_RENDERER_ALLOW_SOFTWARE=1
|
export WLR_RENDERER_ALLOW_SOFTWARE=1
|
||||||
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
|
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
|
||||||
|
export QT_QPA_PLATFORMTHEME=gtk3 # Use gtk theme in Qt applications
|
||||||
''
|
''
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
export WLR_RENDERER=vulkan
|
export WLR_RENDERER=vulkan
|
||||||
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
|
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
|
||||||
|
export QT_QPA_PLATFORMTHEME=gtk3 # Use gtk theme in Qt applications
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
@ -366,5 +368,10 @@ in
|
|||||||
source = ./files/mimeapps.list;
|
source = ./files/mimeapps.list;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
home.file = {
|
||||||
|
".config/gtk-3.0/settings.ini" = {
|
||||||
|
source = ./files/settings.ini;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
2
nix/configuration/roles/sway/files/settings.ini
Normal file
2
nix/configuration/roles/sway/files/settings.ini
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Settings]
|
||||||
|
gtk-application-prefer-dark-theme=1
|
Loading…
x
Reference in New Issue
Block a user