2022-02-15 15:44:40 +01:00
|
|
|
inputs:
|
2022-02-18 12:13:34 +01:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2022-02-15 15:44:40 +01:00
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2022-02-18 12:13:34 +01:00
|
|
|
settings = {
|
|
|
|
substituters = lib.mkForce [
|
|
|
|
"https://cache.nixos.org/"
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# nix shell and nix build should use the same channel as the flake
|
|
|
|
registry.nixpkgs.flake = nixpkgs;
|
2022-02-15 15:44:40 +01:00
|
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
networkmanager.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
pulseaudio = {
|
2022-02-18 12:13:34 +01:00
|
|
|
# TODO: pipewire
|
|
|
|
enable = false;
|
2022-02-15 15:44:40 +01:00
|
|
|
# stop mumble from muting other processes
|
|
|
|
extraConfig = "unload-module module-role-cork";
|
|
|
|
};
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
dbus.packages = with pkgs; [ gcr ];
|
|
|
|
unbound.enable = true;
|
|
|
|
udisks2.enable = true;
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
printing.enable = true;
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
# required for nextcloud
|
|
|
|
gnome.gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
# faster entropy generation
|
|
|
|
haveged.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
layout = "eu";
|
|
|
|
xkbOptions = "caps:escape";
|
|
|
|
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+i3";
|
|
|
|
lightdm.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
windowManager.i3 = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
dmenu
|
|
|
|
rofi
|
|
|
|
i3status
|
|
|
|
i3lock
|
|
|
|
i3blocks
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"L+ /lib64/ld-linux-x86-64.so.2 - - - - ${pkgs.stdenv.glibc}/lib64/ld-linux-x86-64.so.2"
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
arandr
|
|
|
|
git
|
|
|
|
keepassxc
|
|
|
|
lxappearance
|
|
|
|
networkmanagerapplet
|
|
|
|
nextcloud-client
|
|
|
|
pavucontrol
|
|
|
|
termite
|
|
|
|
vim
|
|
|
|
which
|
|
|
|
|
|
|
|
xfce.thunar
|
|
|
|
xfce.thunar-volman
|
|
|
|
gvfs
|
|
|
|
];
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
docker = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# podman = {
|
|
|
|
# enable = true;
|
|
|
|
# dockerCompat = true;
|
|
|
|
# dockerSocket.enable = true;
|
|
|
|
# };
|
|
|
|
# lxd.enable = true;
|
|
|
|
# virtualbox.host.enable = true;
|
|
|
|
# virtualbox.host.enableExtensionPack = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
# enable zsh globally
|
|
|
|
zsh.enable = true;
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
XKB_DEFAULT_OPTIONS = "caps:escape";
|
|
|
|
XKB_DEFAULT_LAYOUT = "eu";
|
|
|
|
};
|
|
|
|
|
|
|
|
# required for i3
|
|
|
|
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableDefaultFonts = true;
|
|
|
|
fonts = with pkgs; [
|
|
|
|
font-awesome-ttf
|
|
|
|
nerdfonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
noto-fonts-emoji
|
|
|
|
powerline-fonts
|
|
|
|
];
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
|
|
|
monospace = [ "JetBrainsMono Nerd Font" "Noto Color Emoji" ];
|
|
|
|
sansSerif = [ "JetBrainsMono Nerd Font" "Noto Color Emoji" ];
|
|
|
|
serif = [ "JetBrainsMono Nerd Font" "Noto Color Emoji" ];
|
|
|
|
};
|
|
|
|
};
|
2022-02-18 12:13:34 +01:00
|
|
|
};
|
2022-02-15 15:44:40 +01:00
|
|
|
}
|