try out stylix
This commit is contained in:
@@ -16,5 +16,6 @@
|
||||
./openrgb.nix
|
||||
./plasma.nix
|
||||
./shared.nix
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,29 +1,32 @@
|
||||
{lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.graphical.plasma;
|
||||
in
|
||||
{
|
||||
let cfg = config.custom.graphical.plasma;
|
||||
in {
|
||||
options.custom.graphical.plasma = {
|
||||
enable = mkEnableOption "Enables plasma";
|
||||
};
|
||||
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb.layout = config.mainUser.layout;
|
||||
xkb.layout = config.mainUser.layout;
|
||||
xkb.variant = config.mainUser.variant;
|
||||
displayManager.sddm.enable = true;
|
||||
windowManager.i3 = {
|
||||
package = pkgs.i3-gaps;
|
||||
enable = true;
|
||||
configFile = ../../.config/i3/kde-config;
|
||||
};
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
};
|
||||
#displayManager.sddm.settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
|
||||
#displayManager.sddm.wayland.enable = true;
|
||||
|
||||
|
||||
libinput = {
|
||||
enable = true;
|
||||
|
||||
|
||||
# disabling mouse acceleration
|
||||
mouse = {
|
||||
accelProfile = "flat";
|
||||
};
|
||||
mouse = { accelProfile = "flat"; };
|
||||
};
|
||||
};
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
@@ -31,24 +34,23 @@ in
|
||||
#services.desktopManager.plasma6.enable = true;
|
||||
#environment.plasma6.excludePackages = with pkgs.kdePackages; [ ocean-sound-theme spectacle ];
|
||||
|
||||
|
||||
environment.sessionVariables = {
|
||||
__GL_YIELD = "usleep";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
#environment.sessionVariables = {
|
||||
# __GL_YIELD = "usleep";
|
||||
# MOZ_ENABLE_WAYLAND = "1";
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
#};
|
||||
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
#xdg-desktop-portal-gtk
|
||||
];
|
||||
extraPortals = with pkgs;
|
||||
[
|
||||
xdg-desktop-portal-wlr
|
||||
#xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libsForQt5.bismuth # auto tiling
|
||||
wayland-utils
|
||||
|
||||
48
modules/graphical/stylix.nix
Normal file
48
modules/graphical/stylix.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let cfg = config.custom.graphical.stylix;
|
||||
in {
|
||||
options.custom.graphical.stylix = {
|
||||
enable = mkEnableOption "Enables stylix";
|
||||
};
|
||||
|
||||
# https://danth.github.io/stylix/options/nixos.html
|
||||
config =
|
||||
let nerdfonts = pkgs.nerdfonts.override { fonts = [ "Hack" "Noto" ]; };
|
||||
in mkIf cfg.enable {
|
||||
stylix = {
|
||||
polarity = "dark";
|
||||
#image = ./yuyukowallpaper1809.png;
|
||||
#base16Scheme = ../../home-manager/themes/yorha/scheme.yml;
|
||||
base16Scheme =
|
||||
"${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
|
||||
cursor = {
|
||||
size = 24;
|
||||
name = "breeze_cursors";
|
||||
package = pkgs.libsForQt5.breeze-gtk;
|
||||
};
|
||||
opacity = {
|
||||
applications = 0.7;
|
||||
desktop = 0.7;
|
||||
terminal = 0.7;
|
||||
};
|
||||
fonts = {
|
||||
serif = config.stylix.fonts.sansSerif;
|
||||
sansSerif = {
|
||||
package = pkgs.noto-fonts;
|
||||
name = "Noto Sans";
|
||||
};
|
||||
sizes = {
|
||||
applications = 12;
|
||||
desktop = 10;
|
||||
popups = 10;
|
||||
terminal = 12;
|
||||
};
|
||||
monospace = {
|
||||
package = nerdfonts;
|
||||
name = "Hack";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
modules/graphical/yuyukowallpaper1809.png
Normal file
BIN
modules/graphical/yuyukowallpaper1809.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 MiB |
Reference in New Issue
Block a user