stuff, I guess
This commit is contained in:
parent
52a82bd54b
commit
34ce16b66f
2
bspwmrc
2
bspwmrc
@ -7,7 +7,7 @@ xsetroot -cursor_name left_ptr
|
|||||||
|
|
||||||
# Start lemonbar
|
# Start lemonbar
|
||||||
sh ~/.config/bspwm/lemonbar.sh &
|
sh ~/.config/bspwm/lemonbar.sh &
|
||||||
# Start mpd
|
# Daemons
|
||||||
mpd
|
mpd
|
||||||
|
|
||||||
# Set up desktops on monitors
|
# Set up desktops on monitors
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sdd";
|
boot.loader.grub.device = "/dev/sdd";
|
||||||
|
|
||||||
|
fileSystems."/".options = "discard,noatime";
|
||||||
|
|
||||||
time.timeZone = "Italy/Rome";
|
time.timeZone = "Italy/Rome";
|
||||||
|
|
||||||
networking.hostName = "Fazo-PC"; # Define your hostname.
|
networking.hostName = "Fazo-PC"; # Define your hostname.
|
||||||
@ -34,14 +36,15 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Development
|
# Development
|
||||||
atom git
|
atom git nodejs
|
||||||
# Desktop and appliations
|
# Desktop and appliations
|
||||||
sxhkd tmux htop ranger w3m rxvt_unicode chromium dmenu gnupg irssi bar bc
|
sxhkd tmux htop vim ranger w3m rxvt_unicode chromium dmenu gnupg irssi bar bc i3lock
|
||||||
# Games
|
# Games
|
||||||
minecraft
|
minecraft
|
||||||
# Media
|
# Media
|
||||||
mpv beets mpd mpc_cli
|
mpv beets mpd mpc_cli popcorntime
|
||||||
# System utilities, drivers...
|
# System utilities, drivers...
|
||||||
|
ntfs3g
|
||||||
# Services
|
# Services
|
||||||
syncthing transmission
|
syncthing transmission
|
||||||
# Other stuff
|
# Other stuff
|
||||||
@ -58,17 +61,24 @@
|
|||||||
|
|
||||||
# Services
|
# Services
|
||||||
|
|
||||||
services.openssh = {
|
services = {
|
||||||
|
# SSH
|
||||||
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "no";
|
permitRootLogin = "no";
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver = {
|
# Desktop Environment
|
||||||
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
videoDrivers = [ "nvidia" ];
|
videoDrivers = [ "nvidia" ];
|
||||||
layout = "it";
|
layout = "it";
|
||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
|
desktopManager.xterm.enable = false;
|
||||||
|
desktopManager.default = "none";
|
||||||
|
windowManager.default = "bspwm";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# User environment
|
# User environment
|
||||||
|
1
install
1
install
@ -6,6 +6,7 @@ echo "Installing dotfiles"
|
|||||||
sudo cp configuration.nix /etc/nixos/
|
sudo cp configuration.nix /etc/nixos/
|
||||||
echo "Activating NixOS configuration"
|
echo "Activating NixOS configuration"
|
||||||
sudo nixos-rebuild switch
|
sudo nixos-rebuild switch
|
||||||
|
mkdir -p ~/.nixpkgs/
|
||||||
cp config.nix ~/.nixpkgs/
|
cp config.nix ~/.nixpkgs/
|
||||||
|
|
||||||
# Custom Binaries
|
# Custom Binaries
|
||||||
|
@ -9,7 +9,7 @@ getVolume() {
|
|||||||
getMPD(){
|
getMPD(){
|
||||||
echo -n "♫ "
|
echo -n "♫ "
|
||||||
if [ "$(mpc | wc -l)" -gt 1 ]; then
|
if [ "$(mpc | wc -l)" -gt 1 ]; then
|
||||||
echo -n "$(mpc | cut -d$'\n' -f1) | $(mpc | cut -d$'\n' -f2)"
|
echo -n "$(mpc | cut -d$'\n' -f1) ♫ $(mpc | cut -d$'\n' -f2)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ buildBar () {
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo "$(getVolume) $(getMPD) %{c}$(buildClock)%{r}$(getNET)"
|
echo "$(getVolume) $(getMPD) %{c}$(buildClock)%{r}$(getNET)"
|
||||||
sleep 1
|
sleep 0.5
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user