2017-10-15 16:27:35 +02:00
|
|
|
|
# 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, ... }:
|
|
|
|
|
|
2017-10-16 22:53:49 +02:00
|
|
|
|
{
|
2017-10-15 16:27:35 +02:00
|
|
|
|
imports =
|
2017-10-16 22:53:49 +02:00
|
|
|
|
[
|
2017-10-15 16:27:35 +02:00
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./local-configuration.nix
|
2017-10-16 22:53:49 +02:00
|
|
|
|
./packages.nix
|
2017-10-17 00:32:48 +02:00
|
|
|
|
./desktop.nix
|
2017-10-15 16:27:35 +02:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
time.timeZone = "Europe/Oslo";
|
|
|
|
|
|
2017-10-17 16:18:11 +02:00
|
|
|
|
# Configure shell environment:
|
2017-10-15 16:27:35 +02:00
|
|
|
|
programs.fish.enable = true;
|
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
|
services.emacs.enable = true;
|
|
|
|
|
services.emacs.defaultEditor = true;
|
|
|
|
|
|
2017-10-17 16:18:11 +02:00
|
|
|
|
# Configure VirtualBox (needed for local NixOps testing):
|
|
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
|
|
|
|
|
|
|
|
# Configure Docker (with socket activation):
|
|
|
|
|
# Side note: ... virtualisation? ...
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
virtualisation.docker.autoPrune.enable = true;
|
|
|
|
|
|
2017-10-15 16:27:35 +02:00
|
|
|
|
# Configure other random applications:
|
|
|
|
|
programs.java.enable = true;
|
|
|
|
|
|
|
|
|
|
# Configure user account
|
|
|
|
|
users.defaultUserShell = pkgs.fish;
|
|
|
|
|
users.extraUsers.vincent = {
|
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
uid = 1000;
|
|
|
|
|
shell = pkgs.fish;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security.sudo.enable = true;
|
|
|
|
|
security.sudo.extraConfig = "wheel ALL=(ALL:ALL) SETENV: ALL";
|
|
|
|
|
|
|
|
|
|
# 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 = "17.09"; # Did you read the comment?
|
|
|
|
|
}
|