dotfiles/nixos/common.nix

64 lines
1.7 KiB
Nix
Raw Normal View History

2019-07-18 22:17:36 +01:00
{ config, pkgs, ... }:
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;
environment.systemPackages = with pkgs; [
wget git gnupg curl tmux htop atop home-manager pciutils powertop fd dnsutils usbutils
];
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;
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"
];
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
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";
};
}