2019-07-18 22:17:36 +01:00
|
|
|
{ config, pkgs, ... }:
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2019-03-26 12:32:59 +00:00
|
|
|
let
|
2020-11-21 16:20:13 +00:00
|
|
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz;
|
2021-04-17 21:36:37 +01:00
|
|
|
bisqTarball = fetchTarball https://github.com/emmanuelrosa/nixpkgs/archive/6ee154d2bc8c4c48cde2d7ae5bcd0a3da28b2b72.tar.gz;
|
2021-03-17 17:40:16 +00:00
|
|
|
nurTarball = fetchTarball https://github.com/nix-community/NUR/archive/master.tar.gz;
|
2019-03-26 12:32:59 +00:00
|
|
|
in
|
2019-07-07 12:08:00 +01:00
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./syncthing.nix
|
|
|
|
./gsconnect.nix
|
2019-07-18 22:17:36 +01:00
|
|
|
./common-hardware.nix
|
2019-07-21 16:47:36 +01:00
|
|
|
./common-services.nix
|
2020-05-02 20:20:22 +01:00
|
|
|
./security.nix
|
2020-11-21 14:55:13 +00:00
|
|
|
./wireguard.nix
|
2019-07-07 12:08:00 +01:00
|
|
|
];
|
|
|
|
|
2020-02-16 09:23:31 +00:00
|
|
|
security.allowUserNamespaces = true;
|
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
2019-12-14 10:43:52 +00:00
|
|
|
packageOverrides = pkgs: {
|
|
|
|
unstable = import unstableTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
2021-04-17 21:36:37 +01:00
|
|
|
bisq = import bisqTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
2021-03-17 17:40:16 +00:00
|
|
|
nur = import nurTarball {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2019-12-14 10:43:52 +00:00
|
|
|
};
|
2019-04-19 20:36:53 +01:00
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2020-05-09 16:04:51 +01:00
|
|
|
environment.enableDebugInfo = true;
|
2019-07-07 12:08:00 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2020-07-19 21:57:42 +01:00
|
|
|
wget git gnupg curl tmux htop atop home-manager pciutils powertop fd dnsutils
|
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;
|
2020-12-22 21:04:22 +00:00
|
|
|
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers" "adbusers" "libvirtd" "dialout" "wireshark" ];
|
2019-07-07 12:08:00 +01:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2019-12-31 23:48:09 +00:00
|
|
|
networking.hosts = {
|
2020-12-21 14:06:49 +00:00
|
|
|
"10.11.99.1" = [ "remarkable" ];
|
2019-12-31 23:48:09 +00:00
|
|
|
};
|
|
|
|
|
2019-07-14 19:24:40 +01:00
|
|
|
programs.light.enable = true;
|
2019-07-26 12:41:26 +01:00
|
|
|
programs.adb.enable = true;
|
2020-12-22 21:04:22 +00:00
|
|
|
programs.wireshark.enable=true;
|
2019-07-07 12:08:00 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-04-19 12:23:21 +01:00
|
|
|
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka font-awesome nerdfonts ];
|
2019-07-07 12:08:00 +01:00
|
|
|
|
2019-12-24 19:13:52 +00:00
|
|
|
services.haveged.enable = true;
|
|
|
|
|
2019-07-21 16:47:36 +01:00
|
|
|
nix = {
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
daemonIONiceLevel = 7;
|
|
|
|
daemonNiceLevel = 19;
|
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
2020-12-21 14:24:42 +00:00
|
|
|
nixPath = [
|
|
|
|
"nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz"
|
|
|
|
"nixos-config=/etc/nixos/configuration.nix"
|
|
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
|
|
"home-manager=https://github.com/rycee/home-manager/archive/release-20.09.tar.gz"
|
|
|
|
];
|
2021-04-25 19:25:06 +01:00
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2019-03-31 13:42:59 +01:00
|
|
|
};
|
2019-07-07 12:08:00 +01:00
|
|
|
|
2021-04-25 19:25:06 +01:00
|
|
|
|
2019-07-21 16:47:36 +01:00
|
|
|
system = {
|
2020-04-12 17:19:17 +01:00
|
|
|
stateVersion = "20.03";
|
2019-07-21 16:47:36 +01:00
|
|
|
};
|
2019-07-07 12:08:00 +01:00
|
|
|
}
|