Created
April 13, 2018 11:38
-
-
Save sveitser/6d018a1cba6bb2ec39edc725f7e001f2 to your computer and use it in GitHub Desktop.
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 | |
]; | |
#### ARCHER WIFI PIECE OF SHIT | |
# nixpkgs.config.allowUnfree = true; | |
# nixpkgs.config.packageOverrides = pkgs : rec { | |
# # Change the location to where you cloned the file | |
# mt7610u = pkgs.callPackage /home/lulu/dev/mt7610u-nixos/default.nix { }; | |
# }; | |
# boot.extraModulePackages = [ pkgs.mt7610u ]; | |
# boot.initrd.kernelModules = [ "mt7610u_sta"]; | |
#### | |
#### Tenda stick | |
# nixpkgs.config.packageOverrides = pkgs: | |
# { linux_4_14 = pkgs.linux_4_14.override { | |
# extraConfig = | |
# '' | |
# RT2800USB_RT53XX y | |
# ''; | |
# }; | |
# }; | |
#### | |
nix.buildCores = 0; | |
# Use the systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.loader.efi.efiSysMountPoint = "/boot/efi"; | |
boot.loader.grub = { | |
enable = true; | |
device = "nodev"; | |
version = 2; | |
efiSupport = true; | |
enableCryptodisk = true; | |
extraInitrd = /boot/initrd.keys.gz; | |
}; | |
boot.initrd.luks.devices = [ | |
{ | |
name = "root"; | |
device = "/dev/disk/by-uuid/49a4f5e8-db41-4b4b-800f-7df8ccaa22b3"; | |
preLVM = true; | |
keyFile = "/keyfile0.bin"; | |
allowDiscards = true; | |
} | |
]; | |
networking.hostName = "mas"; | |
# networking.wireless.enable = true; | |
networking.networkmanager.enable = true; | |
# networking.firewall.allowedTCPPorts = [ 5901 ]; | |
# powerManagement.enable = false; | |
powerManagement.cpuFreqGovernor = "performance"; | |
i18n = { | |
consoleKeyMap = "colemak/en-latin9"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
time.timeZone = "Asia/Hong_Kong"; | |
environment.systemPackages = with pkgs; [ | |
# nmon # not available | |
alsaUtils | |
usbutils | |
ag | |
curl | |
direnv | |
firefox | |
# fish | |
fzf | |
git | |
htop | |
pass | |
tree | |
plasma-nm | |
vim | |
wget | |
gnupg | |
wmname | |
# rtlwifi_new | |
linuxPackages.rtlwifi_new | |
]; | |
nix.autoOptimiseStore = true; | |
# Some programs need SUID wrappers, can be configured further or are | |
# started in user sessions. | |
programs.bash.enableCompletion = true; | |
programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; | |
programs.slock.enable = true; | |
# programs.fish.enable = true; | |
services.openssh.enable = true; | |
services.locate.enable = true; | |
fonts.fonts = with pkgs; [ | |
liberation_ttf | |
fira-code | |
dejavu_fonts | |
iosevka | |
]; | |
hardware.pulseaudio.enable = true; | |
hardware.pulseaudio.daemon.config = { | |
flat-volumes = "no"; | |
resample-method = "src-sinc-best-quality"; | |
default-sample-format = "s24le"; | |
default-sample-rate = "96000"; | |
}; | |
services.avahi.enable = true; | |
hardware.trackpoint.enable = true; | |
services.xserver = { | |
synaptics.enable = true; | |
enable = true; | |
xkbVariant = "colemak"; | |
displayManager.sddm.autoLogin.enable = true; | |
displayManager.sddm.autoLogin.user = "lulu"; | |
displayManager.sddm.enable = true; | |
desktopManager.xterm.enable = false; | |
# desktopManager.plasma5.enable = true; | |
windowManager.xmonad = { | |
enable = true; | |
enableContribAndExtras = true; | |
extraPackages = haskellPackages: [ | |
haskellPackages.xmonad-contrib | |
haskellPackages.xmonad-extras | |
# haskellPackages.xmonad | |
]; | |
}; | |
windowManager.default = "xmonad"; | |
}; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.extraUsers.lulu = { | |
isNormalUser = true; | |
uid = 1000; | |
extraGroups = [ "wheel" "networkmanager"]; | |
shell = pkgs.fish; | |
}; | |
# You should change this only after NixOS release notes say you should. | |
system.stateVersion = "18.03"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment