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": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1646740881, "lastModified": 1646913673,
"narHash": "sha256-1G/g64ttat6ZeSXu8otZQFYQqb/EylxuiReQaZ5XnF0=", "narHash": "sha256-nz8fwn5+8yiXP5SQCs8WEGAtkIinQE4OwgHjm0nM6i0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4a35c770221bf9dea0da66b9e92702c5da144581", "rev": "cac809141eb742190550d7b627116d2b612686fa",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

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

View file

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