Use unstable sway packages

This commit is contained in:
Artemis Tosini 2022-03-10 18:55:15 +00:00
parent a99d241d7f
commit ced0dd9e3e
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 16 additions and 13 deletions

View file

@ -39,11 +39,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1646740881,
"narHash": "sha256-1G/g64ttat6ZeSXu8otZQFYQqb/EylxuiReQaZ5XnF0=",
"lastModified": 1646913673,
"narHash": "sha256-nz8fwn5+8yiXP5SQCs8WEGAtkIinQE4OwgHjm0nM6i0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4a35c770221bf9dea0da66b9e92702c5da144581",
"rev": "cac809141eb742190550d7b627116d2b612686fa",
"type": "github"
},
"original": {

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, inputs, ... }:
{ pkgs, pkgs-unstable, lib, config, inputs, ... }:
let
rustybar = inputs.rustybar.defaultPackage."${pkgs.system}";
cfg = config.wayland.windowManager.sway;
@ -34,12 +34,15 @@ in
{
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
package = pkgs-unstable.sway.override {
withBaseWrapper = true;
withGtkWrapper = true;
extraSessionCommands = ''
export MOZ_USE_XINPUT2=1
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_THEME=Adwaita-dark
'';
};
config = {
modifier = "Mod4";
terminal = "alacritty";

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, pkgs-unstable, ... }:
{
imports = [ ./fonts.nix ];
security.polkit.enable = true;
@ -32,8 +32,8 @@
xdg-user-dirs
xdg_utils
xsettingsd
swaylock
swayidle
pkgs-unstable.swaylock
pkgs-unstable.swayidle
];
hardware.opengl.enable = true;