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 |
@@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./acme.nix
|
||||
./adguard.nix
|
||||
./dnsmasq.nix
|
||||
./ente.nix
|
||||
./kubernetes.nix
|
||||
./kavita.nix
|
||||
|
||||
26
modules/services/dnsmasq.nix
Normal file
26
modules/services/dnsmasq.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
with lib;
|
||||
let cfg = config.custom.services.dnsmasq;
|
||||
in {
|
||||
options.custom.services.dnsmasq = {
|
||||
enable = mkEnableOption "Enables dnsmaq service";
|
||||
server = mkOption { type = types.listOf types.string; };
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
#networking.resolvconf.enable = false;
|
||||
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
resolveLocalQueries = true;
|
||||
settings.server = cfg.server;
|
||||
extraConfig = ''
|
||||
interface=lo
|
||||
bind-interfaces
|
||||
listen-address=127.0.0.1
|
||||
cache-size=1000
|
||||
|
||||
no-negcache
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user