nixos: update config
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
e7c4c20797
commit
a126f9c9b6
3
bspwmrc
3
bspwmrc
@ -13,14 +13,11 @@ bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
bspc config focus_follows_pointer true
|
||||
#bspc config click_to_focus true
|
||||
bspc config center_pseudo_tiled false
|
||||
bspc config single_monocle true
|
||||
bspc config pointer_modifier mod1
|
||||
|
||||
/etc/nixos/displayon
|
||||
# display-on
|
||||
# xrandr --output LVDS-1 --brightness 0.85
|
||||
nitrogen --restore &
|
||||
pgrep -x compton &> /dev/null && pkill compton
|
||||
compton --config /etc/nixos/compton.conf -b &
|
||||
|
@ -81,8 +81,12 @@
|
||||
ntfs3g
|
||||
sshfsFuse
|
||||
curl
|
||||
termite
|
||||
];
|
||||
|
||||
# Use sandbox
|
||||
nix.useSandbox = true;
|
||||
|
||||
# Allow non-free packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@ -109,7 +113,10 @@
|
||||
# started in user sessions.
|
||||
programs.bash.enableCompletion = true;
|
||||
programs.bash.shellAliases = {
|
||||
ls = "ls --color=auto";
|
||||
la = "ls -la";
|
||||
vim = "nvim";
|
||||
weessh = "ssh pi@smolboye.nerdpol.ovh -p11532 -t screen -D -RR weechat weechat";
|
||||
};
|
||||
# programs.mtr.enable = true;
|
||||
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
||||
@ -186,10 +193,10 @@
|
||||
services.xserver.displayManager.sddm.setupScript = ''
|
||||
${pkgs.xorg.xrandr}/bin/xrandr --output LVDS1 --pos 640x1080 --rotate normal
|
||||
'';
|
||||
services.xserver.displayManager.sddm.autoLogin = {
|
||||
enable = true;
|
||||
user = "smolboye";
|
||||
};
|
||||
#services.xserver.displayManager.sddm.autoLogin = {
|
||||
# enable = true;
|
||||
# user = "smolboye";
|
||||
#};
|
||||
services.xserver.windowManager.bspwm.enable = true;
|
||||
services.xserver.windowManager.bspwm.configFile = "/etc/nixos/bspwmrc";
|
||||
services.xserver.windowManager.bspwm.sxhkd.configFile = "/etc/nixos/sxhkdrc";
|
||||
@ -209,9 +216,9 @@
|
||||
];
|
||||
|
||||
# Enable udev rule.
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/smolboye/.Xauthority", RUN+="/etc/nixos/bspwmrc"
|
||||
'';
|
||||
# services.udev.extraRules = ''
|
||||
# KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/smolboye/.Xauthority", RUN+="/etc/nixos/bspwmrc"
|
||||
# '';
|
||||
|
||||
# Enable sudo.
|
||||
security.sudo.enable = true;
|
||||
|
@ -13,17 +13,17 @@
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/04eee0e4-3fd2-46d9-8516-412dd7a1c797";
|
||||
{ device = "/dev/disk/by-uuid/75119c88-0776-4563-a02a-de9072c51eed";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/74C7-123C";
|
||||
{ device = "/dev/disk/by-uuid/B0C6-9316";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/ab69ae50-0e6d-45ad-ba41-a3300bbde543"; }
|
||||
[ { device = "/dev/disk/by-uuid/9ed61ca5-151c-4436-8a0d-c44418f4271a"; }
|
||||
];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 4;
|
||||
|
2
polybar
2
polybar
@ -13,7 +13,7 @@ bottom = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
font-0 = "Terminus:size=8;2"
|
||||
font-0 = "Hack:size=7;2"
|
||||
font-1 = "Siji:size=18;2"
|
||||
|
||||
padding = 2
|
||||
|
Before Width: | Height: | Size: 2.5 MiB After Width: | Height: | Size: 2.5 MiB |
Before Width: | Height: | Size: 7.6 MiB After Width: | Height: | Size: 7.6 MiB |
2
sxhkdrc
2
sxhkdrc
@ -3,7 +3,7 @@ super + Return
|
||||
termite
|
||||
# program launcher
|
||||
super + d
|
||||
dmenu_run -nb "#000000" -nf "#ffffff" -sb "#adadad" -fn "Terminus-7" # -h 28
|
||||
dmenu_run -nb "#000000" -nf "#ffffff" -sb "#adadad" -fn "Hack-7" # -h 28
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
Loading…
Reference in New Issue
Block a user