2019-07-06 08:55:20 +01:00
|
|
|
{ config, pkgs, lib , ... }:
|
2019-03-26 10:12:24 +00:00
|
|
|
|
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-04-26 09:04:38 +01:00
|
|
|
etesync-dav = import ./packages/etesync-dav/default.nix;
|
2019-03-26 12:32:59 +00:00
|
|
|
in
|
2019-07-07 12:08:00 +01:00
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./vscode.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./gsconnect.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
packageOverrides = pkgs: {
|
|
|
|
unstable = import unstableTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
|
|
|
cyplo = import ./nixpkgs {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
|
|
|
};
|
2019-04-19 20:36:53 +01:00
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2019-07-14 15:16:49 +01:00
|
|
|
wget git gnupg curl tmux python36Packages.glances vim htop atop firefox home-manager alacritty pciutils
|
2019-07-07 12:08:00 +01:00
|
|
|
];
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
users.users.cyryl = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers"];
|
|
|
|
packages = with pkgs; [
|
|
|
|
unstable.pypi2nix etesync-dav unstable.hopper
|
|
|
|
];
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
virtualisation.docker = {
|
2019-07-06 11:34:11 +01:00
|
|
|
enable = true;
|
2019-07-07 12:08:00 +01:00
|
|
|
autoPrune.enable = true;
|
2019-07-06 11:34:11 +01:00
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
services = {
|
|
|
|
fwupd.enable = true;
|
|
|
|
tlp.enable = true;
|
2019-07-08 21:23:03 +01:00
|
|
|
fstrim.enable = true;
|
2019-07-07 12:08:00 +01:00
|
|
|
|
|
|
|
printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
|
|
|
|
};
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
restic.backups.home = {
|
|
|
|
passwordFile = "/etc/nixos/secrets/restic-password";
|
|
|
|
paths = [ "/home" ];
|
|
|
|
repository = "sftp:fetcher@brix:/mnt/data/backup-targets";
|
|
|
|
timerConfig = { OnCalendar = "hourly"; };
|
|
|
|
};
|
|
|
|
|
|
|
|
xserver = {
|
2019-07-06 08:55:20 +01:00
|
|
|
enable = true;
|
2019-07-07 12:08:00 +01:00
|
|
|
layout = "pl";
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
naturalScrolling = false;
|
|
|
|
clickMethod = "clickfinger";
|
|
|
|
};
|
|
|
|
|
2019-07-14 08:47:36 +01:00
|
|
|
displayManager.lightdm = {
|
2019-07-07 12:08:00 +01:00
|
|
|
enable = true;
|
|
|
|
};
|
2019-07-06 08:55:20 +01:00
|
|
|
};
|
2019-03-31 13:42:59 +01:00
|
|
|
};
|
2019-07-07 12:08:00 +01:00
|
|
|
|
|
|
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
|
|
|
2019-07-08 21:47:51 +01:00
|
|
|
fonts.fonts = [ pkgs.powerline-fonts ];
|
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
sound.enable = true;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
hardware.u2f.enable = true;
|
|
|
|
hardware.brightnessctl.enable = true;
|
|
|
|
hardware.sane.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
|
|
|
|
2019-07-08 22:45:33 +01:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
nix.gc.automatic = true;
|
2019-07-08 22:45:33 +01:00
|
|
|
nix.autoOptimiseStore = true;
|
|
|
|
nix.optimise.automatic = true;
|
|
|
|
nix.daemonIONiceLevel = 7;
|
|
|
|
nix.daemonNiceLevel = 19;
|
2019-07-07 12:08:00 +01:00
|
|
|
system.autoUpgrade.enable = true;
|
|
|
|
system.stateVersion = "19.03";
|
|
|
|
}
|
2019-03-26 12:32:59 +00:00
|
|
|
|