This commit is contained in:
Dmitriy Kholkin 2022-07-07 22:46:27 +03:00
parent 328eae82ef
commit 0b483c6531
10 changed files with 54 additions and 72 deletions

13
flake.lock generated
View File

@ -66,18 +66,6 @@
"type": "github" "type": "github"
} }
}, },
"bibata-tokyonight": {
"flake": false,
"locked": {
"narHash": "sha256-liXppPL6yxxpUpW7XjHIAUSRHX7tj9GPDgCzEGQFu0o=",
"type": "file",
"url": "https://code.ataraxiadev.com/AtaraxiaDev/Bibata-Modern-TokyoNight.git"
},
"original": {
"type": "file",
"url": "https://code.ataraxiadev.com/AtaraxiaDev/Bibata-Modern-TokyoNight.git"
}
},
"blobs": { "blobs": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -638,7 +626,6 @@
"base16": "base16", "base16": "base16",
"base16-horizon-scheme": "base16-horizon-scheme", "base16-horizon-scheme": "base16-horizon-scheme",
"base16-tokyonight-scheme": "base16-tokyonight-scheme", "base16-tokyonight-scheme": "base16-tokyonight-scheme",
"bibata-tokyonight": "bibata-tokyonight",
"home-manager": "home-manager", "home-manager": "home-manager",
"multimc-cracked": "multimc-cracked", "multimc-cracked": "multimc-cracked",
"nix": "nix", "nix": "nix",

View File

@ -29,10 +29,6 @@
url = "github:alukardbf/base16-tokyonight-scheme"; url = "github:alukardbf/base16-tokyonight-scheme";
flake = false; flake = false;
}; };
bibata-tokyonight = {
url = "https://code.ataraxiadev.com/AtaraxiaDev/Bibata-Modern-TokyoNight.git";
flake = false;
};
multimc-cracked = { multimc-cracked = {
url = "https://github.com/AfoninZ/MultiMC5-Cracked.git"; url = "https://github.com/AfoninZ/MultiMC5-Cracked.git";
ref = "develop"; ref = "develop";

View File

@ -28,8 +28,7 @@ with lib; {
android-emulator = self.callPackage ./packages/android-emulator.nix { }; android-emulator = self.callPackage ./packages/android-emulator.nix { };
arkenfox-userjs = pkgs.callPackage ./packages/arkenfox-userjs.nix { arkenfox-repo = inputs.arkenfox-userjs; }; arkenfox-userjs = pkgs.callPackage ./packages/arkenfox-userjs.nix { arkenfox-repo = inputs.arkenfox-userjs; };
bibata-cursors = pkgs.callPackage ./packages/bibata-cursors.nix { }; bibata-cursors-tokyonight = pkgs.callPackage ./packages/bibata-cursors-tokyonight.nix { };
bibata-cursors-tokyonight = pkgs.callPackage ./packages/bibata-cursors-tokyonight.nix { repo = inputs.bibata-tokyonight; };
ceserver = pkgs.callPackage ./packages/ceserver.nix { }; ceserver = pkgs.callPackage ./packages/ceserver.nix { };
gamescope = pkgs.callPackage ./packages/gamescope.nix { }; gamescope = pkgs.callPackage ./packages/gamescope.nix { };
ibm-plex-powerline = pkgs.callPackage ./packages/ibm-plex-powerline.nix { }; ibm-plex-powerline = pkgs.callPackage ./packages/ibm-plex-powerline.nix { };
@ -41,6 +40,7 @@ with lib; {
seadrive-fuse = pkgs.callPackage ./packages/seadrive-fuse.nix { }; seadrive-fuse = pkgs.callPackage ./packages/seadrive-fuse.nix { };
tidal-dl = pkgs.callPackage ./packages/tidal-dl.nix { }; tidal-dl = pkgs.callPackage ./packages/tidal-dl.nix { };
tokyonight-gtk-theme = pkgs.callPackage ./packages/tokyonight-gtk-theme.nix { }; tokyonight-gtk-theme = pkgs.callPackage ./packages/tokyonight-gtk-theme.nix { };
tokyonight-icon-theme = pkgs.callPackage ./packages/tokyonight-icon-theme.nix { };
vscode = master.vscode; vscode = master.vscode;
vscode-fhs = master.vscode-fhs; vscode-fhs = master.vscode-fhs;
xonar-fp = pkgs.callPackage ./packages/xonar-fp.nix { }; xonar-fp = pkgs.callPackage ./packages/xonar-fp.nix { };

View File

@ -1,16 +1,19 @@
{ lib, stdenv, fetchurl, repo ? null }: { lib, stdenv, fetchgit }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bibata-cursors-tokyonight"; pname = "bibata-cursors-tokyonight";
version = "1.0"; version = "1.0";
src = repo; src = fetchgit {
url = "https://code.ataraxiadev.com/AtaraxiaDev/Bibata-Modern-TokyoNight.git";
sha256 = "sha256-PREfEgv+FQZjYAQijY3bHQ/0E/L8HgJUBWeA0vdBkAA=";
};
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = ''
mkdir -p "$out/share/icons" mkdir -p "$out/share/icons"
cp -r * $out/share/icons cp -r $src/Bibata-Modern-TokyoNight $out/share/icons
''; '';
meta = with lib; { meta = with lib; {

View File

@ -1,26 +0,0 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "bibata-cursors";
version = "1.1.1";
src = fetchurl {
url = "https://github.com/ful1e5/Bibata_Cursor/releases/download/v${version}/Bibata.tar.gz";
sha256 = "sha256-AcX30YL4HSqzlmTiC0MIStNWuWllkQqjNbkRTQkpu18=";
};
phases = [ "installPhase" ];
installPhase = ''
mkdir -p "$out/share/icons"
tar -xf $src --directory "$out/share/icons/"
'';
meta = with lib; {
description = "Material Based Cursor";
homepage = "https://github.com/ful1e5/Bibata_Cursor";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}

View File

@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "tokyonight-icon-theme";
version = "unstable-2022-06-21";
src = fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = "Tokyo-Night-GTK-Theme";
rev = "39edc3409c39b2d1ed0b5dd9f8defe9a412acd43";
sha256 = "sha256-CJ4kDi/Z2X4nihtiieP6b6YJWuGzr6LfOBipAXa8ZwI=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -a icons/* $out/share/icons
runHook postInstall
'';
meta = with lib; {
description = "A GTK theme based on the Tokyo Night colour palette";
homepage = "https://github.com/Fausto-Korpsvart/Tokyo-Night-GTK-Theme";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ ];
};
}

View File

@ -62,21 +62,14 @@
float = 8.0; float = 8.0;
}; };
}; };
# font = "IBM Plex Sans";
# fontMono = "IBM Plex Mono";
# fontSerif = "IBM Plex Serif";
# powerlineFont = "IBM Plex Mono for Powerline";
# fallbackFont = "Roboto"; # iconTheme = "Papirus-Dark";
# fallbackFontMono = "Roboto Mono"; # iconPackage = pkgs.papirus-icon-theme;
# fallbackFontSerif = "Roboto Slab"; iconTheme = "tokyonight_dark";
iconPackage = pkgs.tokyonight-icon-theme;
# iconFont = "Font Awesome 5 Free"; cursorPackage = pkgs.bibata-cursors-tokyonight;
# fallbackIcon = "Material Icons"; # cursorPackage = pkgs.bibata-cursors;
iconTheme = "Papirus-Dark";
iconPackage = pkgs.papirus-icon-theme;
cursorPackage = pkgs.bibata-cursors;
cursorSize = 16; cursorSize = 16;
}; };
}; };

View File

@ -1,21 +1,17 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let let
thm = config.lib.base16.theme; thm = config.lib.base16.theme;
profileDir = config.home-manager.users.alukard.home.profileDirectory;
in { in {
environment.sessionVariables = {
XCURSOR_PATH = lib.mkForce "${profileDir}/share/icons";
};
home-manager.users.alukard = { home-manager.users.alukard = {
home.pointerCursor = { home.pointerCursor = {
package = thm.cursorPackage; package = thm.cursorPackage;
name = "Bibata-Modern-Classic"; name = "Bibata-Modern-TokyoNight";
size = thm.cursorSize; size = thm.cursorSize;
gtk.enable = true; gtk.enable = true;
# x11.enable = true; x11.enable = true;
}; };
# home.file.".icons/default" = { # home.file.".icons/default" = {
# source = "${thm.cursorPackage}/share/icons/Bibata-Modern-Classic"; # source = "${thm.cursorPackage}/share/icons/Bibata-Modern-TokyoNight";
# }; # };
}; };
} }

View File

@ -35,7 +35,6 @@ in {
programs.dconf.enable = true; programs.dconf.enable = true;
services.dbus.packages = with pkgs; [ dconf gcr ]; services.dbus.packages = with pkgs; [ dconf gcr ];
home-manager.users.alukard = { home-manager.users.alukard = {
home.packages = [ pkgs.tokyonight-gtk-theme ];
gtk = { gtk = {
enable = true; enable = true;
iconTheme = { iconTheme = {
@ -43,7 +42,7 @@ in {
package = thm.iconPackage; package = thm.iconPackage;
}; };
theme = { theme = {
name = "Tokyonight-Dark-BL"; name = "Generated";
package = pkgs.generated-gtk-theme; package = pkgs.generated-gtk-theme;
}; };
# theme = { # theme = {
@ -55,7 +54,7 @@ in {
size = thm.fontSizes.normal.int; size = thm.fontSizes.normal.int;
}; };
}; };
home.sessionVariables.GTK_THEME = "Generated";
# home.sessionVariables.GTK_THEME = "Tokyonight-Dark-BL"; # home.sessionVariables.GTK_THEME = "Tokyonight-Dark-BL";
home.sessionVariables.GTK_THEME = "Tokyonight-Dark-BL";
}; };
} }

View File

@ -1,6 +1,7 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
environment.sessionVariables = config.home-manager.users.alukard.home.sessionVariables // rec { # environment.sessionVariables = config.home-manager.users.alukard.home.sessionVariables // rec {
environment.sessionVariables = rec {
LESS = "MR"; LESS = "MR";
LESSHISTFILE = "~/.local/share/lesshist"; LESSHISTFILE = "~/.local/share/lesshist";
SYSTEMD_LESS = LESS; SYSTEMD_LESS = LESS;