Created
November 16, 2020 08:00
-
-
Save Siilwyn/997c7d4934687710aac8f00459827705 to your computer and use it in GitHub Desktop.
Nix is too hard to use, config dump
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/sdb"; | |
time.timeZone = "Europe/Amsterdam"; | |
i18n.defaultLocale = "en_US.UTF-8"; | |
# Enable the GNOME 3 Desktop Environment. | |
services.xserver.enable = true; | |
services.xserver.displayManager.gdm.enable = true; | |
services.xserver.desktopManager.gnome3.enable = true; | |
users.users.siilwyn = { | |
isNormalUser = true; | |
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. | |
shell = pkgs.fish; | |
}; | |
programs.fish.enable = true; | |
environment.systemPackages = with pkgs; [ | |
git | |
neovim | |
firefox | |
chromium | |
docker | |
rustup | |
syncthing | |
httpie | |
glow | |
contrast | |
vscodium | |
fira-code | |
# Needed for Volta | |
openssl | |
gcc | |
glibc | |
]; | |
# The global useDHCP flag is deprecated, therefore explicitly set to false here. | |
# Per-interface useDHCP will be mandatory in the future, so this generated config | |
# replicates the default behaviour. | |
networking.useDHCP = false; | |
networking.interfaces.enp0s25.useDHCP = true; | |
networking.interfaces.wlp3s0.useDHCP = true; | |
# This value determines the NixOS release from which the default | |
# settings for stateful data, like file locations and database versions | |
# on your system were taken. It‘s perfectly fine and recommended to leave | |
# this value at the release version of the first install of this system. | |
system.stateVersion = "20.09"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment