Created
December 22, 2021 22:43
-
-
Save thor314/cf7b01cca1e780d51159a7bff9349ee0 to your computer and use it in GitHub Desktop.
This file contains 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.systemd-boot.enable = | |
true; # Use the systemd-boot EFI boot loader. | |
boot.loader.efi.canTouchEfiVariables = true; | |
time.timeZone = "Europe/Lisbon"; # Set your time zone. | |
# NETWORKING | |
networking.hostName = "tk0"; # Define your hostname. | |
networking.wireless.enable = | |
true; # Enables wireless support via wpa_supplicant. | |
networking.networkmanager.enable = true; # need to enable network manager | |
networking.useDHCP = false; # deprecated | |
networking.interfaces.enp40s0.useDHCP = true; | |
networking.interfaces.wlp0s20f3.useDHCP = true; | |
networking.networkmanager.unmanaged = | |
[ # network manager and wpa_supplicant play nice | |
"*" | |
"except:type:wwan" | |
"except:type:gsm" | |
]; | |
i18n.defaultLocale = "en_US.UTF-8"; | |
console = { | |
font = "Lat2-Terminus16"; | |
keyMap = "us"; | |
}; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; | |
services.xserver.displayManager.lightdm.enable = true; | |
#services.xserver.displayManager.lightdm.background = "somepath"; | |
services.xserver.windowManager.stumpwm.enable = true; | |
services.xserver.layout = "dvorak"; | |
services.xserver.xkbOptions = "ctrl:nocaps"; | |
services.xserver.libinput.enable = true; # Enable touchpad support | |
# hardware.nvidia.modesetting.enable = true; | |
# services.xserver.videoDrivers = [ "nvidia" ]; | |
services.printing.enable = true; # CUPS printing | |
sound.enable = true; | |
hardware.pulseaudio.enable = true; | |
hardware.system76.enableAll = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.users.thor = { | |
isNormalUser = true; | |
initialHashedPassword = "iheartnix"; | |
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user. | |
}; | |
nixpkgs.config.allowUnfree = true; # allow closed-source packages like Discord | |
environment.systemPackages = with pkgs; [ | |
vim | |
emacs | |
shellcheck | |
nixfmt | |
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science ])) | |
graphviz | |
html-tidy | |
# csslint | |
linuxKernel.packages.linux_5_10.system76 | |
# linuxKernel.packages.linux_5_10.system76-power | |
# linuxKernel.packages.linux_5_10.system76-io | |
# linuxKernel.packages.linux_5_10.system76-acpi | |
stumpwm | |
# lightdm | |
networkmanager | |
rofi | |
feh | |
conky | |
scrot | |
wget | |
git | |
hub | |
gist | |
pass | |
xclip | |
hugo | |
fd | |
ripgrep | |
clang | |
llvm | |
gnumake | |
cmake | |
zsh | |
firefox | |
nyxt | |
chromium | |
discord | |
spotify | |
signal-desktop | |
tdesktop | |
alacritty | |
evince | |
gimp | |
nodejs | |
python3 | |
python3.pkgs.pip | |
black | |
pipenv | |
python39Packages.pytest | |
python39Packages.isort | |
python39Packages.pyflakes | |
rustc | |
rust-analyzer | |
cargo | |
cargo-edit | |
cargo-watch | |
pkg-config | |
rustup # will throw ignorable warnings | |
]; | |
fonts.fonts = with pkgs; [ | |
fira-code | |
cantarell-fonts | |
emacs-all-the-icons-fonts | |
]; | |
# Some programs need SUID wrappers, can be configured further or are | |
# started in user sessions. | |
programs.mtr.enable = true; | |
programs.gnupg.agent = { | |
enable = true; | |
enableSSHSupport = true; | |
}; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
# services.openssh.enable = 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. | |
# Before changing this value read the documentation for this option | |
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | |
system.stateVersion = "21.11"; # Did you read the comment? | |
# enable automatic system upgrades | |
system.autoUpgrade.enable = true; | |
system.autoUpgrade.allowReboot = true; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment