moves apps to desktop

This commit is contained in:
Moritz Böhme 2021-11-18 17:49:00 +01:00
parent b6cea2ce2a
commit a7c6218f3a
10 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./rofi ./kitty.nix ./zathura.nix ./spotify.nix ./firefox.nix ];
home-manager.users.moritz.home.packages = with pkgs; [
neofetch
keepassxc
xfce.thunar
xfce.xfconf
xfce.tumbler
xfce.exo
libreoffice
signal-desktop
anki
];
services.gvfs = {
enable = true;
package = lib.mkForce pkgs.gnome3.gvfs;
};
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = { home.packages = with pkgs; [ thunderbird ]; };
environment.systemPackages = with pkgs; [ protonmail-bridge ];
systemd.user.services.protonmail-bridge = {
description = "Protonmail Bridge";
enable = true;
script =
"${pkgs.protonmail-bridge}/bin/protonmail-bridge --log-level debug";
path = [
pkgs.gnome3.gnome-keyring
]; # HACK: https://github.com/ProtonMail/proton-bridge/issues/176
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
};
networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ];
}

View file

@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz.programs.firefox = {
enable = true;
profiles."default" = {
extraConfig = "\n";
settings = {
# Dont show warning when accessing about:config
"browser.aboutConfig.showWarning" = false;
# Default Privacy Settings
"browser.contentblocking.category" = "strict";
"privacy.donottrackheader.enabled" = true;
# Hide bookmarks
"browser.toolbars.bookmarks.visibility" = "never";
# Smooth scrolling
"general.smoothScroll.lines.durationMaxMS" = 125;
"general.smoothScroll.lines.durationMinMS" = 125;
"general.smoothScroll.mouseWheel.durationMaxMS" = 200;
"general.smoothScroll.mouseWheel.durationMinMS" = 100;
"general.smoothScroll.msdPhysics.enabled" = true;
"general.smoothScroll.other.durationMaxMS" = 125;
"general.smoothScroll.other.durationMinMS" = 125;
"general.smoothScroll.pages.durationMaxMS" = 125;
"general.smoothScroll.pages.durationMinMS" = 125;
"mousewheel.min_line_scroll_amount" = 40;
"mousewheel.system_scroll_override_on_root_content.enabled" = true;
"mousewheel.system_scroll_override_on_root_content.horizontal.factor" =
175;
"mousewheel.system_scroll_override_on_root_content.vertical.factor" =
175;
"toolkit.scrollbox.horizontalScrollDistance" = 6;
"toolkit.scrollbox.verticalScrollDistance" = 2;
};
};
};
}

View file

@ -0,0 +1,70 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = {
programs.kitty = {
enable = true;
settings = {
scrollback_lines = 10000;
enable_audio_bell = false;
cursor_shape = "underline";
window_padding_width = 3;
};
extraConfig = ''
foreground #f8f8f2
background #282a36
#background #000000
selection_foreground #44475a
selection_background #f8f8f2
url_color #ffb86c
# black
color0 #21222c
color8 #6272a4
# red
color1 #ff5555
color9 #ff6e6e
# green
color2 #50fa7b
color10 #69ff94
# yellow
color3 #f1fa8c
color11 #ffffa5
# blue
color4 #bd93f9
color12 #d6acff
# magenta
color5 #ff79c6
color13 #ff92df
# cyan
color6 #8be9fd
color14 #a4ffff
# white
color7 #f8f8f2
color15 #ffffff
# Cursor colors
cursor #6272a4
cursor_text_color background
# Tab bar colors
active_tab_foreground #44475a
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
'';
font = {
name = "FiraCode Nerd Font";
size = 10;
};
};
};
}

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = {
programs.rofi = {
enable = true;
package = pkgs.rofi.override { plugins = with pkgs; [ rofi-calc ]; };
theme = ./dracula.rasi;
};
home.packages = with pkgs; [ networkmanager_dmenu ];
xdg = {
enable = true;
configFile."networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = rofi
'';
};
};
}

View file

@ -0,0 +1,128 @@
* {
/* Dracula theme colour palette */
drac-bgd: #282a36;
drac-cur: #44475a;
drac-fgd: #f8f8f2;
drac-cmt: #6272a4;
drac-cya: #8be9fd;
drac-grn: #50fa7b;
drac-ora: #ffb86c;
drac-pnk: #ff79c6;
drac-pur: #bd93f9;
drac-red: #ff5555;
drac-yel: #f1fa8c;
font: "FiraCode Nerd Font 14";
foreground: @drac-fgd;
background-color: @drac-bgd;
active-background: @drac-pnk;
urgent-background: @drac-red;
selected-background: @active-background;
selected-urgent-background: @urgent-background;
selected-active-background: @active-background;
separatorcolor: @active-background;
bordercolor: #6272a4;
}
#window {
background-color: @background;
border: 3;
border-radius: 6;
border-color: @bordercolor;
padding: 25;
}
#mainbox {
border: 0;
padding: 5;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @bordercolor;
spacing: 2px ;
scrollbar: false;
padding: 2px 0px 0px ;
}
#element-text {
border: 0;
padding: 1px ;
text-color: @foreground;
}
#element-text normal.normal {
background-color: @background;
}
#element-text normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element-text normal.active {
backgroundr: @active-background;
}
#element-text selected.normal {
background-color: @selected-background;
}
#element-text selected.urgent {
background-color: @selected-urgent-background;
}
#element-text selected.active {
background-color: @selected-active-background;
}
#element-text alternate.normal {
background-color: @background;
}
#element-text alternate.urgent {
background-color: @urgent-background;
}
#element-text alternate.active {
background-color: @active-background;
}
#scrollbar {
width: 2px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button selected {
background-color: @selected-background;
text-color: @foreground;
}
#inputbar {
spacing: 0;
text-color: @foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @foreground;
}
#entry {
spacing: 0;
text-color: @drac-cya;
}
#prompt {
spacing: 0;
text-color: @drac-grn;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @drac-grn;
}

View file

@ -0,0 +1,58 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = {
home.packages = with pkgs; [ spotify-tui ];
services.spotifyd = {
enable = true;
package = pkgs.spotifyd.override { withMpris = true; };
settings = {
global = {
# A command that gets executed and can be used to
# retrieve your username.
username_cmd =
"${pkgs.coreutils}/bin/head -n 1 /run/secrets/spotifyd";
# A command that gets executed and can be used to
# retrieve your password.
password_cmd =
"${pkgs.coreutils}/bin/tail -n 1 /run/secrets/spotifyd";
# The name that gets displayed under the connect tab on
# official clients. Spaces are not allowed!
device_name = "spotifyd";
# The audio bitrate. 96, 160 or 320 kbit/s
bitrate = 320;
# Volume on startup between 0 and 100
initial_volume = "71";
};
};
};
xdg.configFile."spotify-tui/config.yml".text = ''
# Dracula theme
theme:
active: "139,233,253" # current playing song in list
banner: "80,250,123" # the "spotify-tui" banner on launch
error_border: "241,250,140" # error dialog border
error_text: "248,248,242" # error message text (e.g. "Spotify API
# reported error 404")
hint: "241,250,140" # hint text in errors
hovered: "255,184,108" # hovered pane border
inactive: "248,248,242" # borders of inactive panes
playbar_background: "68,71,90" # background of progress bar
playbar_progress: "248,248,242" # filled-in part of the progress bar
playbar_progress_text: "248,248,242" # song length and time played/left
# indicator in the progress bar
playbar_text: "248,248,242" # artist name in player pane
selected: "80,250,123" # a) selected pane border, b) hovered item
# in list, & c) track title in player
text: "248,248,242" # text in panes
header: "248,248,242" # header text in panes (e.g. 'Title',
# 'Artist', etc.)
behavior:
volume_increment: 5
'';
};
}

View file

@ -0,0 +1,58 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.moritz = {
programs.zathura = {
enable = true;
options = {
#
# Startup Options
#
recolor = true;
adjust-open = "width";
#
# Dracula Theme
#
completion-bg = "#282a36";
completion-fg = "#ff79c6";
completion-group-bg = "#282a36";
completion-group-fg = "#6272a4";
completion-highlight-bg = "#44475a";
completion-highlight-fg = "#f8f8f2";
notification-error-bg = "#ff5555";
notification-error-fg = "#f8f8f2";
notification-warning-bg = "#ffb86c";
notification-warning-fg = "#44475a";
notification-bg = "#282a36";
notification-fg = "#f8f8f2";
index-bg = "#282a36";
index-fg = "#f8f8f2";
index-active-bg = "#44475a";
index-active-fg = "#f8f8f2";
default-bg = "#44475a";
default-fg = "#bd93f9";
inputbar-bg = "#282a36";
inputbar-fg = "#8be9fd";
statusbar-bg = "#282a36";
statusbar-fg = "#f8f8f2";
render-loading = true;
render-loading-fg = "#282a36";
render-loading-bg = "#f8f8f2";
#
# Recolor settings
#
recolor-lightcolor = "#282a36";
recolor-darkcolor = "#f8f8f2";
font = "Jetbrains Mono 9";
};
};
};
}

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./bspwm ./polybar ./gtk.nix ];
imports = [ ./apps ./bspwm ./polybar ./gtk.nix ];
home-manager.users.moritz = { services.unclutter.enable = true; };
}