fix: add some more xdph options (they don't work)

This commit is contained in:
jacekpoz 2023-10-19 20:22:36 +02:00
parent b155c8912b
commit 344fa289e4
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
3 changed files with 83 additions and 3 deletions

View file

@ -1450,6 +1450,31 @@
"type": "github" "type": "github"
} }
}, },
"hyprland-protocols_2": {
"inputs": {
"nixpkgs": [
"xdg-desktop-portal-hyprland",
"nixpkgs"
],
"systems": [
"xdg-desktop-portal-hyprland",
"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"
}
},
"icon-picker-nvim": { "icon-picker-nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2295,6 +2320,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_16": {
"locked": {
"lastModified": 1697456312,
"narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ca012a02bf8327be9e488546faecae5e05d7d749",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1689444953, "lastModified": 1689444953,
@ -3008,7 +3049,8 @@
"nur": "nur", "nur": "nur",
"schizofox": "schizofox", "schizofox": "schizofox",
"shadower": "shadower", "shadower": "shadower",
"split-monitor-workspaces": "split-monitor-workspaces" "split-monitor-workspaces": "split-monitor-workspaces",
"xdg-desktop-portal-hyprland": "xdg-desktop-portal-hyprland"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {
@ -3392,6 +3434,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_9": {
"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"
}
},
"tabular": { "tabular": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -3746,6 +3803,26 @@
"type": "gitlab" "type": "gitlab"
} }
}, },
"xdg-desktop-portal-hyprland": {
"inputs": {
"hyprland-protocols": "hyprland-protocols_2",
"nixpkgs": "nixpkgs_16",
"systems": "systems_9"
},
"locked": {
"lastModified": 1697281098,
"narHash": "sha256-yKrV/2lwKUZnzLUneI9x8CtiD4WTGLIJ4hNjxAmaySw=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "d8daa2a84f5e9b38eb89e0631b294e7d0a83aa9b",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": [ "hyprland-protocols": [

View file

@ -17,6 +17,8 @@
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
xdg-desktop-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
hyprcontrib.url = "github:hyprwm/contrib"; hyprcontrib.url = "github:hyprwm/contrib";
hyprland-plugins = { hyprland-plugins = {

View file

@ -23,7 +23,7 @@ in {
enable = mkEnableOption "enable hiper ląd"; enable = mkEnableOption "enable hiper ląd";
}; };
imports = [ inputs.hyprland.nixosModules.default ]; disabledModules = [ "programs/hyprland.nix" ];
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix.settings = { nix.settings = {
@ -35,6 +35,7 @@ in {
enable = true; enable = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gtk
inputs.xdg-desktop-portal-hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
]; ];
}; };
@ -282,7 +283,7 @@ in {
exec-once=[workspace special:rog silent;tile] ${pkgs.asusctl}/bin/rog-control-center exec-once=[workspace special:rog silent;tile] ${pkgs.asusctl}/bin/rog-control-center
exec-once=[workspace special:keepassxc silent;tile] ${pkgs.keepassxc}/bin/keepassxc exec-once=[workspace special:keepassxc silent;tile] ${pkgs.keepassxc}/bin/keepassxc
${if config.myOptions.programs.foot.server then "exec-once=sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user start foot.service" else ""} ${if config.myOptions.programs.foot.server then "exec-once=sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user restart foot.service" else ""}
exec-once=${hyprland}/bin/hyprctl setcursor Bibata-Modern-Classic 24 exec-once=${hyprland}/bin/hyprctl setcursor Bibata-Modern-Classic 24
#exec-once=${wl-clipboard}/bin/wl-paste --watch cliphist store #exec-once=${wl-clipboard}/bin/wl-paste --watch cliphist store