dotfiles/nixos/common.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

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
2019-04-19 20:36:53 +01:00
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
2019-03-26 12:32:59 +00:00
in
2019-07-07 12:08:00 +01:00
{
imports =
[
./vscode.nix
./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
2019-08-24 18:29:29 +01:00
./vim.nix
2019-10-06 12:17:36 +01:00
./cachix.nix
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;
};
};
2019-04-19 20:36:53 +01:00
};
2019-03-26 12:32:59 +00:00
2019-07-07 12:08:00 +01:00
environment.systemPackages = with pkgs; [
2019-12-10 18:16:45 +00:00
wget git gnupg curl tmux python36Packages.glances htop atop firefox home-manager alacritty pciutils powertop ripgrep-all 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;
2019-07-26 12:41:26 +01:00
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers" "adbusers" ];
2019-07-07 12:08:00 +01:00
shell = pkgs.zsh;
};
2019-07-14 19:24:40 +01:00
programs.light.enable = true;
2019-07-26 12:41:26 +01:00
programs.adb.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
2019-09-27 23:59:21 +01:00
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka ];
2019-07-07 12:08:00 +01:00
2019-07-21 16:47:36 +01:00
nix = {
autoOptimiseStore = true;
daemonIONiceLevel = 7;
daemonNiceLevel = 19;
gc.automatic = true;
optimise.automatic = true;
};
2019-07-07 12:08:00 +01:00
2019-07-21 16:47:36 +01:00
system = {
2019-10-10 15:28:58 +01:00
stateVersion = "19.09";
2019-07-21 16:47:36 +01:00
};
2019-07-07 12:08:00 +01:00
}