-
-
Save monokrome/f378ef65965b6ef39e7b3a794065a14b 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 = [ | |
./hardware-configuration.nix | |
]; | |
boot.loader.grub.efiSupport = false; | |
boot.loader.grub.enable = true; | |
boot.loader.grub.enableCryptodisk = true; | |
boot.loader.grub.version = 2; | |
hardware.opengl.driSupport32Bit = true; | |
hardware.pulseaudio.enable = true; | |
hardware.pulseaudio.support32Bit = true; | |
programs.mtr.enable = true; | |
networking.firewall.allowedTCPPorts = []; | |
networking.firewall.allowedUDPPorts = []; | |
networking.firewall.enable = false; | |
networking.hostName = "thailand.home.monokro.me"; | |
networking.wireless.enable = true; | |
services.acpid.enable = true; | |
services.openssh.enable = false; | |
services.printing.enable = false; | |
services.xserver.displayManager.slim.enable = true; | |
services.xserver.windowManager.dwm.enable = true; | |
services.xserver.enable = true; | |
services.xserver.layout = "us"; | |
services.xserver.libinput.enable = true; | |
services.xserver.xkbOptions = "ctrl:nocaps"; | |
sound.enable = true; | |
virtualisation.docker.enable = true; | |
time.timeZone = "America/Los_Angeles"; | |
environment.systemPackages = [ | |
pkgs.acpi | |
pkgs.alacritty | |
pkgs.bat | |
pkgs.dmenu | |
pkgs.dwm | |
pkgs.exa | |
pkgs.firefox | |
pkgs.git | |
pkgs.gnupg | |
pkgs.gparted | |
pkgs.mkpasswd | |
pkgs.mosh | |
pkgs.neovim | |
pkgs.nixops | |
pkgs.pavucontrol | |
pkgs.pciutils | |
pkgs.powertop | |
pkgs.ranger | |
pkgs.signal-desktop | |
pkgs.sudo | |
pkgs.tlp | |
pkgs.tmux | |
pkgs.usbutils | |
pkgs.vlc | |
pkgs.wget | |
pkgs.xsel | |
pkgs.zsh | |
]; | |
i18n = { | |
consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
nixpkgs = { | |
config = { | |
allowUnfree = true; | |
}; | |
overlays = [ | |
(import /home/polar/.local/etc/nixpkgs/overlays) | |
]; | |
}; | |
programs.gnupg.agent = { | |
enable = true; | |
enableSSHSupport = true; | |
}; | |
services.tlp = { | |
enable = true; | |
extraConfig = '' | |
USB_AUTOSUSPEND=0 | |
''; | |
}; | |
services.udev.extraHwdb = '' | |
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnPurism*:pn*Librem13v4*:pvr* | |
KEYBOARD_KEY_56=backslash | |
''; | |
users.users.polar = { | |
group = "users"; | |
uid = 1000; | |
hashedPassword = "<SOME HASH THAT IS PROBABLY SEURE TO SHARE BUT WAHTEVER"; | |
isNormalUser = true; | |
shell = pkgs.zsh; | |
extraGroups = [ | |
"audio" | |
"dbus" | |
"docker" | |
"video" | |
"wheel" | |
]; | |
packages = [ | |
pkgs.steam | |
pkgs.python37Full | |
]; | |
}; | |
system.stateVersion = "18.09"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment