Skip to content

Instantly share code, notes, and snippets.

@wanderer
Created November 7, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wanderer/27486545bd6c368e879e17f09d20f978 to your computer and use it in GitHub Desktop.
Save wanderer/27486545bd6c368e879e17f09d20f978 to your computer and use it in GitHub Desktop.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system = {
stateVersion = "18.09"; # Did you read the comment?
autoUpgrade.channel = https://nixos.org/channels/nixos-unstable;
};
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/sda3";
preLVM = true;
}
];
boot.loader.grub.device = "/dev/sda";
# USER DEFINED
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "america/los_angeles";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# cli
# actkbd
home-manager
pciutils
light
htop
killall
wget
bat
tmux
git
neovim
tor
# engines
nodejs-10_x
# gui
xwayland
sway
i3status
rofi
alacritty
chromium
thunderbird
keepass
syncthing
ipfs
nitrokey-app
gnupg
hexchat
tribler
signal-desktop
wpa_supplicant_gui
electrum
electron-cash
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
sound = {
enable = true;
# mediaKeys.enable = true;
};
hardware = {
pulseaudio.enable = true;
opengl.enable = true;
u2f.enable = true;
nitrokey.enable = true;
};
networking = {
hostName = "b"; # Define your hostname.
wireless = {
enable = true;
};
};
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
};
users.extraUsers.null = {
name = "null";
group = "users";
extraGroups = [
"wheel" "disk" "audio" "video" "sway" "nitrokey"
"networkmanager" "systemd-journal"
];
createHome = true;
uid = 1000;
home = "/home/null";
shell = "/run/current-system/sw/bin/bash";
};
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
"fmhmiaejopepamlcjkncpgpdjichnecm" # KeePass Tusk
"nmmkepllfhgjonodmhgaoaehnknoadfo" # memm
"nkbihfbeogaeaoehlefnkodbefgpgknn" # metamask
];
};
light.enable = true;
sway.enable = true;
};
#services.actkbd = {
# enable = true;
# bindings = [
# { keys = [ 224 ]; events = [ "key" ]; command = "light -A 10"; }
# { keys = [ 225 ]; events = [ "key" ]; command = "light -U 10"; }
# ];
#};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment