Last active
May 11, 2020 17:00
-
-
Save InvisibleRasta/6475857a576d1c2860bad627c482dbd6 to your computer and use it in GitHub Desktop.
/etc/nixos/configuration.nix
This file contains hidden or 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.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