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-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-03-26 10:12:24 +00:00
|
|
|
{
|
|
|
|
imports =
|
2019-03-26 12:32:59 +00:00
|
|
|
[
|
2019-04-20 22:50:58 +01:00
|
|
|
./vscode.nix
|
2019-04-21 10:18:35 +01:00
|
|
|
./syncthing.nix
|
|
|
|
./gsconnect.nix
|
2019-03-26 10:12:24 +00: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: {
|
|
|
|
unstable = import unstableTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
2019-04-26 07:21:51 +01:00
|
|
|
cyplo = import ./nixpkgs {
|
2019-04-19 20:36:53 +01:00
|
|
|
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-07-05 23:11:21 +01:00
|
|
|
wget git zsh gnupg curl tmux python36Packages.glances vim htop atop firefox
|
2019-03-26 10:12:24 +00: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-06-30 18:58:15 +01:00
|
|
|
unstable.pypi2nix etesync-dav unstable.hopper
|
2019-03-26 12:32:59 +00:00
|
|
|
];
|
2019-03-26 10:12:24 +00:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2019-04-05 22:02:20 +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;
|
2019-04-30 11:39:38 +01:00
|
|
|
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
|
2019-04-08 11:09:37 +01:00
|
|
|
};
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};
|
|
|
|
|
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-26 10:12:24 +00:00
|
|
|
sound.enable = true;
|
2019-07-05 23:11:21 +01:00
|
|
|
networking.networkmanager.enable = true;
|
2019-07-06 07:54:07 +01:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
2019-03-26 10:12:24 +00:00
|
|
|
hardware.pulseaudio.enable = true;
|
2019-04-03 11:38:01 +01:00
|
|
|
hardware.u2f.enable = true;
|
|
|
|
hardware.brightnessctl.enable = true;
|
|
|
|
hardware.sane.enable = true;
|
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-07-05 23:11:21 +01:00
|
|
|
system.stateVersion = "19.03";
|
2019-03-26 10:12:24 +00:00
|
|
|
}
|
2019-03-26 12:32:59 +00:00
|
|
|
|