Fix discord

This commit is contained in:
SebastianStork 2025-03-26 16:25:36 +01:00
parent fad8b9518d
commit 6ff9a2158c
5 changed files with 43 additions and 8 deletions

21
flake.lock generated
View file

@ -169,6 +169,26 @@
"type": "github"
}
},
"home-manager-unstable": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1742996658,
"narHash": "sha256-snxgTLVq6ooaD3W3mPHu7LVWpoZKczhxHAUZy2ea4oA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "693840c01b9bef9e54100239cef937e53d4661bf",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"hypridle": {
"inputs": {
"hyprland-protocols": "hyprland-protocols",
@ -416,6 +436,7 @@
"firefox-addons": "firefox-addons",
"flake-parts": "flake-parts",
"home-manager": "home-manager",
"home-manager-unstable": "home-manager-unstable",
"hypridle": "hypridle",
"nextcloud-side-menu": "nextcloud-side-menu",
"nextcloud-twofactor-totp": "nextcloud-twofactor-totp",

View file

@ -18,6 +18,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager-unstable = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,11 +1,15 @@
{
config,
inputs,
pkgs,
pkgs-unstable,
lib,
...
}@moduleArgs:
{
# Use unstable hyprland module for nullable package
disabledModules = [ "services/window-managers/hyprland.nix" ];
imports = [ "${inputs.home-manager-unstable}/modules/services/window-managers/hyprland.nix" ];
options.myConfig.de.hyprland.enable = lib.mkEnableOption "" // {
default = moduleArgs.osConfig.myConfig.de.hyprland.enable or false;
};
@ -13,7 +17,8 @@
config = lib.mkIf config.myConfig.de.hyprland.enable {
wayland.windowManager.hyprland = {
enable = true;
package = pkgs-unstable.hyprland;
package = null;
portalPackage = null;
};
home.packages = [

View file

@ -8,10 +8,14 @@
options.myConfig.de.hyprland.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.de.hyprland.enable {
programs.hyprland = {
enable = true;
package = pkgs-unstable.hyprland;
portalPackage = pkgs-unstable.xdg-desktop-portal-hyprland;
programs = {
hyprland = {
enable = true;
package = pkgs-unstable.hyprland;
portalPackage = pkgs-unstable.xdg-desktop-portal-hyprland;
};
xwayland.package = pkgs-unstable.xwayland;
};
hardware.graphics = {

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, pkgs-unstable, ... }:
{
imports = [ ../shared-home.nix ];
@ -31,7 +31,7 @@
pkgs.todoist-electron
pkgs.anki
pkgs.discord
pkgs-unstable.discord
pkgs.signal-desktop
pkgs.element-desktop