Skip to content

Instantly share code, notes, and snippets.

@third3ye
Created June 10, 2014 00:01
Show Gist options
  • Select an option

  • Save third3ye/9f75bb9ab7bd31686466 to your computer and use it in GitHub Desktop.

Select an option

Save third3ye/9f75bb9ab7bd31686466 to your computer and use it in GitHub Desktop.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nixpkgs.config.allowUnfree = true;
# Use the gummiboot efi boot loader.
boot.loader.gummiboot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Realtime schedueling for PulseAudio
security.rtkit.enable = true;
hardware.pulseaudio.enable = true;
networking.hostName = "Mjolnir"; # Define your hostname.
networking.networkmanager.enable = true;
# Select internationalisation properties.
i18n = {
consoleKeyMap = "no-latin1";
defaultLocale = "nb_NO.UTF-8";
};
# List packages installed in system profile. To search by name, run:
# -env -qaP | grep wget
# environment.systemPackages = with pkgs; [
# wget
# ];
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "no";
services.xserver.xkbModel = "trustda";
# services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
services.xserver.displayManager.kdm.enable = true;
services.xserver.desktopManager.kde4.enable = true;
services.xserver.desktopManager.kde4.phononBackends = [
"gstreamer" "vlc"
];
# Enable BTSync for file syncronization over the internet
services.btsync.enable = true;
services.btsync.enableWebUI = true;
services.btsync.deviceName = "Mjølnir";
# Enable samba
services.samba.enable = true;
services.samba.nsswins = true;
# Let DBUS do it's magic...
services.accounts-daemon.enable = true;
services.avahi.enable = true;
services.telepathy.enable = true;
# Enable red shift for a night-and-day difference in how the screen
# blasts light in your face.
#services.redshift.enable = true;
#services.redshift.latitude = "";
#services.redshift.longitude = "";
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.third3ye = {
name = "third3ye";
description = "The 3ye is watching";
group = "users";
extraGroups = [ "wheel" ];
uid = 1000;
createHome = true;
home = "/home/\@home/third3ye";
shell = "/run/current-system/sw/bin/bash";
};
# Installation of packages
environment.systemPackages = with pkgs; [
zsh linuxPackages.virtualbox wget firefox thunderbird
kde4.kdemultimedia kde4.kdegraphics kde4.kdeutils kde4.applications kde4.kdegames kde4.kdeedu
kde4.kdebindings kde4.kdeaccessibility kde4.kactivities kde4.kdeadmin kde4.kdeartwork kde4.quassel
kde4.kdenetwork kde4.kdepim kde4.kdepimlibs kde4.kdesdk kde4.kdetoys kde4.kde_gtk_config
];
# Application settings
nixpkgs.config.firefox.enableAdobeFlash = true; # for Firefox
nixpkgs.config.chromium.enableAdobeFlash = true; # for Chromium
nixpkgs.config.firefox.enableGeckoMediaPlayer = true;
nixpkgs.config.packageOverrides = with pkgs; {
firefox60Pkgs = pkgs.firefox60Pkgs.override {
enableOfficialBranding = true;
};
};
#nixpkgs.config = {
# firefox.enableAdobeFlash = true; # for Firefox
# firefox.enableGeckoMediaPlayer = true; # for web-videos
# packageOverrides = pkgs; {
# firefox60pkgs = pkgs.firefox60pkgs.override {
# enableOfficialBranding = true;
# };
# };
# chromium.enableAdobeFlash = true; # for Chromium
#}
}
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_hcd" "ehci_pci" "ahci" "usbhid" "usb_storage" ];
boot.kernelModules = [ "kvm-intel" "wl" ]; # "wl"
boot.extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ];
hardware.bluetooth.enable = true;
fileSystems."/" =
{ device = "/dev/sdb5";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/sdb3";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/sdb6";
fsType = "btrfs";
};
swapDevices = [
{ device = "/dev/sdb4"; }
];
nix.maxJobs = 8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment