Skip to content

Instantly share code, notes, and snippets.

@jagajaga
Created March 28, 2015 17:49
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/b41475f097b0e0b58865 to your computer and use it in GitHub Desktop.
Save jagajaga/b41475f097b0e0b58865 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, ... }:
{
imports =
[ ./installation-cd-base.nix
../../profiles/minimal.nix
];
isoImage.includeSystemBuildDependencies = true;
isoImage.storeContents = with pkgs; [
bash
htop
iotop
mc
wget
zsh
vlc
teamviewer
wget
openbox
usbutils
usb_modeswitch
modemmanager
connmanui
dropbox
];
environment.etc."to_install_configuration.nix".source = ./installation-cd-minimal.nix;
# 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 = true;
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