-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rxyhn
committed
Dec 30, 2023
1 parent
015827d
commit eb2c9e3
Showing
12 changed files
with
188 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{self, ...}: { | ||
{ | ||
home = { | ||
username = "rxyhn"; | ||
homeDirectory = "/home/rxyhn"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
config, | ||
pkgs, | ||
inputs, | ||
... | ||
}: let | ||
firefox-gnome-theme = inputs.self.packages.${pkgs.system}.firefox-gnome-theme; | ||
in { | ||
programs.firefox = { | ||
enable = true; | ||
profiles = { | ||
rxyhn = { | ||
userChrome = '' | ||
@import "${firefox-gnome-theme}/share/firefox-gnome-theme/userChrome.css"; | ||
''; | ||
|
||
userContent = '' | ||
@import "${firefox-gnome-theme}/share/firefox-gnome-theme/userContent.css"; | ||
''; | ||
|
||
extraConfig = builtins.readFile "${firefox-gnome-theme}/share/firefox-gnome-theme/configuration/user.js"; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
config, | ||
pkgs, | ||
... | ||
}: let | ||
browser = ["firefox"]; | ||
associations = { | ||
"text/html" = browser; | ||
"x-scheme-handler/http" = browser; | ||
"x-scheme-handler/https" = browser; | ||
"x-scheme-handler/ftp" = browser; | ||
"x-scheme-handler/about" = browser; | ||
"x-scheme-handler/unknown" = browser; | ||
"application/x-extension-htm" = browser; | ||
"application/x-extension-html" = browser; | ||
"application/x-extension-shtml" = browser; | ||
"application/xhtml+xml" = browser; | ||
"application/x-extension-xhtml" = browser; | ||
"application/x-extension-xht" = browser; | ||
|
||
"audio/*" = ["mpv.desktop"]; | ||
"video/*" = ["mpv.dekstop"]; | ||
"image/*" = ["imv.desktop"]; | ||
"application/json" = browser; | ||
"application/pdf" = ["org.pwmt.zathura.desktop.desktop"]; | ||
"x-scheme-handler/tg" = ["telegramdesktop.desktop"]; | ||
}; | ||
in { | ||
xdg = { | ||
enable = true; | ||
|
||
mimeApps = { | ||
enable = true; | ||
associations.added = associations; | ||
defaultApplications = associations; | ||
}; | ||
|
||
userDirs = { | ||
enable = true; | ||
createDirectories = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
./starship.nix | ||
./zsh.nix | ||
../programs/git.nix | ||
../programs/xdg.nix | ||
]; | ||
|
||
home = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "firefox-gnome-theme"; | ||
version = "108.1"; | ||
|
||
src = fetchFromGitHub { | ||
repo = pname; | ||
owner = "rafaelmardojai"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-1nGpcIG2OLwVi9Y93rJGZXCjJM9mSHHta+6WeqEjZng="; | ||
}; | ||
|
||
dontConfigure = true; | ||
dontBuild = true; | ||
doCheck = false; | ||
|
||
installPhase = '' | ||
mkdir -p $out/share/firefox-gnome-theme | ||
cp -r $src/* $out/share/firefox-gnome-theme | ||
''; | ||
|
||
meta = with lib; { | ||
description = "A GNOME theme for Firefox"; | ||
homepage = "https://github.com/rafaelmardojai/firefox-gnome-theme"; | ||
license = licenses.unlicense; | ||
}; | ||
} |