dotfiles/nixos/common.nix
Cyryl Płotnicki fe4d30f651 nixpkgs-fmt
2021-11-22 19:32:26 +00:00

71 lines
1.4 KiB
Nix

{ config, pkgs, lib, inputs, ... }:
{
imports =
[
./common-hardware.nix
./common-services.nix
./security.nix
./syncthing.nix
];
security.allowUserNamespaces = true;
environment.enableDebugInfo = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
git
gnupg
curl
tmux
htop
atop
home-manager
pciutils
powertop
fd
dnsutils
usbutils
veracrypt
];
i18n.defaultLocale = "en_GB.UTF-8";
users.users.cyryl = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers" "adbusers" "libvirtd" "dialout" "wireshark" ];
shell = pkgs.zsh;
};
networking.hosts = {
"10.11.99.1" = [ "remarkable" ];
};
programs.light.enable = true;
programs.adb.enable = true;
programs.wireshark.enable = true;
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka font-awesome nerdfonts ];
nix = {
autoOptimiseStore = true;
daemonIONiceLevel = 7;
daemonNiceLevel = 19;
gc.automatic = true;
optimise.automatic = true;
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
system = {
stateVersion = "20.03";
};
}