Created
December 1, 2018 13:23
-
-
Save rhalff/0f33682146c8d758765c0f162eced67d to your computer and use it in GitHub Desktop.
configuration.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.initrd.kernelModules = [ "f2fs" ]; | |
networking.hostName = "redhouse"; # Define your hostname. | |
networking.networkmanager.enable = true; | |
i18n = { | |
consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
time.timeZone = "Europe/Amsterdam"; | |
environment.systemPackages = with pkgs; [ | |
wget vim mc git firefox android-studio android-udev-rules | |
ardour htop f2fs-tools zsh oh-my-zsh links2 libinput | |
]; | |
fileSystems."/srv/data" = { | |
device = "/dev/mapper/rhalff-data"; | |
}; | |
nixpkgs.config.allowUnfree = true; | |
networking.firewall.enable = false; | |
services.printing.enable = true; | |
sound.enable = true; | |
hardware.pulseaudio.enable = true; | |
services.xserver.enable = true; | |
services.xserver.layout = "us"; | |
services.xserver.xkbOptions = "eurosign:e"; | |
services.xserver.libinput.enable = true; | |
i18n.inputMethod = { | |
enabled = "ibus"; | |
}; | |
services.xserver.autorun = false; | |
services.xserver.videoDrivers = [ "nvidia" ]; | |
# services.xserver.displayManager.sddm.enable = true; | |
services.xserver.displayManager.lightdm.enable = true; | |
# services.xserver.displayManager.gdm.enable = true; | |
services.xserver.desktopManager.plasma5.enable = true; | |
services.xserver.windowManager.i3.enable = true; | |
services.weechat.enable = true; | |
programs.screen.screenrc = '' | |
multiuser on | |
acladd rhalff | |
''; | |
users.users.rhalff = { | |
isNormalUser = true; | |
home = "/home/rhalff"; | |
uid = 1000; | |
extraGroups = [ "wheel" "networkmanager" ]; | |
}; | |
system.stateVersion = "18.09"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment