dotfiles/nixos/common.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2021-06-12 16:15:00 +01:00
{ config, pkgs, lib, ... }:
2021-05-30 20:41:33 +01:00
{
imports =
[
./common-hardware.nix
./common-services.nix
./security.nix
./syncthing.nix
];
2019-03-26 10:12:24 +00:00
2021-05-30 20:41:33 +01:00
security.allowUserNamespaces = true;
2020-02-16 09:23:31 +00:00
2021-05-30 20:41:33 +01:00
environment.enableDebugInfo = true;
2021-06-12 16:15:00 +01:00
nixpkgs.config.allowUnfree = true;
2021-05-30 20:41:33 +01:00
environment.systemPackages = with pkgs; [
2021-06-12 16:15:00 +01:00
wget git gnupg curl tmux htop atop home-manager pciutils powertop fd dnsutils usbutils veracrypt
2021-05-30 20:41:33 +01:00
];
2019-03-26 12:32:59 +00:00
2021-05-30 20:41:33 +01:00
i18n.defaultLocale = "en_GB.UTF-8";
2019-03-26 10:12:24 +00:00
2021-05-30 20:41:33 +01:00
users.users.cyryl = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers" "adbusers" "libvirtd" "dialout" "wireshark" ];
shell = pkgs.zsh;
};
2019-03-26 10:12:24 +00:00
2021-05-30 20:41:33 +01:00
networking.hosts = {
"10.11.99.1" = [ "remarkable" ];
};
2019-07-07 12:08:00 +01:00
2021-05-30 20:41:33 +01:00
programs.light.enable = true;
programs.adb.enable = true;
programs.wireshark.enable=true;
2019-12-31 23:48:09 +00:00
2021-05-30 20:41:33 +01:00
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
2019-07-07 12:08:00 +01:00
2021-05-30 20:41:33 +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-03-26 12:32:59 +00:00
2021-05-30 20:41:33 +01:00
nix = {
autoOptimiseStore = true;
daemonIONiceLevel = 7;
daemonNiceLevel = 19;
gc.automatic = true;
optimise.automatic = true;
package = pkgs.nixUnstable;
extraOptions = ''
2021-06-12 16:15:00 +01:00
experimental-features = nix-command flakes
2021-05-30 20:41:33 +01:00
'';
};
2019-07-07 12:08:00 +01:00
2021-04-25 19:25:06 +01:00
2021-05-30 20:41:33 +01:00
system = {
stateVersion = "20.03";
};
}