Skip to content
Permalink
Browse files

Initial

  • Loading branch information...
jollheef committed Jun 29, 2018
0 parents commit bce6cfad0fd05b32b2192bca7b563a7e3d7abd66
Showing with 37 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 README.md
  3. +29 −0 chromium.nix
@@ -0,0 +1 @@
result
@@ -0,0 +1,7 @@
# build

$ nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=chromium.nix

# run

$ qemu-system-x86_64 -smp 2 -m 1024 -enable-kvm -sandbox on -cdrom result/iso/nixos-*-linux.iso
@@ -0,0 +1,29 @@
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
];

environment.systemPackages = with pkgs; [
chromium
];

services.xserver = {
enable = true;
desktopManager.xterm.enable = false;
displayManager.slim = {
enable = true;
defaultUser = "user";
autoLogin = true;
};
displayManager.sessionCommands = "while [ 1 ]; do ${pkgs.chromium}/bin/chromium; done &";
windowManager.xmonad.enable = true;
windowManager.default = "xmonad";
};

users.extraUsers.user = {
isNormalUser = true;
extraGroups = [ "audio" ];
createHome = true;
};
}

0 comments on commit bce6cfa

Please sign in to comment.
You can’t perform that action at this time.