support for gnome desktop
This commit is contained in:
parent
0a1647e0e7
commit
f7b9c71006
18 changed files with 155 additions and 143 deletions
|
@ -29,9 +29,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
tdesktop
|
||||
];
|
||||
home.packages = with pkgs; [ tdesktop ];
|
||||
|
||||
home.activation = {
|
||||
install_flatpaks = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (import ./variables.nix) key theme color accent font;
|
||||
let inherit (import ./variables.nix) desktop;
|
||||
in {
|
||||
config = {
|
||||
programs.firefox = {
|
||||
|
@ -16,23 +16,21 @@ in {
|
|||
main = {
|
||||
isDefault = true;
|
||||
settings = {
|
||||
"devtools.theme" = "dark";
|
||||
"devtools.theme" = "auto";
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"browser.tabs.inTitlebar" = 0;
|
||||
"browser.tabs.inTitlebar" = if desktop == "sway" then 0 else 1;
|
||||
|
||||
"media.ffmpeg.vaapi.enabled" = true;
|
||||
"media.ffvpx.enabled" = false;
|
||||
"media.av1.enabled" = false;
|
||||
"media.ffvpx.enabled" = true;
|
||||
"media.av1.enabled" = true;
|
||||
"gfx.webrender.all" = true;
|
||||
};
|
||||
userChrome = ''
|
||||
userChrome = lib.mkIf (desktop == "sway") ''
|
||||
#titlebar { display: none !important; }
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
home.sessionVariables = {
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
};
|
||||
home.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; };
|
||||
};
|
||||
}
|
||||
|
|
14
user/fzf.nix
14
user/fzf.nix
|
@ -1,5 +1,6 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let inherit (import ./variables.nix) key theme color accent font;
|
||||
let
|
||||
inherit (import ./variables.nix) key theme color accent font;
|
||||
|
||||
colors = {
|
||||
"bg+" = color.bg_light;
|
||||
|
@ -21,14 +22,13 @@ in {
|
|||
enable = true;
|
||||
|
||||
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
|
||||
fileWidgetOptions = [ "--preview '${pkgs.bat}/bin/bat --style=numbers --color=always {}'" ];
|
||||
fileWidgetOptions =
|
||||
[ "--preview '${pkgs.bat}/bin/bat --style=numbers --color=always {}'" ];
|
||||
|
||||
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
|
||||
changeDirWidgetOptions = [ "--preview '${pkgs.exa}/bin/exa -T L3 | head -200'" ];
|
||||
changeDirWidgetOptions =
|
||||
[ "--preview '${pkgs.exa}/bin/exa -T L3 | head -200'" ];
|
||||
|
||||
defaultOptions = [
|
||||
color_opts
|
||||
preview_opts
|
||||
];
|
||||
defaultOptions = [ color_opts preview_opts ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let inherit (import ./variables.nix) key theme color accent font;
|
||||
let inherit (import ./variables.nix) key theme color accent font desktop;
|
||||
|
||||
in {
|
||||
imports = [
|
||||
|
@ -8,7 +8,6 @@ in {
|
|||
./kakoune.nix
|
||||
./fish.nix
|
||||
./firefox.nix
|
||||
./sway.nix
|
||||
./hyprland.nix
|
||||
./alacritty.nix
|
||||
./git.nix
|
||||
|
@ -24,9 +23,9 @@ in {
|
|||
./bmenu.nix
|
||||
./fzf.nix
|
||||
./ranger
|
||||
./theme.nix
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
];
|
||||
] ++ lib.optional (desktop == "sway") ./sway.nix;
|
||||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "lelgenio";
|
||||
|
@ -77,14 +76,12 @@ in {
|
|||
libsForQt5.qtstyleplugins
|
||||
qt5.qtsvg
|
||||
|
||||
|
||||
## Network
|
||||
speedtest-cli
|
||||
nmap
|
||||
miniupnpc
|
||||
deluge
|
||||
|
||||
|
||||
## Programming
|
||||
vscode
|
||||
rustup
|
||||
|
|
|
@ -25,6 +25,7 @@ let
|
|||
fi
|
||||
'';
|
||||
in {
|
||||
imports = [ ./theme.nix ];
|
||||
config = {
|
||||
wayland.windowManager.sway = let
|
||||
mod = "Mod4";
|
||||
|
|
|
@ -34,7 +34,7 @@ with pkgs.uservars; {
|
|||
[Appearance]
|
||||
# color_scheme_path=/nix/store/f07mk0vrm47jxw3y5v99hxncy0w4vcyq-qt5ct-1.5/share/qt5ct/colors/darker.conf
|
||||
custom_palette=false
|
||||
icon_theme=${ icon_theme }
|
||||
icon_theme=${icon_theme}
|
||||
standard_dialogs=default
|
||||
style=kvantum-dark
|
||||
|
||||
|
@ -46,18 +46,16 @@ with pkgs.uservars; {
|
|||
services.xsettingsd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"Gtk/FontName" = "${ font.interface } ${toString font.size.small }";
|
||||
"Net/ThemeName" = "${ gtk_theme }";
|
||||
"Net/IconThemeName" = "${ icon_theme }";
|
||||
"Gtk/CursorThemeName" = "${ cursor_theme }";
|
||||
"Gtk/FontName" = "${font.interface} ${toString font.size.small}";
|
||||
"Net/ThemeName" = "${gtk_theme}";
|
||||
"Net/IconThemeName" = "${icon_theme}";
|
||||
"Gtk/CursorThemeName" = "${cursor_theme}";
|
||||
"Gtk/CursorThemeSize" = 24;
|
||||
"Net/SoundThemeName" = "freedesktop" ;
|
||||
"Net/SoundThemeName" = "freedesktop";
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
};
|
||||
home.sessionVariables = { QT_QPA_PLATFORMTHEME = "qt5ct"; };
|
||||
home.packages = with pkgs; [
|
||||
libsForQt5.qt5ct
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
|
|
|
@ -96,4 +96,5 @@ in rec {
|
|||
};
|
||||
|
||||
dmenu = "bmenu";
|
||||
desktop = "sway";
|
||||
}
|
||||
|
|
|
@ -102,7 +102,8 @@ in {
|
|||
format-bluetooth-muted = "";
|
||||
format-muted = "ﱝ";
|
||||
format-icons = {
|
||||
"alsa_output.pci-0000_09_00.4.analog-stereo" = [ " 奄" " 奔" " 墳" ];
|
||||
"alsa_output.pci-0000_09_00.4.analog-stereo" =
|
||||
[ " 奄" " 奔" " 墳" ];
|
||||
|
||||
headphone = [ " 奄" " 奔" " 墳" ];
|
||||
handsfree = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue