Skip to content

Instantly share code, notes, and snippets.

@jagajaga
Created March 28, 2015 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagajaga/b91cb0deb04042dbd40f to your computer and use it in GitHub Desktop.
Save jagajaga/b91cb0deb04042dbd40f to your computer and use it in GitHub Desktop.
# 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