From 85a9b95973d0f5e522b87561de887a8dca0f113f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Feb 2024 19:34:03 +0300 Subject: [PATCH] telegram desktop --- flake.lock | 117 +++++++++++++++++++++++++++++++-- flake.nix | 4 +- home/home.nix | 1 - hosts/huanan/configuration.nix | 1 - 4 files changed, 112 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 85af41c..d247f4d 100644 --- a/flake.lock +++ b/flake.lock @@ -133,6 +133,24 @@ "type": "github" } }, + "flake-utils_3": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -154,6 +172,26 @@ "type": "github" } }, + "home-manager-unstable": { + "inputs": { + "nixpkgs": [ + "nixpkgs-unstable" + ] + }, + "locked": { + "lastModified": 1708806879, + "narHash": "sha256-MSbxtF3RThI8ANs/G4o1zIqF5/XlShHvwjl9Ws0QAbI=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "4ee704cb13a5a7645436f400b9acc89a67b9c08a", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "lib-aggregate": { "inputs": { "flake-utils": "flake-utils", @@ -236,14 +274,46 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1708831307, + "narHash": "sha256-0iL/DuGjiUeck1zEaL+aIe2WvA3/cVhp/SlmTcOZXH4=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5bf1cadb72ab4e77cb0b700dab76bcdaf88f706b", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1708847675, + "narHash": "sha256-RUZ7KEs/a4EzRELYDGnRB6i7M1Izii3JD/LyzH0c6Tg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2a34566b67bef34c551f204063faeecc444ae9da", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, "root": { "inputs": { "anyrun": "anyrun", "firefox": "firefox", "home-manager": "home-manager", + "home-manager-unstable": "home-manager-unstable", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", - "telegram-desktop-patched": "telegram-desktop-patched" + "telegram-desktop-patched": "telegram-desktop-patched", + "telegram-desktop-patched-unstable": "telegram-desktop-patched-unstable" } }, "systems": { @@ -276,19 +346,52 @@ "type": "github" } }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "telegram-desktop-patched": { "inputs": { "flake-utils": "flake-utils_2", - "nixpkgs": [ - "nixpkgs" - ] + "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1708601917, - "narHash": "sha256-/0lrYeCKr+0tn0/+pQAuoobmsU/mWg//MaY4AJ585Qk=", + "lastModified": 1708738847, + "narHash": "sha256-FqoFulqt0FqqHWxbMHeMAUzSm57VxZae+VVzZdUu+ZA=", "owner": "shwewo", "repo": "telegram-desktop-patched", - "rev": "95297c39ed904987aad5592fba8fe45eeb0ef85a", + "rev": "c47ff4b4b9ebdf94317d193c9ee2e40767f98475", + "type": "github" + }, + "original": { + "owner": "shwewo", + "ref": "release-23.11", + "repo": "telegram-desktop-patched", + "type": "github" + } + }, + "telegram-desktop-patched-unstable": { + "inputs": { + "flake-utils": "flake-utils_3", + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1708739594, + "narHash": "sha256-5y4OSWLovz+NfMclKO6twAPO4yqNpeMqBG4bXePKclY=", + "owner": "shwewo", + "repo": "telegram-desktop-patched", + "rev": "3f28d14fc6fbc4114d1ad42d57ba00a03bc511be", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index cba123b..fcfc3c5 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,8 @@ firefox.inputs.nixpkgs.follows = "nixpkgs"; anyrun.url = "github:Kirottu/anyrun"; anyrun.inputs.nixpkgs.follows = "nixpkgs-unstable"; - telegram-desktop-patched.url = "github:shwewo/telegram-desktop-patched"; - telegram-desktop-patched.inputs.nixpkgs.follows = "nixpkgs-unstable"; + telegram-desktop-patched.url = "github:shwewo/telegram-desktop-patched/release-23.11"; + telegram-desktop-patched-unstable.url = "github:shwewo/telegram-desktop-patched"; }; outputs = inputs @ { nixpkgs, nixpkgs-unstable, home-manager, home-manager-unstable, firefox, anyrun, ... }: { diff --git a/home/home.nix b/home/home.nix index 846d26f..6885233 100644 --- a/home/home.nix +++ b/home/home.nix @@ -71,7 +71,6 @@ vesktop ]) ++ ([ inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin - inputs.telegram-desktop-patched.packages.${pkgs.system}.default ]); dconf = { diff --git a/hosts/huanan/configuration.nix b/hosts/huanan/configuration.nix index 3b9742e..7951d47 100644 --- a/hosts/huanan/configuration.nix +++ b/hosts/huanan/configuration.nix @@ -76,7 +76,6 @@ services.printing.enable = true; sound.enable = true; hardware.pulseaudio.enable = false; - security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true;