2019-03-26 10:12:24 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2019-03-26 12:32:59 +00:00
|
|
|
let
|
2019-04-19 20:36:53 +01:00
|
|
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
2019-03-26 12:32:59 +00:00
|
|
|
in
|
2019-03-26 10:12:24 +00:00
|
|
|
{
|
|
|
|
imports =
|
2019-03-26 12:32:59 +00:00
|
|
|
[
|
2019-03-26 10:12:24 +00:00
|
|
|
/etc/nixos/hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2019-04-19 20:36:53 +01:00
|
|
|
|
|
|
|
|
2019-03-26 12:32:59 +00:00
|
|
|
nixpkgs.config = {
|
2019-04-05 22:02:20 +01:00
|
|
|
allowUnfree = true;
|
2019-03-26 12:32:59 +00:00
|
|
|
packageOverrides = pkgs: {
|
2019-04-06 11:29:48 +01:00
|
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
2019-03-26 12:32:59 +00:00
|
|
|
unstable = import unstableTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
2019-04-19 20:36:53 +01:00
|
|
|
cyplo = import "/home/cyryl/dev/nixpkgs/" {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-03-26 10:12:24 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2019-04-13 09:42:13 +01:00
|
|
|
wget git zsh gnupg curl tmux python36Packages.glances
|
2019-04-20 10:21:11 +01:00
|
|
|
gnomeExtensions.gsconnect
|
2019-04-03 13:33:44 +01:00
|
|
|
(
|
|
|
|
vim_configurable.override {
|
|
|
|
python = python3;
|
|
|
|
}
|
|
|
|
)
|
2019-03-26 10:12:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "skinnyv";
|
2019-04-12 10:37:23 +01:00
|
|
|
# gsconnect
|
|
|
|
networking.firewall.allowedTCPPortRanges = [ { from = 1716; to = 1764; } ];
|
|
|
|
networking.firewall.allowedUDPPortRanges = [ { from = 1716; to = 1764; } ];
|
2019-04-13 09:42:13 +01:00
|
|
|
|
2019-04-06 12:55:45 +01:00
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
2019-03-26 10:12:24 +00:00
|
|
|
|
|
|
|
users.users.cyryl = {
|
|
|
|
isNormalUser = true;
|
2019-04-13 09:42:13 +01:00
|
|
|
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers"];
|
2019-03-26 12:32:59 +00:00
|
|
|
packages = with pkgs; [
|
2019-04-13 09:42:13 +01:00
|
|
|
firefox chromium alacritty zsh keepass fontconfig go nodejs rustup gcc gdb
|
2019-04-12 10:37:23 +01:00
|
|
|
binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy
|
2019-04-13 09:42:13 +01:00
|
|
|
gnome3.gnome-shell-extensions chrome-gnome-shell gnomeExtensions.clipboard-indicator
|
2019-04-20 10:21:11 +01:00
|
|
|
gnomeExtensions.caffeine gnomeExtensions.no-title-bar
|
2019-04-20 22:40:11 +01:00
|
|
|
openjdk11 gimp restic glxinfo discord steam
|
|
|
|
(unstable.vscode-with-extensions.override {
|
|
|
|
vscodeExtensions = with vscode-extensions; [ bbenoist.Nix ms-python.python ]
|
|
|
|
++ vscode-utils.extensionsFromVscodeMarketplace [
|
|
|
|
{
|
|
|
|
publisher = "2gua";
|
|
|
|
name = "rainbow-brackets";
|
|
|
|
version = "0.0.6";
|
|
|
|
sha256 = "1m5c7jjxphawh7dmbzmrwf60dz4swn8c31svbzb5nhaazqbnyl2d";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "vscodevim";
|
|
|
|
name = "vim";
|
|
|
|
version = "1.4.0";
|
|
|
|
sha256 = "0vfhvsp485rgik3pjzbpnc4jxrjpiykynl563a16rlz8h85x2m4f";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "swyphcosmo";
|
|
|
|
name = "spellchecker";
|
|
|
|
version = "1.2.13";
|
|
|
|
sha256 = "1lr33lf01afgi74c1a9gylk92li4hyq24l8bki4l6ggl4z4c2h3w";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "asabil";
|
|
|
|
name = "meson";
|
|
|
|
version = "1.1.1";
|
|
|
|
sha256 = "00cc28a2nb325f54bx51wf5q15x1pmsn0j9z6rnxxqxwii1dm5cl";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "bungcip";
|
|
|
|
name = "better-toml";
|
|
|
|
version = "0.3.2";
|
|
|
|
sha256 = "08lhzhrn6p0xwi0hcyp6lj9bvpfj87vr99klzsiy8ji7621dzql3";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "codezombiech";
|
|
|
|
name = "gitignore";
|
|
|
|
version = "0.6.0";
|
|
|
|
sha256 = "0gnc0691pwkd9s8ldqabmpfvj0236rw7bxvkf0bvmww32kv1ia0b";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "DavidAnson";
|
|
|
|
name = "vscode-markdownlint";
|
|
|
|
version = "0.26.0";
|
|
|
|
sha256 = "0g4pssvajn7d8p2547v7313gjyqx4pzs7cbjws2s3v2fk1sw7vbj";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "esbenp";
|
|
|
|
name = "prettier-vscode";
|
|
|
|
version = "1.8.1";
|
|
|
|
sha256 = "0qcm2784n9qc4p77my1kwqrswpji7bp895ay17yzs5g84cj010ln";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "hbenl";
|
|
|
|
name = "vscode-test-explorer";
|
|
|
|
version = "2.9.3";
|
|
|
|
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "hbenl";
|
|
|
|
name = "vscode-test-explorer-liveshare";
|
|
|
|
version = "1.0.4";
|
|
|
|
sha256 = "0a57cm8bjfvz2whkr6krjv3whv9c7sdzlrjwdr5zaz78nxn9dfy7";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "lextudio";
|
|
|
|
name = "restructuredtext";
|
|
|
|
version = "106.0.0";
|
|
|
|
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "lostintangent";
|
|
|
|
name = "vsls-pomodoro";
|
|
|
|
version = "0.1.0";
|
|
|
|
sha256 = "1b73zbkhlhacvi18cx4g3n6randy3hw9cab1gkw5gzb3375w7w3p";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "lostintangent";
|
|
|
|
name = "vsls-whiteboard";
|
|
|
|
version = "0.0.8";
|
|
|
|
sha256 = "13fcay9bs861msb5y694casbw66dmhl504xm5cvprssx1qka186p";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "mauve";
|
|
|
|
name = "terraform";
|
|
|
|
version = "1.3.9";
|
|
|
|
sha256 = "0hnarr21rivvv41y5x1sp0skdmzwz7zi9aya3n5z1b13ir7lyy42";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "mechatroner";
|
|
|
|
name = "rainbow-csv";
|
|
|
|
version = "1.0.0";
|
|
|
|
sha256 = "1fyamgm7zq31r3c00cn6pcb66rrkfhwfmp72qnhrajydmnvcnbg6";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "ms-vscode";
|
|
|
|
name = "Go";
|
|
|
|
version = "0.9.2";
|
|
|
|
sha256 = "0yxnsby8zz1dvnx8nqrhi4xx316mpjf2hs2c5r6fkzh8zhjccwqz";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "ms-vsliveshare";
|
|
|
|
name = "vsliveshare";
|
|
|
|
version = "1.0.67";
|
|
|
|
sha256 = "1shy9xaqz1wsyzzz5z8g409ma5h5kaic0y7bc1q2nxy60gbq828n";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "ms-vsliveshare";
|
|
|
|
name = "vsliveshare-audio";
|
|
|
|
version = "0.1.48";
|
|
|
|
sha256 = "1lccsyhj3mgbacw76hikgml85hi82zipaza1194nqnj1inhci80b";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "PeterJausovec";
|
|
|
|
name = "vscode-docker";
|
|
|
|
version = "0.6.1";
|
|
|
|
sha256 = "0clxy66qi5c3k5di5xsjm3vjib525xq89z1q2h3a5x5qwvbvd0mj";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "ritwickdey";
|
|
|
|
name = "LiveServer";
|
|
|
|
version = "5.6.1";
|
|
|
|
sha256 = "077arf3hsn1yb8xdhlrax5gf93ljww78irv4gm8ffmsqvcr1kws0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "ronnidc";
|
|
|
|
name = "nunjucks";
|
|
|
|
version = "0.2.3";
|
|
|
|
sha256 = "119xgyn1dggw2rcqkn2mnz364iw5jlrxg7pcydbijsqj5d3zdfsf";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "rust-lang";
|
|
|
|
name = "rust";
|
|
|
|
version = "0.6.1";
|
|
|
|
sha256 = "0f66z6b374nvnrn7802dg0xz9f8wq6sjw3sb9ca533gn5jd7n297";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
publisher = "serayuzgur";
|
|
|
|
name = "crates";
|
|
|
|
version = "0.4.2";
|
|
|
|
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
|
|
|
|
}
|
|
|
|
];})
|
2019-04-12 10:37:23 +01:00
|
|
|
zoom-us
|
|
|
|
nodejs-10_x hugo mercurial terraform libreoffice
|
2019-04-13 09:49:20 +01:00
|
|
|
unzip tor-browser-bundle-bin aria vlc
|
2019-04-14 14:14:56 +01:00
|
|
|
jetbrains.goland jetbrains.clion
|
2019-04-15 09:48:22 +01:00
|
|
|
(wine.override { wineBuild = "wineWow"; })
|
2019-04-18 10:52:40 +01:00
|
|
|
yubico-piv-tool yubikey-personalization yubikey-personalization-gui yubikey-manager-qt
|
2019-03-26 12:32:59 +00:00
|
|
|
];
|
2019-03-26 10:12:24 +00:00
|
|
|
uid = 1000;
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2019-04-05 22:02:20 +01:00
|
|
|
virtualisation.virtualbox.host = {
|
|
|
|
enable = true;
|
|
|
|
enableExtensionPack = true;
|
2019-04-06 11:29:48 +01:00
|
|
|
enableHardening = false; #needed for 3D acceleration
|
2019-04-05 22:02:20 +01:00
|
|
|
};
|
|
|
|
|
2019-04-12 10:37:23 +01:00
|
|
|
|
2019-04-03 13:37:24 +01:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
autoPrune.enable = true;
|
|
|
|
};
|
|
|
|
|
2019-03-31 13:42:59 +01:00
|
|
|
services = {
|
|
|
|
fwupd.enable = true;
|
2019-03-31 13:36:20 +01:00
|
|
|
|
2019-04-13 09:42:13 +01:00
|
|
|
printing = {
|
2019-04-08 11:09:37 +01:00
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.epson-escpr ];
|
|
|
|
};
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};
|
|
|
|
|
2019-03-31 13:42:59 +01:00
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "cyryl";
|
|
|
|
dataDir = "/home/cyryl/.syncthing";
|
|
|
|
openDefaultPorts = true;
|
|
|
|
};
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2019-04-03 11:38:01 +01:00
|
|
|
restic.backups.home = {
|
|
|
|
passwordFile = "/etc/nixos/secrets/restic-password";
|
|
|
|
paths = [ "/home" ];
|
|
|
|
repository = "sftp:fetcher@brix:/mnt/data/backup-targets";
|
|
|
|
timerConfig = { OnCalendar = "hourly"; };
|
|
|
|
};
|
|
|
|
|
2019-04-19 20:36:53 +01:00
|
|
|
gnome3.chrome-gnome-shell.enable = true;
|
|
|
|
gnome3.gnome-keyring.enable = true;
|
2019-03-31 13:42:59 +01:00
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "pl";
|
|
|
|
libinput.enable = true;
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2019-03-31 13:42:59 +01:00
|
|
|
desktopManager = {
|
|
|
|
gnome3.enable = true;
|
|
|
|
};
|
2019-04-20 10:21:11 +01:00
|
|
|
displayManager.gdm= {
|
|
|
|
enable = true;
|
|
|
|
wayland = false;
|
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
};
|
2019-03-26 10:12:24 +00:00
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2019-04-20 10:21:11 +01:00
|
|
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
2019-04-19 20:36:53 +01:00
|
|
|
|
2019-03-31 13:42:59 +01:00
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
2019-03-26 10:12:24 +00:00
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
2019-04-03 11:38:01 +01:00
|
|
|
hardware.u2f.enable = true;
|
|
|
|
hardware.brightnessctl.enable = true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
2019-04-06 11:29:48 +01:00
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
2019-04-06 17:10:03 +01:00
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
2019-04-06 11:29:48 +01:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
vaapiIntel
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
2019-04-12 10:37:23 +01:00
|
|
|
intel-media-driver
|
2019-04-06 11:29:48 +01:00
|
|
|
];
|
|
|
|
};
|
2019-04-03 11:38:01 +01:00
|
|
|
hardware.sane.enable = true;
|
2019-03-26 10:12:24 +00:00
|
|
|
|
|
|
|
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
|
|
|
|
|
2019-03-31 13:42:59 +01:00
|
|
|
boot = {
|
|
|
|
initrd.luks.devices = [
|
|
|
|
{
|
|
|
|
name = "root";
|
|
|
|
device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
version = 2;
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
};
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
2019-04-06 11:29:48 +01:00
|
|
|
kernelParams = [
|
|
|
|
"i915.enable_rc6=7"
|
|
|
|
];
|
2019-03-31 13:42:59 +01:00
|
|
|
};
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2019-04-07 22:42:58 +01:00
|
|
|
nix.gc.automatic = true;
|
2019-04-05 22:02:20 +01:00
|
|
|
system.autoUpgrade.enable = true;
|
2019-03-26 10:12:24 +00:00
|
|
|
system.stateVersion = "18.09";
|
|
|
|
}
|
2019-03-26 12:32:59 +00:00
|
|
|
|