mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Optimized some specialArgs and module argument use
This commit is contained in:
parent
2d75530b6d
commit
18c8365f40
76 changed files with 282 additions and 284 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Module installing brave as default browser
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, wmType, font, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Module installing as default browser
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{ config, lib, pkgs, wmType, font, ... }:
|
||||
{ pkgs, userSettings, ... }:
|
||||
|
||||
{
|
||||
# Module installing librewolf as default browser
|
||||
home.packages = if (wmType == "wayland") then [ pkgs.librewolf-wayland ]
|
||||
home.packages = if (userSettings.wmType == "wayland") then [ pkgs.librewolf-wayland ]
|
||||
else [ pkgs.librewolf ];
|
||||
|
||||
home.sessionVariables = if (wmType == "wayland")
|
||||
home.sessionVariables = if (userSettings.wmType == "wayland")
|
||||
then { DEFAULT_BROWSER = "${pkgs.librewolf-wayland}/bin/librewolf";}
|
||||
else
|
||||
{ DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";};
|
||||
|
||||
home.file.".librewolf/librewolf.overrides.cfg".text = ''
|
||||
defaultPref("font.name.serif.x-western","''+font+''");
|
||||
defaultPref("font.name.serif.x-western","''+userSettings.font+''");
|
||||
|
||||
defaultPref("font.size.variable.x-western",20);
|
||||
defaultPref("browser.toolbars.bookmarks.visibility","always");
|
||||
|
@ -22,7 +22,7 @@
|
|||
defaultPref("privacy.clearOnShutdown.cookies",true);
|
||||
defaultPref("gfx.webrender.software.opengl",false);
|
||||
defaultPref("webgl.disabled",true);
|
||||
pref("font.name.serif.x-western","''+font+''");
|
||||
pref("font.name.serif.x-western","''+userSettings.font+''");
|
||||
|
||||
pref("font.size.variable.x-western",20);
|
||||
pref("browser.toolbars.bookmarks.visibility","always");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkgs, dmenuCmd ? "rofi -dmenu", ... }:
|
||||
{ lib, stdenv, fetchFromGitHub, dmenuCmd ? "rofi -dmenu", ... }:
|
||||
|
||||
let name = "qute-containers";
|
||||
version = "unstable";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, font, qute-containers, ... }:
|
||||
{ config, pkgs, userSettings, ... }:
|
||||
|
||||
{
|
||||
|
||||
|
@ -194,7 +194,7 @@ c.colors.tabs.selected.even.fg = base05
|
|||
c.colors.tabs.selected.even.bg = base02
|
||||
c.colors.webpage.bg = base00
|
||||
|
||||
font = "''+font+''"
|
||||
font = "''+userSettings.font+''"
|
||||
|
||||
c.fonts.default_family = font
|
||||
c.fonts.default_size = '14pt'
|
||||
|
@ -222,7 +222,7 @@ c.fonts.web.family.cursive = font
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -255,7 +255,7 @@ c.fonts.web.family.cursive = font
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -340,7 +340,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -373,7 +373,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -447,7 +447,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -480,7 +480,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -554,7 +554,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -587,7 +587,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -661,7 +661,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -694,7 +694,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -768,7 +768,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -801,7 +801,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
@ -875,7 +875,7 @@ Bard
|
|||
}
|
||||
/*paragraphs*/
|
||||
p {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
|
@ -908,7 +908,7 @@ Bard
|
|||
|
||||
/*xmp tag style for ascii art*/
|
||||
xmp {
|
||||
font-family:''+font+'';
|
||||
font-family:''+userSettings.font+'';
|
||||
|
||||
font-size:22px;
|
||||
color: #''+config.lib.stylix.colors.base01+''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue