Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created January 31, 2019 09:52
Show Gist options
  • Save marcusramberg/8121dd7f9fc2517e74fcb1f5f1b0c2a0 to your computer and use it in GitHub Desktop.
Save marcusramberg/8121dd7f9fc2517e74fcb1f5f1b0c2a0 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
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.efiSupport = false;
boot.loader.grub.device = "/dev/sda";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment = {
systemPackages = with pkgs; [
wget vim git tmux ansible manpages
];
variables = {
EDITOR = "${pkgs.vim}/bin/vim";
};
};
fileSystems."/space" =
{ device = "/dev/disk/by-label/Drobo01";
fsType = "ext4";
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# List services that you want to enable:
# Enable the OpenSSH daemon.
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
networking.hostName = "mhub"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable the X11 windowing system.
# Enable touchpad support.
# services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
nixpkgs.config.allowUnfree = true;
programs = {
dconf.enable = true;
gnupg.agent = { enable = true; enableSSHSupport = true; };
mtr.enable = true;
zsh.enable = true;
tmux = {
enable = true;
keyMode = "vi";
clock24 = true;
secureSocket = false;
};
};
users.users.marcus = {
isNormalUser = true;
description = "Marcus Ramberg";
extraGroups = [ "wheel" "networkmanager" ];
uid = 1000;
shell = pkgs.zsh;
};
services = {
dbus.packages = [ pkgs.gnome3.dconf ];
caddy = {
enable = true;
agree = true;
config =
''
home.means.no {
proxy / mhome.lan:8123 {
websocket
transparent
}
}
'';
};
openssh.enable = true;
plex.enable = true;
radarr.enable = true;
sonarr.enable = true;
xserver = {
enable = true;
layout = "us";
xkbOptions = "eurosign:e";
desktopManager = {
default = "xfce";
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
windowManager.i3.enable = true;
windowManager.i3.package = pkgs.i3-gaps;
};
};
security.sudo.wheelNeedsPassword=false;
system.autoUpgrade.enable = true;
time.timeZone = "Europe/Oslo";
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
#
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