feat(discord): use flatpak

This commit is contained in:
winston 2023-07-03 21:23:25 +02:00
parent f2d6da3e20
commit 8fef8b5817
Signed by: winston
GPG key ID: 3786770EDBC2B481
4 changed files with 46 additions and 41 deletions

View file

@ -52,11 +52,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687691275, "lastModified": 1688307440,
"narHash": "sha256-VVywT8ubStvDPF5TscDBokT3T0l3zsOzCW056noh5zc=", "narHash": "sha256-7PTjbN+/+b799YN7Tk2SS5Vh8A0L3gBo8hmB7Y0VXug=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "25ae710ba3cd448c5d5678788d37f3d149378bc0", "rev": "b06bab83bdf285ea0ae3c8e145a081eb95959047",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -102,11 +102,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1687762428, "lastModified": 1688254665,
"narHash": "sha256-DIf7mi45PKo+s8dOYF+UlXHzE0Wl/+k3tXUyAoAnoGE=", "narHash": "sha256-8FHEgBrr7gYNiS/NzCxIO3m4hvtLRW9YY1nYo1ivm3o=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "37dd7bb15791c86d55c5121740a1887ab55ee836", "rev": "267149c58a14d15f7f81b4d737308421de9d7152",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -176,11 +176,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687901550, "lastModified": 1688409282,
"narHash": "sha256-p0AWnbv6+6dxBgvTZuvMHu9FW/spaISiT9k+r4bWm2g=", "narHash": "sha256-nnVCN5QiZ5+DEc70PRQLEcxqlxtsmeBU1BnpsRPUJlA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9dd107a1d5395fae9b969597e02f3ef3a43ddd47", "rev": "c24deeca64538dcbc589ed8da9146e4ca9eb85b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -196,11 +196,11 @@
"wezterm-src": "wezterm-src" "wezterm-src": "wezterm-src"
}, },
"locked": { "locked": {
"lastModified": 1687849548, "lastModified": 1688281534,
"narHash": "sha256-6qUDgkvECWM3WBtfL6r/tciyi2BkWTVmuOsZj//8aLk=", "narHash": "sha256-AOBSeLKmDyr2022DhX8dOxf/9brGPVicoTHb0LK7A/U=",
"owner": "nekowinston", "owner": "nekowinston",
"repo": "nur", "repo": "nur",
"rev": "d2212e88ad029ce8bc66f05db3d0c788f62db35a", "rev": "812e322dadb722be8bbe063cd9c2d7b3d16d4f28",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -242,11 +242,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687829598, "lastModified": 1688348068,
"narHash": "sha256-OhIiD3yCDtGZ3ckGDIejMrga6KJRVocZXieLxKWWvHE=", "narHash": "sha256-zfqzsSrJP7C0zgZjIllLb6ZXi5vatDsizFHRL8XJ/Fk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "670fce475572908d96a8483a47054d8cb11df521", "rev": "0d3490d9ab18d777a0d20c62f40efabfd6263111",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -257,11 +257,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687793116, "lastModified": 1688221086,
"narHash": "sha256-6xRgZ2E9r/BNam87vMkHJ/0EPTTKzeNwhw3abKilEE4=", "narHash": "sha256-cdW6qUL71cNWhHCpMPOJjlw0wzSRP0pVlRn2vqX/VVg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e4e0807d2142d17f463b26a8b796b3fe20a3011", "rev": "cd99c2b3c9f160cd004318e0697f90bbd5960825",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -274,11 +274,11 @@
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"lastModified": 1685564631, "lastModified": 1688049487,
"narHash": "sha256-8ywr3AkblY4++3lIVxmrWZFzac7+f32ZEhH/A8pNscI=", "narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4f53efe34b3a8877ac923b9350c874e3dcd5dc0a", "rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -291,11 +291,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1687793116, "lastModified": 1688221086,
"narHash": "sha256-6xRgZ2E9r/BNam87vMkHJ/0EPTTKzeNwhw3abKilEE4=", "narHash": "sha256-cdW6qUL71cNWhHCpMPOJjlw0wzSRP0pVlRn2vqX/VVg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e4e0807d2142d17f463b26a8b796b3fe20a3011", "rev": "cd99c2b3c9f160cd004318e0697f90bbd5960825",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -307,11 +307,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1687902199, "lastModified": 1688410025,
"narHash": "sha256-V6YsB3401SlKZNqe0YNGeIwA179BD6ZlrbDxhRZB7ls=", "narHash": "sha256-MU8IwFndC9aOBPRn4ssjF0a9xueE8Vy/skjHegbJbsI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "c51a4044753dc96f157c92cf7559f5b8911cd806", "rev": "b944caccd70802b9589882544d61b11477b1bf4d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -337,11 +337,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687779420, "lastModified": 1688386108,
"narHash": "sha256-noueZE/Z5qx6NF/grg46qlpZ/1nuPpc92RvqgCmRaLI=", "narHash": "sha256-Vffto9QaVonzYAcPlAzd0soqWYpPpKk60dfNLSIXcFA=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "1fa438eee82f35bdd4bc30a9aacd7648d757b388", "rev": "42587d3414d1747999a5f71e92a83cf6547b62da",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -405,11 +405,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687398569, "lastModified": 1688268466,
"narHash": "sha256-e/umuIKFcFtZtWeX369Hbdt9r+GQ48moDmlTcyHWL28=", "narHash": "sha256-fArazqgYyEFiNcqa136zVYXihuqzRHNOOeVICayU2Yg=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "2ff6973350682f8d16371f8c071a304b8067f192", "rev": "5ed3c22c1fa0515e037e36956a67fe7e32c92957",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -428,11 +428,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1686111766, "lastModified": 1688402726,
"narHash": "sha256-aXkCN/pmWFZQZAGTwq/4jtUK+wp283cNAa/leq8yNbc=", "narHash": "sha256-EL0aGH9gMvxlNWEFkw1a/7ekW49/w3/SAN3F/O0Zd0E=",
"owner": "willpower3309", "owner": "willpower3309",
"repo": "swayfx", "repo": "swayfx",
"rev": "edd7aa72bc4ea8766d6a82325d7c9b36fe9a2025", "rev": "cda17aee16f004f034e7f75dd81113833a485216",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -459,11 +459,11 @@
"wezterm-src": { "wezterm-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1687494383, "lastModified": 1688050920,
"narHash": "sha256-fAi1oT5TMC8c2Ir0aaXTJv/HgVSkkf6V7XrdkiFve0M=", "narHash": "sha256-X7Y37sfUUZBGa+NwGtTe4JYIwu7D3btZ0yhLkO4VHVg=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "9a24f61c22eb2216acc4c483afdcee1c235b96fe", "rev": "f376468f461d668ef3748c82fa40eab5b955d677",
"revCount": 7260, "revCount": 7263,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/wez/wezterm" "url": "https://github.com/wez/wezterm"

View file

@ -60,6 +60,10 @@ in {
mpd-mpris.enable = isLinux; mpd-mpris.enable = isLinux;
}; };
systemd.user.tmpfiles.rules = lib.mkIf isLinux [
"L %t/discord-ipc-0 - - - - app/com.discordapp.Discord/discord-ipc-0"
];
launchd.agents.mpd = { launchd.agents.mpd = {
enable = true; enable = true;
config = let config = let

View file

@ -44,6 +44,7 @@
services.dbus.packages = [pkgs.gcr]; services.dbus.packages = [pkgs.gcr];
xdg.portal.enable = true; xdg.portal.enable = true;
xdg.portal.wlr.enable = true; xdg.portal.wlr.enable = true;
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
services = { services = {
# mounting # mounting

View file

@ -15,6 +15,7 @@
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
services = { services = {
flatpak.enable = true;
openssh.enable = true; openssh.enable = true;
pcscd.enable = true; pcscd.enable = true;
transmission.enable = true; transmission.enable = true;
@ -27,7 +28,6 @@
users.users."${config.dotfiles.username}".extraGroups = ["docker" "libvirtd" "transmission"]; users.users."${config.dotfiles.username}".extraGroups = ["docker" "libvirtd" "transmission"];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(discord.override {withOpenASAR = true;})
cabextract cabextract
gnome.gnome-boxes gnome.gnome-boxes
lutris-free lutris-free