stuff, I guess

This commit is contained in:
Enrico Fasoli 2015-08-27 13:01:41 +00:00
parent 52a82bd54b
commit 34ce16b66f
5 changed files with 28 additions and 17 deletions

View File

@ -7,7 +7,7 @@ xsetroot -cursor_name left_ptr
# Start lemonbar
sh ~/.config/bspwm/lemonbar.sh &
# Start mpd
# Daemons
mpd
# Set up desktops on monitors

View File

@ -12,6 +12,8 @@
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sdd";
fileSystems."/".options = "discard,noatime";
time.timeZone = "Italy/Rome";
networking.hostName = "Fazo-PC"; # Define your hostname.
@ -34,14 +36,15 @@
environment.systemPackages = with pkgs; [
# Development
atom git
atom git nodejs
# 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
minecraft
# Media
mpv beets mpd mpc_cli
mpv beets mpd mpc_cli popcorntime
# System utilities, drivers...
ntfs3g
# Services
syncthing transmission
# Other stuff
@ -58,17 +61,24 @@
# Services
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
services = {
# SSH
openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
services.xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
layout = "it";
windowManager.bspwm.enable = true;
# Desktop Environment
xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
layout = "it";
windowManager.bspwm.enable = true;
desktopManager.xterm.enable = false;
desktopManager.default = "none";
windowManager.default = "bspwm";
};
};
# User environment

View File

@ -6,6 +6,7 @@ echo "Installing dotfiles"
sudo cp configuration.nix /etc/nixos/
echo "Activating NixOS configuration"
sudo nixos-rebuild switch
mkdir -p ~/.nixpkgs/
cp config.nix ~/.nixpkgs/
# Custom Binaries

View File

@ -9,7 +9,7 @@ getVolume() {
getMPD(){
echo -n "♫ "
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
}
@ -21,7 +21,7 @@ buildBar () {
while true
do
echo "$(getVolume) $(getMPD) %{c}$(buildClock)%{r}$(getNET)"
sleep 1
sleep 0.5
done
}

View File

@ -107,7 +107,7 @@ XF86Mail
# lock
XF86Sleep
lock
i3lock -u -c 1d1f21 -i ~/Pictures/background.png
# screenshots
Print