[NixOS] Use own picom config

This commit is contained in:
Ivan Malison 2021-07-18 20:20:00 -06:00
parent 84137f30be
commit 4e16364e40
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
4 changed files with 31 additions and 13 deletions

View File

@ -1483,6 +1483,7 @@ The file server file for this emacs instance no longer exists.")
** beacon ** beacon
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package beacon (use-package beacon
:disabled t
:demand t :demand t
:diminish beacon-mode :diminish beacon-mode
:bind ("C-c b" . beacon-blink) :bind ("C-c b" . beacon-blink)

View File

@ -1,5 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.sway.enable = true;
services.xserver.windowManager.i3.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
asciidoctor asciidoctor
gource gource

View File

@ -62,7 +62,7 @@
] ]
}, },
"locked": { "locked": {
"narHash": "sha256-OtY5KlTU1TOydDiFTjPx0lCZmfLwdWEagm0C1NROErU=", "narHash": "sha256-CBJguKlUR3DInWleAYhkqA9ujMjKazdThSHK84peKFQ=",
"path": "./home-manager", "path": "./home-manager",
"type": "path" "type": "path"
}, },
@ -127,7 +127,7 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"narHash": "sha256-vBvIKuTZfH6H62RTomwSLCg0HwTsTzGsd0WCfxsuB7U=", "narHash": "sha256-xifLAB3xxYZKkx0I0w7lZKsABhgbqLZQ+ctR6Z3KpI4=",
"path": "./nixpkgs", "path": "./nixpkgs",
"type": "path" "type": "path"
}, },
@ -138,8 +138,8 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"narHash": "sha256-eRDWIO61MIEZs/ftS1dp5fqdJQr3yTcfzBrYcC3k31M=", "narHash": "sha256-xifLAB3xxYZKkx0I0w7lZKsABhgbqLZQ+ctR6Z3KpI4=",
"path": "/nix/store/cbpvh4ldqsjfvvlmxcq81kn3y2dnvwkw-source", "path": "./nixpkgs",
"type": "path" "type": "path"
}, },
"original": { "original": {
@ -149,8 +149,8 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"narHash": "sha256-eRDWIO61MIEZs/ftS1dp5fqdJQr3yTcfzBrYcC3k31M=", "narHash": "sha256-xifLAB3xxYZKkx0I0w7lZKsABhgbqLZQ+ctR6Z3KpI4=",
"path": "/nix/store/cbpvh4ldqsjfvvlmxcq81kn3y2dnvwkw-source", "path": "./nixpkgs",
"type": "path" "type": "path"
}, },
"original": { "original": {
@ -160,8 +160,8 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"narHash": "sha256-eRDWIO61MIEZs/ftS1dp5fqdJQr3yTcfzBrYcC3k31M=", "narHash": "sha256-xifLAB3xxYZKkx0I0w7lZKsABhgbqLZQ+ctR6Z3KpI4=",
"path": "/nix/store/cbpvh4ldqsjfvvlmxcq81kn3y2dnvwkw-source", "path": "./nixpkgs",
"type": "path" "type": "path"
}, },
"original": { "original": {

View File

@ -1,7 +1,8 @@
{ pkgs, ... }: { { pkgs, config, ... }: {
xsession = { xsession = {
enable = true; enable = true;
preferStatusNotifierItems = true; preferStatusNotifierItems = true;
importedVariables = [ "GDK_PIXBUF_ICON_LOADER" ];
profileExtra = '' profileExtra = ''
export ROFI_SYSTEMD_TERM="alacritty -e" export ROFI_SYSTEMD_TERM="alacritty -e"
. "$HOME/.lib/login.sh" . "$HOME/.lib/login.sh"
@ -27,10 +28,6 @@
enableSshSupport = true; enableSshSupport = true;
}; };
services.picom = {
enable = true;
};
services.blueman-applet = { services.blueman-applet = {
enable = false; enable = false;
}; };
@ -91,4 +88,22 @@
} }
]; ];
}; };
systemd.user.services.picom = {
Unit = {
Description = "Picom X11 compositor";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
# Temporarily fixes corrupt colours with Mesa 18.
Environment = [ "allow_rgb10_configs=false" ];
ExecStart = "${pkgs.picom}/bin/picom";
Restart = "always";
RestartSec = 3;
};
};
} }