dotfiles/nixos/configuration.nix

104 lines
2.4 KiB
Nix
Raw Normal View History

2019-03-26 10:12:24 +00:00
{ config, pkgs, ... }:
2019-03-26 12:32:59 +00:00
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
2019-04-02 21:00:00 +01:00
myVim = pkgs.vim_configurable.override {
features = "huge"; # one of tiny, small, normal, big or huge
cfg = {
luaSupport = true;
pythonSupport = true;
python3Support = true;
multibyteSupport = true;
};
flags = {
xim.enable = true;
};
};
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-03-26 12:32:59 +00:00
nixpkgs.config = {
packageOverrides = pkgs: {
unstable = import unstableTarball {
config = config.nixpkgs.config;
};
};
};
2019-03-26 10:12:24 +00:00
environment.systemPackages = with pkgs; [
2019-04-02 21:00:00 +01:00
wget myVim git zsh gnupg curl tmux microcodeIntel
2019-03-26 10:12:24 +00:00
];
networking.hostName = "skinnyv";
users.users.cyryl = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
2019-03-26 12:32:59 +00:00
packages = with pkgs; [
2019-04-02 21:00:00 +01:00
firefox chromium terminator zsh keepass fontconfig go nodejs unstable.rustup gcc gdb binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy gnome3.gnome-shell-extensions chrome-gnome-shell gnomeExtensions.clipboard-indicator gnomeExtensions.caffeine gnomeExtensions.no-title-bar unstable.gnomeExtensions.gsconnect unstable.appimage-run openjdk10 pdftk pdfshuffler gimp
2019-03-26 12:32:59 +00:00
];
2019-03-26 10:12:24 +00:00
uid = 1000;
shell = pkgs.zsh;
};
services = {
gnome3.chrome-gnome-shell.enable = true;
2019-03-26 12:32:59 +00:00
fwupd.enable = true;
syncthing = {
enable = true;
user = "cyryl";
dataDir = "/home/cyryl/.syncthing";
openDefaultPorts = true;
};
2019-03-26 10:12:24 +00:00
xserver = {
enable = true;
layout = "pl";
libinput.enable = true;
2019-03-26 12:32:59 +00:00
desktopManager = {
gnome3.enable = true;
xterm.enable = false;
};
displayManager.gdm.enable = true;
2019-03-26 12:32:59 +00:00
};
2019-03-26 10:12:24 +00:00
};
2019-03-26 12:32:59 +00:00
time.timeZone = "Europe/London";
2019-03-26 10:12:24 +00:00
sound.enable = true;
hardware.pulseaudio.enable = true;
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
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-03-26 10:12:24 +00:00
system.stateVersion = "18.09";
}
2019-03-26 12:32:59 +00:00