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 # 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

View File

@ -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 = {
enable = true; # SSH
permitRootLogin = "no"; openssh = {
passwordAuthentication = false; enable = true;
}; permitRootLogin = "no";
passwordAuthentication = false;
};
services.xserver = { # Desktop Environment
enable = true; xserver = {
videoDrivers = [ "nvidia" ]; enable = true;
layout = "it"; videoDrivers = [ "nvidia" ];
windowManager.bspwm.enable = true; layout = "it";
windowManager.bspwm.enable = true;
desktopManager.xterm.enable = false;
desktopManager.default = "none";
windowManager.default = "bspwm";
};
}; };
# User environment # User environment

View File

@ -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

View File

@ -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
} }

View File

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