nix updates

This commit is contained in:
horhik 2021-06-09 22:14:09 +03:00
parent 04f7734100
commit 5ac25aaec4
2 changed files with 51 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, callPackage, ... }:
{
nix = {
@ -97,7 +97,8 @@
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
services.xserver.libinput.touchpad.tapping = true;
services.xserver.libinput.touchpad.disableWhileTyping = true;
# TODO create touchpad.nix
# Define a user account. Don't forget to set a password with passwd.
users.defaultUserShell = pkgs.zsh;
users.users.horhik = {
@ -210,5 +211,14 @@
programs.adb.enable = true;
programs.adb.enable = true;
services.emacs.package = pkgs.emacsUnstable;
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
sha256 = "0c2p2ycx6c50rzfd5k56cc411cb0ilhc3zyhhxlwcjnz1ysn5laj";
}))
];
}

View File

@ -20,6 +20,37 @@
services.picom.shadowExclude = [
"class_g = 'Navigator'"
];
# services.picom.winTypes =
# {
# normal = {
# fade = false;
# shadow = true;
# };
# tooltip = {
# fade = true;
# shadow = true;
# opacity = 0.75;
# focus = true;
# full-shadow = false;
# round-borders = 0; corner-radius = 0;
# };
# dock = {
# shadow = false;
# round-borders = 0;
# corner-radius = 0;
# };
# dnd = {
# shadow = true;
# round-borders = 0;
# corner-radius = 0;
# };
# popup_menu = {
# opacity = 0.8;
# };
# dropdown_menu = {
# opacity = 0.8;
# };
# };
services.picom.extraOptions = ''
#inactive-dim = 0.5;
#active-opacity = 1.0;
@ -39,15 +70,19 @@
"class_g = 'Navigator'",
"class_g = 'Firefox'"
];
corner-radius = 4;
corner-radius = 0;
rounded-corners-exclude = [
"window_type = 'dock'",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_FULLSCREEN'",
"class_g = 'keynav'",
];
round-borders = 4;
round-borders = 0;
round-borders-exclude = [
"class_g = 'keynav'"
"class_g = 'keynav'",
"class_g = 'Xmonad'",
"class_g = 'xmobar'",
"class_g = 'simpleTabbed'",
"class_g = 'tabbed'"
];
'';
}