373 lines
11 KiB
Nix
373 lines
11 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
|
in
|
|
{
|
|
imports = [ <home-manager/nixos> ];
|
|
|
|
# systemd.user.services.barrierc = {
|
|
# Unit = {
|
|
# Description = "Barrier Server daemon";
|
|
# After = [ "graphical-session-pre.target" ];
|
|
# PartOf = [ "graphical-session.target" ];
|
|
# };
|
|
# Install.WantedBy = [ "graphical-session.target" ];
|
|
# Service.ExecStart = "${unstable.pkgs.barrier}/bin/barrierc -c ~/.barrier";
|
|
# };
|
|
|
|
home-manager.users.alex = { pkgs, ... }: {
|
|
home = {
|
|
file = {
|
|
".bin/rofi-default-sink.sh" = {
|
|
executable = true;
|
|
source = ./bin/rofi-default-sink.sh;
|
|
};
|
|
};
|
|
packages = with unstable.pkgs; [
|
|
arandr
|
|
baobab
|
|
barrier
|
|
evince
|
|
gnome.eog
|
|
gnome.file-roller
|
|
gnome.gnome-calculator
|
|
keepassxc
|
|
libnotify
|
|
|
|
swaylock
|
|
swayidle
|
|
wl-clipboard
|
|
mako # notification daemon
|
|
alacritty # Alacritty is the default terminal in the config
|
|
dmenu # Dmenu is the default in the config but i recommend wofi since its wayland native
|
|
];
|
|
};
|
|
|
|
xdg.desktopEntries = {
|
|
defaultSink = {
|
|
name = "Default Sink";
|
|
exec = "/home/alex/.bin/rofi-default-sink.sh";
|
|
terminal = false;
|
|
};
|
|
};
|
|
|
|
gtk = {
|
|
enable = true;
|
|
font = {
|
|
name = "Liberation Sans Regular";
|
|
size = 12;
|
|
};
|
|
gtk3 = {
|
|
# bookmarks = [
|
|
# "file:///home/alex/Downloads"
|
|
# "file:///home/alex/Nextcloud"
|
|
# "file:///mnt/second"
|
|
# "smb://192.168.0.100/storage/"
|
|
# "file:///home/alex/Workspace"
|
|
# "file:///home/alex/3D%20Print"
|
|
# "file:///home/alex/Sync"
|
|
# ];
|
|
extraConfig = {
|
|
gtk-application-prefer-dark-theme = 1;
|
|
};
|
|
# extraCss = ''
|
|
# decoration
|
|
# {
|
|
# border-radius: 0px 0px 0 0;
|
|
# border-width: 0px;
|
|
# /*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
|
|
# box-shadow: none;
|
|
# margin: 0px;
|
|
# }
|
|
|
|
# decoration:backdrop
|
|
# {
|
|
# border-radius: 0px 0px 0 0;
|
|
# border-width: 0px;
|
|
# /*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
|
|
# box-shadow: none;
|
|
# margin: 0px;
|
|
# }
|
|
# '';
|
|
};
|
|
iconTheme = {
|
|
package = pkgs.pantheon.elementary-icon-theme;
|
|
name = "elementary";
|
|
};
|
|
theme = {
|
|
package = pkgs.pantheon.elementary-gtk-theme;
|
|
name = "elementary";
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
vscode = {
|
|
enable = true;
|
|
package = unstable.pkgs.vscode;
|
|
extensions = with unstable.pkgs.vscode-extensions; [
|
|
bbenoist.nix
|
|
eamodio.gitlens
|
|
editorconfig.editorconfig
|
|
ms-azuretools.vscode-docker
|
|
ms-vsliveshare.vsliveshare
|
|
ms-vscode.cpptools
|
|
mskelton.one-dark-theme
|
|
ms-kubernetes-tools.vscode-kubernetes-tools
|
|
ryu1kn.partial-diff
|
|
];
|
|
# userSettings = {
|
|
# #"terminal.integrated.fontFamily" = "Hack";
|
|
# "workbench.colorTheme" = "Hyper Term Black";
|
|
# "window.titleBarStyle" = "custom";
|
|
# };
|
|
};
|
|
|
|
rofi = {
|
|
enable = true;
|
|
lines = 10;
|
|
borderWidth = 2;
|
|
scrollbar = false;
|
|
padding = 50;
|
|
font = "Liberation Sans Regular 20";
|
|
separator = "solid";
|
|
colors = {
|
|
window = {
|
|
background = "#dd000000";
|
|
border = "#a6a6a6";
|
|
separator = "#a6a6a6";
|
|
};
|
|
rows = {
|
|
normal = {
|
|
background = "#00000000";
|
|
foreground = "#a6a6a6";
|
|
backgroundAlt = "#00000000";
|
|
highlight = {
|
|
background = "#a6a6a6";
|
|
foreground = "#000000";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
extraConfig = {
|
|
modi = "drun,window";
|
|
show-icons = true;
|
|
};
|
|
};
|
|
|
|
mpv = {
|
|
enable = true;
|
|
config = {
|
|
hwdec = "auto-safe";
|
|
vo = "gpu";
|
|
profile = "gpu-hq";
|
|
};
|
|
};
|
|
|
|
|
|
kitty = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
enable_audio_bell false
|
|
|
|
background #000000
|
|
foreground #e9e9e9
|
|
cursor #e9e9e9
|
|
selection_background #424242
|
|
color0 #000000
|
|
color8 #000000
|
|
color1 #d44d53
|
|
color9 #d44d53
|
|
color2 #b9c949
|
|
color10 #b9c949
|
|
color3 #e6c446
|
|
color11 #e6c446
|
|
color4 #79a6da
|
|
color12 #79a6da
|
|
color5 #c396d7
|
|
color13 #c396d7
|
|
color6 #70c0b1
|
|
color14 #70c0b1
|
|
color7 #fffefe
|
|
color15 #fffefe
|
|
selection_foreground #000000
|
|
'';
|
|
};
|
|
};
|
|
|
|
services = {
|
|
# picom = {
|
|
# enable = true;
|
|
# blur = true;
|
|
# shadow = true;
|
|
# vSync = true;
|
|
# };
|
|
|
|
# dunst = {
|
|
# enable = true;
|
|
# settings = {
|
|
# global = {
|
|
# font = "SF Pro Display Regular 12";
|
|
# markup = "yes";
|
|
# format = "%s %p\n%b";
|
|
# sort = "yes";
|
|
# indicate_hidden = "no";
|
|
# alignment = "center";
|
|
# bounce_freq = 0;
|
|
# show_age_threshold = 60;
|
|
# word_wrap = "yes";
|
|
# ignore_newline = "no";
|
|
# geometry = "300x0-5-5";
|
|
# shrink = "yes";
|
|
# transparency = 0;
|
|
# idle_threshold = 120;
|
|
# monitor = 0;
|
|
# follow = "mouse";
|
|
# sticky_history = "yes";
|
|
# history_length = 20;
|
|
# show_indicators = "no";
|
|
# line_height = 0;
|
|
# separator_height = 1;
|
|
# stack_duplicates = "no";
|
|
# padding = 8;
|
|
# horizontal_padding = 8;
|
|
# separator_color = "frame";
|
|
# startup_notification = true;
|
|
# # dmenu = /usr/bin/dmenu -p dunst;
|
|
# # browser = /usr/bin/firefox -new-tab;
|
|
# icon_position = "left";
|
|
# icon_path = "/usr/share/icons/Arc";
|
|
# max_icon_size = 64;
|
|
# };
|
|
|
|
# frame = {
|
|
# width = 1;
|
|
# color = "#A6A6A6";
|
|
# };
|
|
|
|
# urgency_low = {
|
|
# background = "#000000";
|
|
# foreground = "#A6A6A6";
|
|
# timeout = 4;
|
|
# };
|
|
|
|
# urgency_normal = {
|
|
# background = "#000000";
|
|
# foreground = "#A6A6A6";
|
|
# timeout = 4;
|
|
# };
|
|
|
|
# urgency_critical = {
|
|
# background = "#900000";
|
|
# foreground = "#ffffff";
|
|
# timeout = 16;
|
|
# };
|
|
# };
|
|
# };
|
|
|
|
# sxhkd = {
|
|
# enable = true;
|
|
# keybindings = {
|
|
# "super + x" = "notify-send Time $(date '+%H:%M')";
|
|
# "super + z" = "notify-send Battery $(cat /sys/class/power_supply/BAT0/capacity)%";
|
|
# "alt + Tab" = "rofi -show window";
|
|
# "super + Return" = "kitty";
|
|
# "super + shift + Return" = "rofi -show drun";
|
|
# "super + Escape" = "pkill -USR1 -x sxhkd";
|
|
# "super {_,shift + }Tab" = "bspc node -f {next,prev}";
|
|
# "super + shift + c" = "bspc node -c";
|
|
# "super + a" = "bspc node @/ --flip vertical";
|
|
# "super + d" = ''layer=normal; \
|
|
# bspc query -N -n "focused.$\{layer\}" && layer=below; \
|
|
# bspc node -l "$layer"'';
|
|
# "super + {s,f,k}" =
|
|
# ''state={floating,fullscreen,pseudo_tiled}; \
|
|
# bspc query -N -n "focused.$\{state\}" && state=tiled; \
|
|
# bspc node -t "$state" '';
|
|
# "super + alt + {Left,Down,Up,Right}" = "bspc node -p {west,south,north,east}";
|
|
# "super + ctrl + {Left,Right,Up,Down}" = "xdo move {-x -50,-x +50,-y -50,-y +50}";
|
|
# "super + ctrl + alt + {Left,Right,Up,Down}" = "xdo resize {-w -50,-w +50,-h -50,-h +50}";
|
|
# "super + {_,shift + }{Left,Down,Up,Right}" = "bspc node -{f,s} {west,south,north,east}";
|
|
# "super + m" = "bspc node -s biggest";
|
|
# "super + l" = "~/.bin/lock";
|
|
# "super + ctrl + space" = "bspc node -p cancel";
|
|
# "super + apostrophe" = "bspc node -s last";
|
|
# "super + ctrl + comma" = "bspc node @/ --rotate 90";
|
|
# "super + shift + comma" = "bspc node @/ --circulate forward";
|
|
# "super + {1-9,0}" = "bspc desktop -f '{I,II,III,IV,V,VI,VII,VIII,IX,X}' && notify-send `bspc query -D -d --names`";
|
|
# "super + shift + {1-9,0}" = "bspc node -d '{I,II,III,IV,V,VI,VII,VIII,IX,X}'";
|
|
# # "XF86AudioMute" = "pulseaudio-ctl mute";
|
|
# # "XF86AudioLowerVolume" = "pulseaudio-ctl down";
|
|
# # "XF86AudioRaiseVolume" = "pulseaudio-ctl up";
|
|
# "Print" = "flameshot gui";
|
|
# };
|
|
# };
|
|
|
|
nextcloud-client = {
|
|
enable = true;
|
|
startInBackground = true;
|
|
};
|
|
|
|
redshift = {
|
|
enable = true;
|
|
duskTime = "21:00-22:00";
|
|
dawnTime = "06:30-07:00";
|
|
};
|
|
|
|
flameshot.enable = true;
|
|
};
|
|
|
|
# xsession = {
|
|
# enable = true;
|
|
# pointerCursor = {
|
|
# defaultCursor = "left_ptr";
|
|
# name = "elementary";
|
|
# package = pkgs.pantheon.elementary-icon-theme;
|
|
# };
|
|
# windowManager = {
|
|
# command = pkgs.lib.mkForce ''
|
|
# ${pkgs.bspwm}/bin/bspwm -c ~/.config/bspwm/bspwmrc &
|
|
# ${pkgs.xfce.xfce4-session}/bin/xfce4-session
|
|
# '';
|
|
# bspwm = {
|
|
# enable = true;
|
|
# extraConfig = ''
|
|
# bspc wm --adopt-orphans
|
|
#
|
|
# bspc subscribe monitor_add monitor_remove| while read -r a event; do
|
|
# node /home/alex/Sync/windows.js
|
|
# done &
|
|
# '';
|
|
# settings = {
|
|
# border_width = 4;
|
|
# window_gap = 5;
|
|
# top_padding = 0;
|
|
# left_padding = 0;
|
|
# right_padding = 0;
|
|
# bottom_padding = 0;
|
|
# split_ratio = 0.50;
|
|
# borderless_monocle = true;
|
|
# single_monocle = true;
|
|
# gapless_monocle = true;
|
|
# focus_follows_pointer = true;
|
|
# pointer_follows_monitor = true;
|
|
# pointer_follows_focus = false;
|
|
# center_pseudo_tiled = true;
|
|
# automatic_scheme = "alternate";
|
|
# remove_unplugged_monitors = true;
|
|
# remove_disabled_monitors = true;
|
|
# normal_border_color = "#333333";
|
|
# focused_border_color = "#666666";
|
|
# presel_feedback_color = "#000000";
|
|
# };
|
|
# };
|
|
# };
|
|
# };
|
|
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
wrapperFeatures.gtk = true ;
|
|
};
|
|
};
|
|
}
|