Skip to content

Instantly share code, notes, and snippets.

@InvisibleRasta
Last active May 11, 2020 17:00
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 InvisibleRasta/6475857a576d1c2860bad627c482dbd6 to your computer and use it in GitHub Desktop.
Save InvisibleRasta/6475857a576d1c2860bad627c482dbd6 to your computer and use it in GitHub Desktop.
/etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.hostName = "nix";
console = {
font = "Lat2-Terminus16";
keyMap = "it";
};
time.timeZone = "Europe/Madrid";
environment.systemPackages = with pkgs; [
wget
vim
firefox
alacritty
];
services.openssh.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
services.xserver = {
enable = true;
layout = "it";
xkbOptions = "eurosign:e";
displayManager = {
defaultSession = "xfce";
lightdm.enable = true;
};
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
};
users.users.invra = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" ];
};
system.stateVersion = "20.03";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment