mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
rest of misc stuff
This commit is contained in:
parent
bb2057f5d5
commit
07b4757bde
22 changed files with 120 additions and 381 deletions
|
|
@ -9,7 +9,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
cores = 0;
|
cores = 0;
|
||||||
|
|
@ -26,6 +25,7 @@
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
services.gvfs.enable = true;
|
||||||
qt5 = {
|
qt5 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style = "gtk2";
|
style = "gtk2";
|
||||||
|
|
@ -61,12 +61,12 @@
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
};
|
};
|
||||||
#enable ssh
|
#enable ssh
|
||||||
programs = {
|
programs = {
|
||||||
mtr.enable = true;
|
mtr.enable = true;
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services.openssh.enable = true;
|
};
|
||||||
}
|
services.openssh.enable = true;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
(import ./suckless)
|
(import ./suckless)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
{config, pkgs, lib, ...}:
|
|
||||||
{
|
|
||||||
xsession.windowManager.bspwm = {
|
|
||||||
enable = true;
|
|
||||||
startupPrograms = [
|
|
||||||
"polybar left"
|
|
||||||
"polybar middle"
|
|
||||||
"polybar right"
|
|
||||||
"xfce4-power-manager"
|
|
||||||
"xsetroot -cursor_name left_ptr"
|
|
||||||
"xsetroot -solid \"#000000\""
|
|
||||||
"flashfocus"
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
border_width = 0;
|
|
||||||
window_gap = 10;
|
|
||||||
border_radius = 7;
|
|
||||||
normal_border_color = "\#c0caf5";
|
|
||||||
active_border_color = "\#c0caf5";
|
|
||||||
focused_border_color = "\#c0caf5";
|
|
||||||
spilt_ratio = 0.52;
|
|
||||||
borderless_monocle = true;
|
|
||||||
gapless_monocle = true;
|
|
||||||
};
|
|
||||||
monitors = {
|
|
||||||
HDMI-0 = [ "I" "II" "III" "IV" "V" ];
|
|
||||||
eDP-1 = [ "VI" "VII" "VIII" "IX" "X" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,92 +0,0 @@
|
||||||
## @@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
## Flashfocus config file
|
|
||||||
## @@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
|
|
||||||
# Opacity of window during flash.
|
|
||||||
flash-opacity: 0.5
|
|
||||||
|
|
||||||
# Windows are restored to this opacity value at the end of a flash.
|
|
||||||
default-opacity: 1
|
|
||||||
|
|
||||||
# Length of flash in milliseconds.
|
|
||||||
time: 500
|
|
||||||
|
|
||||||
# If true, flashes are not faded out. This will improve performance but flashes
|
|
||||||
# won't be smooth.
|
|
||||||
simple: false
|
|
||||||
|
|
||||||
# Number of animation frames in a flash.
|
|
||||||
ntimepoints: 30
|
|
||||||
|
|
||||||
# Set this to false if you don't want windows to flash on focus.
|
|
||||||
flash-on-focus: true
|
|
||||||
|
|
||||||
# Set this to false if you don't want fullscreen windows to flash.
|
|
||||||
flash-fullscreen: true
|
|
||||||
|
|
||||||
# Whether or not to flash windows if they are the only window on the desktop.
|
|
||||||
# Possible values:
|
|
||||||
# 'always':
|
|
||||||
# Always flash lone windows
|
|
||||||
# 'never':
|
|
||||||
# Never flash lone windows
|
|
||||||
# 'on_open_close':
|
|
||||||
# Lone windows will be flashed only if a) if they were just opened and b)
|
|
||||||
# if another window was just closed.
|
|
||||||
# 'on_switch':
|
|
||||||
# Lone windows will be flashed only upon switching desktops.
|
|
||||||
flash-lone-windows: 'always'
|
|
||||||
|
|
||||||
|
|
||||||
# Defining window-specific flash rules
|
|
||||||
#
|
|
||||||
# X11-based window managers (e.g i3, bspwm)
|
|
||||||
# -----------------------------------------
|
|
||||||
# Flash rules are defined by matching the WM_CLASS property of a window. To get
|
|
||||||
# the WM_CLASS property use 'xprop WM_CLASS' and click on a window. The
|
|
||||||
# property is a tuple of the form (window-id, window-class). The window-class
|
|
||||||
# is usually the name of the application, but not always.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Say I'd like to set all 'termite' windows to 80% opacity but leave other
|
|
||||||
# windows at full opacity:
|
|
||||||
#
|
|
||||||
# rules:
|
|
||||||
# - window-class: Termite
|
|
||||||
# default-opacity: 0.8
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# I also would prefer that firefox windows are not flashed on focus:
|
|
||||||
#
|
|
||||||
# rules:
|
|
||||||
# - window-class: firefox
|
|
||||||
# flash-on-focus: False
|
|
||||||
# - window-class: Termite
|
|
||||||
# default-opacity: 0.8
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# For more complicated rules, you can use (python-style) regexes:
|
|
||||||
#
|
|
||||||
# rules:
|
|
||||||
# - window-id: ^(?!termite)$
|
|
||||||
# default-opacity: 0.8
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Sway
|
|
||||||
# ----
|
|
||||||
# Native wayland apps can be matched using the app_id and window name. These
|
|
||||||
# can be found using `swaymsg -t get_tree`. XWayland apps are matched with
|
|
||||||
# using WM_CLASS as above (this can also be found with `swaymsg`)
|
|
||||||
#
|
|
||||||
# Given that termite is wayland native and firefox is not, the rules above
|
|
||||||
# could instead be written:
|
|
||||||
#
|
|
||||||
# rules:
|
|
||||||
# - window-class: firefox
|
|
||||||
# flash-on-focus: False
|
|
||||||
# - app-id: termite
|
|
||||||
# default-opacity: 0.8
|
|
||||||
#
|
|
||||||
# rules:
|
|
||||||
# - window-name: ^(?!termite)$
|
|
||||||
# default-opacity: 0.8
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./librewolf.nix
|
./librewolf.nix
|
||||||
./bspwm.nix
|
|
||||||
./sxhkd.nix
|
./sxhkd.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}:{
|
{pkgs, ...}:
|
||||||
|
{
|
||||||
programs = {
|
programs = {
|
||||||
librewolf = {
|
librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
vim-moonfly = pkgs.vimUtils.buildVimPlugin {
|
vim-moonfly = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "vim-moonfly";
|
pname = "vim-moonfly";
|
||||||
|
version = "1.0.0";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "bluz71";
|
owner = "bluz71";
|
||||||
repo = "vim-moonfly-colors";
|
repo = "vim-moonfly-colors";
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,18 @@
|
||||||
{
|
{
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
activeOpacity = 1.0;
|
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
experimentalBackends = false;
|
shadow = false;
|
||||||
fade = true;
|
|
||||||
fadeDelta = 4;
|
|
||||||
fadeSteps = [ 0.03 0.03 ];
|
|
||||||
inactiveOpacity = 1.0;
|
|
||||||
menuOpacity = 1.0;
|
|
||||||
shadow = true;
|
|
||||||
shadowExclude = [ "window_type = 'menu'" "class_g = 'firefox'" ];
|
|
||||||
shadowOffsets = [ 25 25 ];
|
|
||||||
shadowOpacity = 0.5;
|
shadowOpacity = 0.5;
|
||||||
vSync = false;
|
vSync = false;
|
||||||
settings = {
|
settings = {
|
||||||
animations = true;
|
|
||||||
animation = {
|
|
||||||
stiffness = 200;
|
|
||||||
window-mass = 0.4;
|
|
||||||
dampening = 20;
|
|
||||||
clamping = false;
|
|
||||||
for-open-window = "zoom";
|
|
||||||
for-unmap-window = "zoom";
|
|
||||||
for-workspace-switch-in = "slide-down";
|
|
||||||
for-workspace-switch-out = "zoom";
|
|
||||||
for-transient-window = "slide-up";
|
|
||||||
};
|
|
||||||
|
|
||||||
blur = false;
|
blur = false;
|
||||||
blurExclude = [
|
|
||||||
"window_type = 'dock'"
|
|
||||||
"window_type = 'menu'"
|
|
||||||
"class_g = 'firefox'"
|
|
||||||
];
|
|
||||||
|
|
||||||
shadow-radius = 25;
|
shadow-radius = 12;
|
||||||
frame-opacity = 1.0;
|
frame-opacity = 1.0;
|
||||||
inactive-opacity-override = false;
|
inactive-opacity-override = false;
|
||||||
corner-radius = 15;
|
corner-radius = 12;
|
||||||
rounded-corners-exclude = [
|
rounded-corners-exclude = [
|
||||||
"window_type = 'desktop'"
|
"window_type = 'desktop'"
|
||||||
"window_type = 'tooltip'"
|
"window_type = 'tooltip'"
|
||||||
|
|
|
||||||
|
|
@ -12,68 +12,21 @@
|
||||||
};
|
};
|
||||||
"colors" = {
|
"colors" = {
|
||||||
background = "#000000";
|
background = "#000000";
|
||||||
foreground = "#495eb8";
|
foreground = "#80a0ff";
|
||||||
blue = "#7aa2f7";
|
blue = "#74b2ff";
|
||||||
alert = "#ad032e";
|
alert = "#ff5189";
|
||||||
deepblue = "#03339c";
|
deepblue = "#36c692";
|
||||||
};
|
|
||||||
"bar/left" = {
|
|
||||||
width = "180px";
|
|
||||||
offset.x = 10;
|
|
||||||
modules.center = "xworkspaces";
|
|
||||||
height = "20pt";
|
|
||||||
radius = 6;
|
|
||||||
fixed.center = false;
|
|
||||||
dpi = 96;
|
|
||||||
offset.y = 10;
|
|
||||||
font = [ "Overpass Nerd Font:style=Regular:size=14;4" "Material Design Icons:style=Regular:size=16;4" ];
|
|
||||||
background = "\${colors.background}";
|
|
||||||
foreground = "\${colors.foreground}";
|
|
||||||
line.size = "3pt";
|
|
||||||
border = {
|
|
||||||
size = "7pt";
|
|
||||||
color = "\${colors.background}";
|
|
||||||
radius = 7;
|
|
||||||
};
|
|
||||||
padding = {
|
|
||||||
left = 0;
|
|
||||||
right = 0;
|
|
||||||
};
|
|
||||||
cursor = {
|
|
||||||
click = "pointer";
|
|
||||||
scroll = "ns-resize";
|
|
||||||
};
|
|
||||||
enable.ipc = true;
|
|
||||||
wm.restack = "bspwm";
|
|
||||||
};
|
};
|
||||||
"bar/middle" = {
|
"bar/middle" = {
|
||||||
width = "130px";
|
width = 100;
|
||||||
offset.x = 895;
|
offset.x = 910;
|
||||||
modules.center = "date";
|
modules.center = "date";
|
||||||
height = "20pt";
|
height = 20;
|
||||||
radius = 6;
|
|
||||||
fixed.center = false;
|
fixed.center = false;
|
||||||
dpi = 96;
|
|
||||||
offset.y = 10;
|
offset.y = 10;
|
||||||
font = [ "Overpass Nerd Font:style=Regular:size=14;4" "Material Design Icons:style=Regular:size=16;4" ];
|
font = [ "Overpass Nerd Font:style=Regular:size=12;5" ];
|
||||||
background = "\${colors.background}";
|
background = "\${colors.background}";
|
||||||
foreground = "\${colors.foreground}";
|
foreground = "\${colors.foreground}";
|
||||||
line.size = "3pt";
|
|
||||||
border = {
|
|
||||||
size = "7pt";
|
|
||||||
color = "\${colors.background}";
|
|
||||||
radius = 7;
|
|
||||||
};
|
|
||||||
padding = {
|
|
||||||
left = 0;
|
|
||||||
right = 0;
|
|
||||||
};
|
|
||||||
cursor = {
|
|
||||||
click = "pointer";
|
|
||||||
scroll = "ns-resize";
|
|
||||||
};
|
|
||||||
enable.ipc = true;
|
|
||||||
wm.restack = "bspwm";
|
|
||||||
};
|
};
|
||||||
"bar/right" = {
|
"bar/right" = {
|
||||||
width = "180px";
|
width = "180px";
|
||||||
|
|
@ -188,7 +141,7 @@
|
||||||
interval = 1;
|
interval = 1;
|
||||||
date = {
|
date = {
|
||||||
text = "\"%I:%M %p\"";
|
text = "\"%I:%M %p\"";
|
||||||
alt = "\"%a, %B %d\"";
|
alt = "\"%m/%d/%y\"";
|
||||||
};
|
};
|
||||||
label = {
|
label = {
|
||||||
text = "\"%date%%{A}\"";
|
text = "\"%date%%{A}\"";
|
||||||
|
|
|
||||||
|
|
@ -7,28 +7,28 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledExtensions = with spicetify-nix.pkgs.extensions; [
|
enabledExtensions = with spicetify-nix.pkgs.extensions; [
|
||||||
"adblock.js"
|
"adblock.js"
|
||||||
"hidePodcasts.js"
|
"hidePodcasts.js"
|
||||||
"shuffle+.js"
|
"shuffle+.js"
|
||||||
];
|
];
|
||||||
theme = spicetify-nix.pkgs.themes.Dribbblish;
|
theme = spicetify-nix.pkgs.themes.Dribbblish;
|
||||||
colorScheme = "custom";
|
colorScheme = "custom";
|
||||||
customColorScheme = {
|
customColorScheme = {
|
||||||
text = "7AA2F7";
|
text = "79dac8";
|
||||||
subtext = "F0F0F0";
|
subtext = "f8f8f8";
|
||||||
sidebar-text = "7AA2F7";
|
sidebar-text = "79dac8";
|
||||||
main = "000000";
|
main = "000000";
|
||||||
sidebar = "000000";
|
sidebar = "323437";
|
||||||
player = "000000";
|
player = "000000";
|
||||||
card = "000000";
|
card = "000000";
|
||||||
shadow = "03339c";
|
shadow = "000000";
|
||||||
selected-row = "797979";
|
selected-row = "7c8f8f";
|
||||||
button = "31748f";
|
button = "74b2ff";
|
||||||
button-active = "7AA2F7";
|
button-active = "74b2ff";
|
||||||
button-disabled = "03339c";
|
button-disabled = "555169";
|
||||||
tab-active = "166632";
|
tab-active = "80a0ff";
|
||||||
notification = "1db954";
|
notification = "80a0ff";
|
||||||
notification-error = "eb6f92";
|
notification-error = "e2637f";
|
||||||
misc = "FFFFFF";
|
misc = "282a36";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,6 @@
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
#terminal
|
|
||||||
"super + Return" = "st";
|
|
||||||
#application launcher
|
|
||||||
"super + @space" = "rofi -show drun";
|
|
||||||
#kill sxhkd
|
|
||||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
|
||||||
#restart bspwm
|
|
||||||
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
|
||||||
#kill current windows
|
|
||||||
"alt + {F4, shift + F4}" = "bspc node -{c,k}";
|
|
||||||
#media keybindings
|
#media keybindings
|
||||||
"XF86AudioPlay" = "playerctl play-pause";
|
"XF86AudioPlay" = "playerctl play-pause";
|
||||||
"XF86AudioPause" = "playerctl play-pause";
|
"XF86AudioPause" = "playerctl play-pause";
|
||||||
|
|
@ -23,31 +13,9 @@
|
||||||
"XF86AudioMute" = "amixer sset Master toggle ";
|
"XF86AudioMute" = "amixer sset Master toggle ";
|
||||||
"XF86MonBrightnessUp" = "brightnessctl s 20+";
|
"XF86MonBrightnessUp" = "brightnessctl s 20+";
|
||||||
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
||||||
#switch windows
|
|
||||||
"alt + Tab" = "~/.config/rofi/window-switcher/window-switcher.sh";
|
|
||||||
#screenshot stuff
|
#screenshot stuff
|
||||||
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||||
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||||
#stuff i'm not so sure about
|
|
||||||
"super + m" = "bspc desktop -l next";
|
|
||||||
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
|
||||||
"super + g" = "bspc node -s biggest.window";
|
|
||||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
|
||||||
"super + ctrl + {m,x,y,z}" = "bspc node -g {marked,locked,sticky,private}";
|
|
||||||
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
|
||||||
"super + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
|
||||||
"super + {_,shift + }c" = "bspc node -f {next,prev}.local.!hidden.window";
|
|
||||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
|
||||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
|
||||||
"super + {o,i}" = "bspc wm -h off; bspc node {older,newer} -f; bspc wm -h on";
|
|
||||||
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}'";
|
|
||||||
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
|
||||||
"super + ctrl + {1-9}" = "bspc node -o 0.{1-9}";
|
|
||||||
"super + ctrl + space" ="bspc node -p cancel";
|
|
||||||
"super + ctrl + shift + space" = "bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel";
|
|
||||||
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
|
||||||
"super + alt + shift + {h,j,k,l}" ="bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
|
||||||
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "breeze";
|
theme = "breeze";
|
||||||
logo = ../images/nixos.png;
|
logo = ../images/nixos.png;
|
||||||
};
|
};
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
consoleMode = "max";
|
consoleMode = "max";
|
||||||
editor = false;
|
editor = false;
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,35 @@
|
||||||
{ config, pkgs, callPackage, webcord, ... }:
|
{ config, pkgs, callPackage, webcord, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget #wget
|
bottom #view tasks
|
||||||
bottom #view tasks
|
efibootmgr #efi editor
|
||||||
efibootmgr #efi editor
|
maim #screenshooter
|
||||||
maim #screenshooter
|
pciutils #lspci
|
||||||
#needed utils
|
alsa-utils #volume control
|
||||||
pciutils
|
btrfs-progs #for external harddrive
|
||||||
binutils
|
vlc #play stuff
|
||||||
alsa-utils
|
bitwarden #store stuff
|
||||||
btrfs-progs #for external harddrive
|
gimp #edit stuff
|
||||||
#user/gui
|
qbittorrent #steal stuff
|
||||||
vlc
|
webcord.packages.${pkgs.system}.default # talk to people (gross)
|
||||||
bitwarden
|
spotify-tray # tray icons are nice
|
||||||
gimp
|
feh #for wallpaper
|
||||||
qbittorrent
|
xfce.mousepad
|
||||||
webcord.packages.${pkgs.system}.default
|
brightnessctl #brightness control for laptop
|
||||||
spotify-tray
|
playerctl #music control
|
||||||
feh #for wallpaper
|
networkmanager_dmenu #pretty gui connection control
|
||||||
#explicit xfce4 for bspwm
|
networkmanagerapplet #gui connection control
|
||||||
xarchive
|
dmenu #for networkmanager_dmenu
|
||||||
xfce.catfish
|
pavucontrol #gui volume control
|
||||||
xfce.mousepad
|
xclip #commandline clipboard access
|
||||||
xfce.xfce4-power-manager
|
exa #ls replacement
|
||||||
brightnessctl #brightness control for laptop
|
cava #pretty audio
|
||||||
playerctl #music control
|
neofetch # cus yes
|
||||||
networkmanager_dmenu #pretty gui connection control
|
st #suckless terminal
|
||||||
networkmanagerapplet #gui connection control
|
pipes-rs # more fun things
|
||||||
dmenu #for networkmanager_dmenu
|
pcmanfm #file manager
|
||||||
flashfocus #flash when switching windows
|
haskellPackages.squeeze #file compression
|
||||||
pavucontrol #gui volume control
|
nix-tree #view packages
|
||||||
xclip #commandline clipboard access
|
];
|
||||||
qsudo #for running thunar as root
|
|
||||||
nix-tree #show nixpkgs
|
|
||||||
git-filter-repo
|
|
||||||
exa #ls replacement
|
|
||||||
cava #pretty audio
|
|
||||||
neofetch
|
|
||||||
piper # mouse configuration
|
|
||||||
libratbag
|
|
||||||
|
|
||||||
st
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,26 @@
|
||||||
{
|
{
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
xrandrHeads = [
|
xrandrHeads = [
|
||||||
{
|
{
|
||||||
output = "HDMI-0";
|
output = "HDMI-0";
|
||||||
primary = true;
|
primary = true;
|
||||||
}
|
monitorConfig = ''
|
||||||
|
Option "DPMS" "false"
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
screenSection = ''
|
screenSection = ''
|
||||||
Option "metamodes" "1920x1080_144 +0+0"
|
Option "metamodes" "1920x1080_144 +0+0"
|
||||||
'';
|
'';
|
||||||
|
monitorSection = ''
|
||||||
|
Option "DPMS" "false"
|
||||||
|
'';
|
||||||
|
serverFlagsSection = ''
|
||||||
|
Option "BlankTime" "0"
|
||||||
|
Option "StandbyTime" "0"
|
||||||
|
Option "SuspendTime" "0"
|
||||||
|
Option "OffTime" "0"
|
||||||
|
Option "DPMS" "false"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
|
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 139 445 ];
|
allowedTCPPorts = [ 139 445 ];
|
||||||
allowedUDPPorts = [ 137 138 ];
|
allowedUDPPorts = [ 137 138 ];
|
||||||
};
|
};
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
securityType = "user";
|
securityType = "user";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{pkgs, ...}:
|
|
||||||
{
|
|
||||||
services.gvfs.enable = true;
|
|
||||||
programs.thunar = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.xfce; [ thunar-volman thunar-archive-plugin thunar-media-tags-plugin];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -11,11 +11,9 @@
|
||||||
xautolock.enable = false;
|
xautolock.enable = false;
|
||||||
desktopManager.xterm.enable = false;
|
desktopManager.xterm.enable = false;
|
||||||
excludePackages = [ pkgs.xterm ];
|
excludePackages = [ pkgs.xterm ];
|
||||||
windowManager.bspwm = {
|
windowManager.dwm.enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
displayManager = {
|
displayManager = {
|
||||||
defaultSession = "none+bspwm";
|
defaultSession = "none+dwm";
|
||||||
lightdm = {
|
lightdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
greeters.mini = {
|
greeters.mini = {
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@
|
||||||
style = "bold red";
|
style = "bold red";
|
||||||
};
|
};
|
||||||
sudo ={
|
sudo ={
|
||||||
format = "[ ](#7aa2f7)";
|
format = "[ ](#7aa2f7)";
|
||||||
disabled = false;
|
disabled = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,9 @@
|
||||||
(final: super: rec {
|
(final: super: rec {
|
||||||
st = (super.st.override { patches = [
|
st = (super.st.override { extraLibs = with super; [ xorg.libXcursor harfbuzz ];
|
||||||
#scrolling
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/scrollback/st-scrollback-0.8.5.diff";
|
|
||||||
sha256 = "sha256-ZZAbrWyIaYRtw+nqvXKw8eXRWf0beGNJgoupRKsr2lc=";
|
|
||||||
})
|
|
||||||
#scrolling with shift+scrollwheel
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/scrollback/st-scrollback-mouse-20220127-2c5edf2.diff";
|
|
||||||
sha256 = "sha256-CuNJ5FdKmAtEjwbgKeBKPJTdEfJvIdmeSAphbz0u3Uk=";
|
|
||||||
})
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/bold-is-not-bright/st-bold-is-not-bright-20190127-3be4cf1.diff";
|
|
||||||
sha256 = "sha256-IhrTgZ8K3tcf5HqSlHm3GTacVJLOhO7QPho6SCGXTHw=";
|
|
||||||
})
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/anysize/st-anysize-20220718-baa9357.diff";
|
|
||||||
sha256 = "sha256-yx9VSwmPACx3EN3CAdQkxeoJKJxQ6ziC9tpBcoWuWHc=";
|
|
||||||
})
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/desktopentry/st-desktopentry-0.8.5.diff";
|
|
||||||
sha256 = "sha256-JUFRFEHeUKwtvj8OV02CqHFYTsx+pvR3s+feP9P+ezo=";
|
|
||||||
})
|
|
||||||
(super.fetchpatch {
|
|
||||||
url = "https://st.suckless.org/patches/boxdraw/st-boxdraw_v2-0.8.5.diff";
|
|
||||||
sha256 = "sha256-WN/R6dPuw1eviHOvVVBw2VBSMDtfi1LCkXyX36EJKi4=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}).overrideAttrs (oldAttrs: rec {
|
}).overrideAttrs (oldAttrs: rec {
|
||||||
configFile = super.writeText "config.h" (builtins.readFile ./st/config.h);
|
src = ./st;
|
||||||
postPatch = "${oldAttrs.postPatch}\ncp ${configFile} config.h\n";
|
});
|
||||||
});
|
dwm = (super.dwm.override {}).overrideAttrs (oldAttrs: rec {
|
||||||
|
src = ./dwm;
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ static const int startontag = 0; /* 0 means no tag active on star
|
||||||
static const double activeopacity = 1.0f; /* Window opacity when it's focused (0 <= opacity <= 1) */
|
static const double activeopacity = 1.0f; /* Window opacity when it's focused (0 <= opacity <= 1) */
|
||||||
static const double inactiveopacity = 0.875f; /* Window opacity when it's inactive (0 <= opacity <= 1) */
|
static const double inactiveopacity = 0.875f; /* Window opacity when it's inactive (0 <= opacity <= 1) */
|
||||||
static Bool bUseOpacity = True; /* Starts with opacity on any unfocused windows */
|
static Bool bUseOpacity = True; /* Starts with opacity on any unfocused windows */
|
||||||
static const int user_bh = 0; /* 0 means that dwm will calculate bar height, >= 1 means dwm willcalculate bar height, >= 1 means dwm will user_bh as bar height */
|
static const int user_bh = 20; /* 0 means that dwm will calculate bar height, >= 1 means dwm willcalculate bar height, >= 1 means dwm will user_bh as bar height */
|
||||||
static const int barwidth = 250;
|
static const int barwidth = 225;
|
||||||
static const int focusonwheel = 0;
|
static const int focusonwheel = 0;
|
||||||
static const int vertpad = 10; /* vertical padding of bar */
|
static const int vertpad = 10; /* vertical padding of bar */
|
||||||
static const int sidepad = 10; /* horizontal padding of bar */
|
static const int sidepad = 10; /* horizontal padding of bar */
|
||||||
static const char *fonts[] = { "monospace:size=15" };
|
static const char *fonts[] = { "monospace:size=12" };
|
||||||
static const char dmenufont[] = "monospace:size=12";
|
static const char dmenufont[] = "monospace:size=12";
|
||||||
static const char col_gray1[] = "#000000";
|
static const char col_gray1[] = "#000000";
|
||||||
static const char col_gray2[] = "#79dac8";
|
static const char col_gray2[] = "#79dac8";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
../modules/packages.nix
|
../modules/packages.nix
|
||||||
../modules/nvidia.nix
|
../modules/nvidia.nix
|
||||||
../modules/fonts.nix
|
../modules/fonts.nix
|
||||||
../modules/thunar.nix
|
|
||||||
../modules/scripts.nix
|
../modules/scripts.nix
|
||||||
../modules/vfio.nix
|
../modules/vfio.nix
|
||||||
../modules/refreshrate.nix
|
../modules/refreshrate.nix
|
||||||
|
|
@ -49,7 +48,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.mining = {
|
systemd.services.mining = {
|
||||||
enable = true;
|
enable = false;
|
||||||
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
|
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
|
||||||
wantedBy = [ "graphical.target" ];
|
wantedBy = [ "graphical.target" ];
|
||||||
script = ''
|
script = ''
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
../modules/nvidia.nix
|
../modules/nvidia.nix
|
||||||
../modules/packages.nix
|
../modules/packages.nix
|
||||||
../modules/fonts.nix
|
../modules/fonts.nix
|
||||||
../modules/thunar.nix
|
|
||||||
../modules/scripts.nix
|
../modules/scripts.nix
|
||||||
../modules/xserver.nix
|
../modules/xserver.nix
|
||||||
../modules/zsh.nix
|
../modules/zsh.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue