Skip to content

Instantly share code, notes, and snippets.

@FredeEB
Created January 14, 2019 02:02
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 FredeEB/c717fce26f56155a8a8fcd737048482d to your computer and use it in GitHub Desktop.
Save FredeEB/c717fce26f56155a8a8fcd737048482d 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
];
#users
users.users.bun = {
isNormalUser = true;
home = "/home/bun";
description = "bun";
extraGroups = [ "wheel" "networkmanager" ];
};
#Boot
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
#fonts
fonts.fonts = with pkgs; [
fira-code
];
#Network
networking.hostName = "bun";
networking.networkmanager.enable = true;
networking.firewall.allowedTCPPorts = [];
networking.firewall.allowedUDPPorts = [];
#rescue shell
i18n = {
consoleKeyMap = "dk";
defaultLocale = "en_US.UTF-8";
};
#timezone
time.timeZone = "Europe/Copenhagen";
#default packages and settings
environment.systemPackages = with pkgs;
[
ack
ag
bluez
chromium
clang
clojure
cmake
compton
cquery
curl
dtrx
emscripten
emacs
feh
gcc
git
gnumake
leiningen
mpv
qutebrowser
rustc
steam
terminator
zsh
];
nixpkgs.config.allowUnfree = true;
#openssh
services.openssh.enable = true;
#misc
services.printing.enable = true;
#sound
sound.enable = true;
hardware.pulseaudio.enable = true;
#xserver
services.xserver =
{
enable = true;
layout = "dk";
libinput.enable = true;
xkbOptions = "caps:escape";
desktopManager.default = "none";
windowManager.i3.enable = true;
};
system.stateVersion = "18.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment