Created
March 28, 2015 20:41
-
-
Save jagajaga/b91cb0deb04042dbd40f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This module defines a small NixOS installation CD. It does not | |
# contain any graphical stuff. | |
{ config, pkgs, ... }: | |
{ | |
boot = { | |
loader.grub = { | |
timeout = 1; | |
enable = true; | |
version = 2; | |
device = "/dev/sda"; | |
}; | |
}; | |
imports = | |
[ | |
./hardware-configuration.nix | |
]; | |
users.extraUsers.lcd = { | |
createHome = true; | |
home = "/home/lcd"; | |
group = "users"; | |
extraGroups = [ "wheel" "networkmanager" "video" "power" ]; | |
shell = "${pkgs.zsh}/bin/zsh"; | |
uid = 1000; | |
password = "lcdlcd"; | |
}; | |
time.timeZone = "Europe/Moscow"; | |
networking = { | |
hostName = "schetki"; | |
connman.enable = true; | |
}; | |
services = { | |
openssh.enable = true; | |
dbus.enable = true; | |
}; | |
services.xserver = { | |
enable = true; | |
layout = "us,ru(winkeys)"; | |
xkbOptions = "grp:caps_toggle"; | |
xkbVariant = "winkeys"; | |
desktopManager.default = "none"; | |
windowManager.openbox.enable = true; | |
displayManager.slim = { | |
autoLogin = false; | |
defaultUser = "lcd"; | |
enable = true; | |
}; | |
displayManager.sessionCommands = '' | |
xset s off & | |
${pkgs.vlc}/bin/vlc /home/lcd/schetki -L --fullscreen & | |
''; | |
}; | |
environment.systemPackages = with pkgs; [ | |
bash | |
htop | |
iotop | |
mc | |
wget | |
zsh | |
vlc | |
teamviewer | |
wget | |
openbox | |
usbutils | |
usb_modeswitch | |
modemmanager | |
connmanui | |
dropbox | |
]; | |
nixpkgs.config.allowUnfree = true; | |
fonts = { | |
fontconfig.enable = true; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment