fixed hyprland collision

This commit is contained in:
specCon18 2023-08-15 22:40:24 -04:00
parent 08ee0b7d56
commit 4ae96c2a65
5 changed files with 11 additions and 91 deletions

79
flake.lock generated
View file

@ -163,31 +163,6 @@
"type": "github"
}
},
"hyprland-protocols_2": {
"inputs": {
"nixpkgs": [
"xdph",
"nixpkgs"
],
"systems": [
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1691753796,
"narHash": "sha256-zOEwiWoXk3j3+EoF3ySUJmberFewWlagvewDRuWYAso=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "0c2ce70625cb30aef199cb388f99e19a61a6ce03",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"lowdown-src": {
"flake": false,
"locked": {
@ -356,22 +331,6 @@
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1683014792,
"narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1a411f23ba299db155a5b45d5e145b85a7aafc42",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": [
@ -408,8 +367,7 @@
"hyprland": "hyprland",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3",
"sops-nix": "sops-nix",
"xdph": "xdph_2"
"sops-nix": "sops-nix"
}
},
"sops-nix": {
@ -446,21 +404,6 @@
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"wlroots": {
"flake": false,
"locked": {
@ -508,26 +451,6 @@
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
},
"xdph_2": {
"inputs": {
"hyprland-protocols": "hyprland-protocols_2",
"nixpkgs": "nixpkgs_5",
"systems": "systems_2"
},
"locked": {
"lastModified": 1691841170,
"narHash": "sha256-RCTm1/MVWYPnReMgyp7tr2ogGYo/pvw38jZaFwemgPU=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "57a3a41ba6b358109e4fc25c6a4706b5f7d93c6b",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
}
},
"root": "root",

View file

@ -7,7 +7,7 @@
sops-nix.url = github:Mic92/sops-nix;
devenv.url = "github:cachix/devenv/latest";
hyprland.url = "github:hyprwm/Hyprland";
xdph.url = "github:hyprwm/xdg-desktop-portal-hyprland";
# xdph.url = "github:hyprwm/xdg-desktop-portal-hyprland";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
@ -18,7 +18,7 @@
};
};
outputs = { self, home-manager, nixos-hardware, disko, nixpkgs, sops-nix, devenv, hyprland, xdph, ... }@inputs:
outputs = { self, home-manager, nixos-hardware, disko, nixpkgs, sops-nix, devenv, hyprland, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
@ -63,7 +63,7 @@
./machines/katana.nix #machine specific configuration
"speccon18" #default user
[
hyprland.nixosModules.default
# hyprland.nixosModules.default
./modules/system/desktop-environments/hyprland.nix
./hosts/katana/default.nix
./hosts/katana/networkd.nix

View file

@ -47,7 +47,7 @@ in {
};
xdg = {
portal = { enable = lib.mkDefault true; };
# portal = { enable = lib.mkDefault true; };
mime.defaultApplications = {
"text/markdown" = "hx";
};

View file

@ -1,9 +1,5 @@
{
config,
pkgs,
lib,
...
}: let
{ config, pkgs, lib, ...}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.speccon18.desktop.hyprland;
in {
@ -13,7 +9,7 @@ in {
config = mkIf cfg.enable {
programs.hyprland = {
enable = true;
enableNvidiaPatches = true;
nvidiaPatches = true;
xwayland.enable = true;
};
environment = {
@ -28,6 +24,7 @@ in {
rofi-wayland
libnotify
mako
hyprland
];
sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
@ -37,8 +34,8 @@ in {
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
];
};
hardware = {