Skip to content

Instantly share code, notes, and snippets.

@taku0
Created April 3, 2016 13:43
Show Gist options
  • Save taku0/f988cd6c0f1151f8ee89bc7aa24bdcfb to your computer and use it in GitHub Desktop.
Save taku0/f988cd6c0f1151f8ee89bc7aa24bdcfb to your computer and use it in GitHub Desktop.
# nixos-rebuild build-vm -I nixpkgs=~/src/nixpkgs -I nixos-config=./configuration.nix
{ config, pkgs, ... }:
{
imports =
[
<nixos/modules/installer/scan/not-detected.nix>
];
nix.maxJobs = 4;
nix.useChroot = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = [
];
users.extraUsers.alice = {
createHome = true;
home = "/home/alice";
description = "Alice";
extraGroups = [ "wheel" ];
isSystemUser = false;
useDefaultShell = true;
password = "alice";
};
hardware.enableAllFirmware = true;
sound.enable = false;
# Select internationalisation properties.
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "jp106";
defaultLocale = "ja_JP.UTF-8";
};
# List services that you want to enable:
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "jp";
services.xserver.xkbOptions = "";
services.xserver.autorun = true;
# Enable the KDE Desktop Environment.
services.xserver.displayManager.kdm.enable = true;
services.xserver.desktopManager.kde4.enable = true;
services.dbus.enable = true;
time.timeZone = "Asia/Tokyo";
# networking.networkmanager.enable = true;
fonts.enableCoreFonts = true;
fonts.fonts = [
pkgs.dejavu_fonts
pkgs.source-han-sans-japanese
];
fonts.fontconfig.defaultFonts = {
monospace = ["Source Han Sans JP" "DejaVu Sans Mono"];
sansSerif = ["Source Han Sans JP" "DejaVu Sans"];
serif = ["Source Han Sans JP" "DejaVu Serif"];
};
# uim.enable = true;
i18n.inputMethod.enabled = "uim";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment