feat(sway): add sway configuration
This commit is contained in:
parent
cc882bb3ee
commit
6e3d610c00
2 changed files with 70 additions and 0 deletions
23
home/sway/nixos.nix
Normal file
23
home/sway/nixos.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
gui = with config.faucet.gui; ( enable && session );
|
||||
in mkIf gui {
|
||||
services.xserver.displayManager.sessionPackages = [
|
||||
(pkgs.writeTextFile {
|
||||
name = "sway-session";
|
||||
destination = "/share/wayland-sessions/sway.desktop";
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Name=Sway
|
||||
Comment=An i3-compatible Wayland compositor
|
||||
Exec=sway --unsupported-gpu
|
||||
Type=Application
|
||||
'';
|
||||
} // { providedSessions = [ pkgs.sway.meta.mainProgram ]; })
|
||||
];
|
||||
|
||||
security.pam.services.swaylock = { };
|
||||
programs.light.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue