Nix #2

Merged
DashieTM merged 23 commits from nix into main 2024-04-22 20:38:46 +02:00
21 changed files with 477 additions and 208 deletions
Showing only changes of commit 6ddb5d9e6b - Show all commits

View file

@ -16,6 +16,7 @@
gnome.adwaita-icon-theme gnome.adwaita-icon-theme
bibata-cursors bibata-cursors
xorg.xkbutils xorg.xkbutils
libxkbcommon
]; ];
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [

View file

@ -0,0 +1,74 @@
{ pkgs, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable networking
networking.networkmanager.enable = true;
services.flatpak.enable = true;
# Set your time zone.
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Configure keymap in X11
services.xserver = {
xkb.layout = "us";
xkb.variant = "";
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.variables = {
XDG_CACHE_HOME = "$HOME/.cache";
DIRENV_LOG_FORMAT = "";
};
# allows user change later on
users.mutableUsers = true;
users.users.dashie = {
isNormalUser = true;
description = "dashie";
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
packages = with pkgs; [
home-manager
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
# this password will only last for the first login
# e.g. login, then change to whatever else, this also ensures no public hash is available
password = "firstlogin";
};
nix.settings = {
builders-use-substitutes = true;
# substituters to use
substituters = [
"https://anyrun.cachix.org"
];
trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
system.stateVersion = "unstable";
}

View file

@ -5,5 +5,6 @@
./env.nix ./env.nix
./xkb_layout.nix ./xkb_layout.nix
./base_packages.nix ./base_packages.nix
./common_hardware.nix
]; ];
} }

4
nix/fix/default.nix Normal file
View file

@ -0,0 +1,4 @@
#{pkgs, ...}:{
# hello = pkgs.callPackage ./ncspot.nix;
#}
{}

77
nix/fix/ncspot.nix Normal file
View file

@ -0,0 +1,77 @@
{ pkgs
, stdenv
, lib
, fetchFromGitHub
, rustPlatform
, withALSA ? false
, withClipboard ? true
, withCover ? false
, withPulseAudio ? true
, withPortAudio ? false
, withMPRIS ? true
, withNotify ? true
, withCross ? true
, nix-update-script
, testers
, ncspot
}:
rustPlatform.buildRustPackage rec {
pname = "ncspot";
version = "1.1.0";
src = fetchFromGitHub {
owner = "hrkfdn";
repo = "ncspot";
rev = "v${version}";
hash = "sha256-RgA3jV/vD6qgIVQCZ0Sm+9CST4SlqN4MUurVM3nIdh0=";
};
cargoHash = "sha256-8ZUgm1O4NmZpxgNRKnh1MNhiFNoBWQHo22kyP3hWJwI=";
nativeBuildInputs = [ pkgs.pkg-config ]
++ lib.optional withClipboard pkgs.python3;
buildInputs = [ pkgs.ncurses ]
++ lib.optional stdenv.isLinux pkgs.openssl
++ lib.optional withALSA pkgs.alsa-lib
++ lib.optional withClipboard pkgs.xorg.libxcb
++ lib.optional withCover pkgs.ueberzug
++ lib.optional withPulseAudio pkgs.libpulseaudio
++ lib.optional withPortAudio pkgs.portaudio
++ lib.optional (withMPRIS || withNotify) pkgs.dbus
++ lib.optional stdenv.isDarwin pkgs.Cocoa;
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DNCURSES_UNCTRL_H_incl";
buildNoDefaultFeatures = true;
buildFeatures = [ "cursive/pancurses-backend" ]
++ lib.optional withALSA "alsa_backend"
++ lib.optional withClipboard "share_clipboard"
++ lib.optional withCover "cover"
++ lib.optional withPulseAudio "pulseaudio_backend"
++ lib.optional withPortAudio "portaudio_backend"
++ lib.optional withMPRIS "mpris"
++ lib.optional withCross "crossterm_backend"
++ lib.optional withNotify "notify";
postInstall = ''
install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = ncspot; };
};
meta = with lib; {
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";
homepage = "https://github.com/hrkfdn/ncspot";
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ marsam liff ];
mainProgram = "ncspot";
};
}

46
nix/fix/oxicalc.nix Normal file
View file

@ -0,0 +1,46 @@
{ pkgs
, lib
, fetchFromGitHub
}:
let
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage rec {
pname = "oxicalc";
version = "0.2.4";
src = fetchFromGitHub {
owner = "DashieTM";
repo = "OxiCalc";
rev = "${version}";
hash = "sha256-7qrnA0jnLg2mckpxCe66+axU3jE6nOBu7HefmP8I2Xc=";
};
cargoHash = "sha256-nxLXT9SVorsgj7qzwX8Ipx8SDvyTYMAcpepTg62QL7o=";
nativeBuildInputs = with pkgs;[ pkg-config ];
buildInputs = with pkgs;[
gtk4
libadwaita
];
postInstall = ''
install -D --mode=444 $src/${pname}.desktop $out/share/applications/${pname}.desktop
install -D --mode=444 $src/${pname}.svg $out/share/pixmaps/${pname}.svg
'';
meta = with lib; {
description = "A small, simple calculator written in rust/gtk4";
homepage = "https://github.com/DashieTM/OxiCalc";
changelog = "https://github.com/DashieTM/OxiCalc/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "oxicalc";
};
}

52
nix/fix/oxidash.nix Normal file
View file

@ -0,0 +1,52 @@
{ pkgs
, lib
, fetchFromGitHub
}:
let
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage rec {
pname = "oxidash";
version = "1.0";
src = fetchFromGitHub {
owner = "DashieTM";
repo = "OxiDash";
rev = "${version}";
hash = "sha256-GVkmqwn3mHriMHUfEej4LW0MaYURqtsftC5L+Cox+5E=";
};
cargoHash = "sha256-seFHiBht0vc+iqQw5bd22qVvdhCMqDthWuth3NTm8OY=";
nativeBuildInputs = with pkgs;[ pkg-config glib ];
buildInputs = with pkgs;[
dbus
gtk4
gtk4-layer-shell
libadwaita
];
#postInstall = ''
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
#'';
#passthru = {
# updateScript = nix-update-script { };
# tests.version = testers.testVersion { package = oxinoti; };
#};
meta = with lib; {
description = "A work in progress notification daemon made with rust and gtk.";
homepage = "https://github.com/DashieTM/OxiDash";
changelog = "https://github.com/DashieTM/OxiDash/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "oxidash";
};
}

51
nix/fix/oxinoti.nix Normal file
View file

@ -0,0 +1,51 @@
{ pkgs
, lib
, fetchFromGitHub
}:
let
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage rec {
pname = "oxinoti";
version = "1.0";
src = fetchFromGitHub {
owner = "DashieTM";
repo = "OxiNoti";
rev = "${version}";
hash = "sha256-XZMfJ2kUTd8+XiDgZFbG1sOPt37e4M+1rgp4Bdlej7s=";
};
cargoHash = "sha256-jIdev6K5MQ8jASDo1KWU89rSLd9UhI2MhTT4l7pP+tA=";
nativeBuildInputs = with pkgs;[ pkg-config ];
buildInputs = with pkgs;[
dbus
gtk3
gtk-layer-shell
];
#postInstall = ''
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
#'';
#passthru = {
# updateScript = nix-update-script { };
# tests.version = testers.testVersion { package = oxinoti; };
#};
meta = with lib; {
description = "A work in progress notification daemon made with rust and gtk.";
homepage = "https://github.com/DashieTM/OxiNoti";
changelog = "https://github.com/DashieTM/OxiNoti/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "oxinoti";
};
}

42
nix/fix/oxipaste.nix Normal file
View file

@ -0,0 +1,42 @@
{ pkgs
, lib
, fetchFromGitHub
}:
let
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage rec {
pname = "oxipaste";
version = "1.0";
src = fetchFromGitHub {
owner = "DashieTM";
repo = "OxiPaste";
rev = "${version}";
hash = "sha256-2copt808b4cpmE8HO2H960xLs7OegvOUYYS/6z7fNMk=";
};
cargoHash = "sha256-RXaL5y0hohP9VJ7IJCEfdJjyxwY2l555xSwRa9ZiNKc=";
nativeBuildInputs = with pkgs;[ pkg-config ];
buildInputs = with pkgs;[
dbus
gtk4
libadwaita
gtk4-layer-shell
];
meta = with lib; {
description = "A work in progress notification daemon made with rust and gtk.";
homepage = "https://github.com/DashieTM/OxiPaste";
changelog = "https://github.com/DashieTM/OxiPaste/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "oxipaste";
};
}

41
nix/fix/oxishut.nix Normal file
View file

@ -0,0 +1,41 @@
{ pkgs
, lib
, fetchFromGitHub
}:
let
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
rustPlatform = pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
in
rustPlatform.buildRustPackage rec {
pname = "oxishut";
version = "1.0";
src = fetchFromGitHub {
owner = "DashieTM";
repo = "OxiShut";
rev = "${version}";
hash = "sha256-aCNnNxmIHq+IjjviWNGSHfdXT55s367GTAeQoaTZ/KA=";
};
cargoHash = "sha256-UeoBSHwMGfhkgRT7kmelcG3/omtB03Wh4IZrTy3yf3Y=";
nativeBuildInputs = with pkgs;[ pkg-config glib ];
buildInputs = with pkgs;[
gtk4
libadwaita
gtk4-layer-shell
];
meta = with lib; {
description = "";
homepage = "https://github.com/DashieTM/OxiShut";
changelog = "https://github.com/DashieTM/OxiShut/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "oxishut";
};
}

View file

@ -33,23 +33,27 @@
config = { config = {
allowUnfree = true; allowUnfree = true;
}; };
overlays = [
# because allowing rust nightly is too hard by default....
(import (fetchTarball { url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"; sha256 = "sha256:06al2zlkyf14pz0i0q0ah18ygijra8l5qwd8rnm1bp9l6g8gp5zk"; }))
];
}; };
base_imports = [ base_imports = [
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
./base/default.nix ./base/default.nix
./programs
]; ];
in in
#inputs.flake-parts.lib.mkFlake { inherit inputs; }
{ {
#imports = [ homeConfigurations."marmo" = inputs.home-manager.lib.homeManagerConfiguration {
#]; specialArgs = {
#homeConfigurations."marmo" = inputs.home-manager.lib.homeManagerConfiguration { inherit inputs pkgs;
# inherit pkgs; mod = ./hardware/overheating/base_config.nix;
# modules = [ };
# ./hardware/marmo/default.nix modules = [
# ./programs ./hardware/marmo/default.nix
# ]; ];
#}; };
nixosConfigurations."overheating" = inputs.nixpkgs.lib.nixosSystem { nixosConfigurations."overheating" = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs pkgs; inherit inputs pkgs;
@ -57,7 +61,6 @@
}; };
modules = [ modules = [
./hardware/overheating/default.nix ./hardware/overheating/default.nix
./programs
]; ];
}; };
nixosConfigurations."spaceship" = inputs.nixpkgs.lib.nixosSystem { nixosConfigurations."spaceship" = inputs.nixpkgs.lib.nixosSystem {
@ -69,7 +72,6 @@
./hardware/spaceship/default.nix ./hardware/spaceship/default.nix
./hardware/streamdeck.nix ./hardware/streamdeck.nix
./programs/gaming/default.nix ./programs/gaming/default.nix
./programs
] ++ base_imports; ] ++ base_imports;
}; };
}; };

View file

@ -0,0 +1 @@
{}

View file

@ -1 +1 @@
{ config, lib, pkgs, modulesPath, ... }: { } {}

View file

@ -1,78 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# WARNING: Simply change this for each config
networking.hostName = "overheating"; networking.hostName = "overheating";
# Enable networking
networking.networkmanager.enable = true;
services.flatpak.enable = true;
# Set your time zone.
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Configure keymap in X11
services.xserver = {
xkb.layout = "us";
xkb.variant = "";
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.variables = {
XDG_CACHE_HOME = "$HOME/.cache";
DIRENV_LOG_FORMAT = "";
};
# allows user change later on
users.mutableUsers = true;
users.users.dashie = {
isNormalUser = true;
description = "dashie";
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
packages = with pkgs; [
home-manager
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
# this password will only last for the first login
# e.g. login, then change to whatever else, this also ensures no public hash is available
password = "firstlogin";
};
nix.settings = {
builders-use-substitutes = true;
# substituters to use
substituters = [
"https://anyrun.cachix.org"
];
trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
system.stateVersion = "unstable";
} }

View file

@ -1,82 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
# amd doesn't let you set high performance otherwhise .....
boot.kernelParams = [ boot.kernelParams = [
"amdgpu.ppfeaturemask=0xffffffff" "amdgpu.ppfeaturemask=0xffffffff"
]; ];
# WARNING: Simply change this for each config
networking.hostName = "spaceship"; networking.hostName = "spaceship";
# Enable networking
networking.networkmanager.enable = true;
services.flatpak.enable = true;
# Set your time zone.
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Configure keymap in X11
services.xserver = {
xkb.layout = "us";
xkb.variant = "";
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.variables = {
XDG_CACHE_HOME = "$HOME/.cache";
DIRENV_LOG_FORMAT = "";
};
# allows user change later on
users.mutableUsers = true;
users.users.dashie = {
isNormalUser = true;
description = "dashie";
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
packages = with pkgs; [
home-manager
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
# this password will only last for the first login
# e.g. login, then change to whatever else, this also ensures no public hash is available
password = "firstlogin";
};
nix.settings = {
builders-use-substitutes = true;
# substituters to use
substituters = [
"https://anyrun.cachix.org"
];
trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
system.stateVersion = "unstable";
} }

View file

@ -1,6 +1,9 @@
{ pkgs { pkgs
, lib
, ... , ...
}: }:
let callPackage = lib.callPackageWith (pkgs);
in
{ {
manual = { manual = {
html.enable = false; html.enable = false;
@ -40,6 +43,24 @@
zenith zenith
nh nh
amberol amberol
(callPackage
../fix/ncspot.nix
{ })
(callPackage
../fix/oxinoti.nix
{ })
(callPackage
../fix/oxidash.nix
{ })
(callPackage
../fix/oxicalc.nix
{ })
(callPackage
../fix/oxipaste.nix
{ })
(callPackage
../fix/oxishut.nix
{ })
]; ];
home.username = "dashie"; home.username = "dashie";

View file

@ -27,6 +27,7 @@ in
]; ];
}; };
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.dashie.imports = [ home-manager.users.dashie.imports = [
{ {
_module = { args = { inherit inputs; }; }; _module = { args = { inherit inputs; }; };

View file

@ -24,5 +24,6 @@
kooha kooha
hyprcursor hyprcursor
hyprpaper hyprpaper
hyprpicker
]; ];
} }

View file

@ -1,40 +1,38 @@
{ { pkgs, ... }: {
xdg.configFile."ncspot/config.toml" = { xdg.configFile."ncspot/config.toml".source = (pkgs.formats.toml { }).generate "ncspot" {
text = '' notify = true;
notify = true shuffle = true;
shuffle = true cover_max_scale = 2;
cover_max_scale = 2 initial_screen = "library";
audio_cache_size = 50000 library_tabs = [ "playlists" ];
initial_screen = "library" theme = {
library_tabs = ["playlists"] background = "#1a1b26";
[theme] primary = "#9aa5ce";
background = "#1a1b26" secondary = "#414868";
primary = "#c0caf5" title = "#9ece6a";
secondary = "#1a1b26" playing = "#7aa2f7";
title = "#e0af68" playing_selected = "#bb9af7";
playing = "#7dcfff" playing_bg = "#24283b";
playing_selected = "#73daca" highlight = "#c0caf5";
playing_bg = "#1a1b26" highlight_bg = "#24283b";
highlight = "#73daca" error = "#414868";
highlight_bg = "#1a1b26" error_bg = "#f7768e";
error = "#c0caf5" statusbar = "#ff9e64";
error_bg = "#f7768e" statusbar_progress = "#7aa2f7";
statusbar = "#24283b" statusbar_bg = "#1a1b26";
statusbar_progress = "#73daca" cmdline = "#c0caf5";
statusbar_bg = "#7dcfff" cmdline_bg = "#24283b";
search_match = "#f7768e";
cmdline_bg = "#24283b" };
search_match = "#bb9af7" keybindings = {
"j" = "move left 1";
[keybindings] "k" = "move down 1";
"j" = "move left 1" "l" = "move up 1";
"k" = "move down 1" ";" = "move right 1";
"l" = "move up 1" };
";" = "move right 1" notification_format = {
title = "%artists";
[notification_format] body = "%title";
title = "%artists" };
body = "%title"
'';
}; };
} }

View file

@ -16,7 +16,7 @@
libreoffice-fresh libreoffice-fresh
pdftk pdftk
# spotify # spotify
ncspot #ncspot
# video editing # video editing
kdenlive kdenlive
# image creation # image creation

View file

@ -5,6 +5,14 @@ let
disabled_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d disabled_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
inactive_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d inactive_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
''; '';
qss = ''
QTabBar::tab:selected {
color: palette(highlight);
}
QMenuBar, QMenu, QToolBar, QStatusBar, QFrame, QScrollBar {
border: none;
}
'';
in in
{ {
xdg.configFile."qt5ct/colors/tokyonight.conf" = { xdg.configFile."qt5ct/colors/tokyonight.conf" = {
@ -14,15 +22,10 @@ in
text = "${color}"; text = "${color}";
}; };
xdg.configFile."qt5ct/qss/tab.qss" = { xdg.configFile."qt5ct/qss/tab.qss" = {
text = text = "${qss}";
'' };
QTabBar::tab:selected { xdg.configFile."qt6ct/qss/tab.qss" = {
color: palette(highlight); text = "${qss}";
}
QMenuBar, QMenu, QToolBar, QStatusBar, QFrame, QScrollBar {
border: none;
}
'';
}; };
xdg.configFile."qt5ct/qt5ct.conf" = { xdg.configFile."qt5ct/qt5ct.conf" = {
text = text =