From 0282590dd841cfabc5108ce4b4bfee1e523b2c57 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 14 Jun 2023 16:41:24 +0200 Subject: [PATCH 1/2] Create desktop role --- flake.nix | 1 + roles/desktop/default.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 roles/desktop/default.nix diff --git a/flake.nix b/flake.nix index 2d2e66f..f36466b 100755 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ outputs = {nixpkgs, agenix, home-manager, nixpkgs-unstable, nix-impermanence, .. agenix.nixosModules.default home-manager.nixosModule ./roles/common + ./roles/desktop ./roles/kde ./machines/Archie ]; diff --git a/roles/desktop/default.nix b/roles/desktop/default.nix new file mode 100755 index 0000000..52f5478 --- /dev/null +++ b/roles/desktop/default.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + imports = [ + ./discord.nix + ]; +} From c028fc200dcfb2e595715436b919fcf802391646 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 14 Jun 2023 16:45:12 +0200 Subject: [PATCH 2/2] Enable discord with vencord and openasar --- flake.nix | 12 +++++++++++- roles/desktop/discord.nix | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 roles/desktop/discord.nix diff --git a/flake.nix b/flake.nix index f36466b..c11f335 100755 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,17 @@ outputs = {nixpkgs, agenix, home-manager, nixpkgs-unstable, nix-impermanence, .. system = "x86_64-linux"; pkgs = import nixpkgs-unstable { system = "x86_64-linux"; - config = { allowUnfree = true; }; # TODO: Find why this doesn't work + config = { allowUnfree = true; }; # TODO: Find why this doesn't work + overlays = + let + discordOverlay = self: super: { + discord = super.discord.override { + withOpenASAR = true; + withVencord = true; + }; + }; + in + [ discordOverlay ]; }; modules = [ # Needed for nix-index diff --git a/roles/desktop/discord.nix b/roles/desktop/discord.nix new file mode 100644 index 0000000..bdabdc4 --- /dev/null +++ b/roles/desktop/discord.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: + +{ + # TODO: Find out why this does not do anything. If I put this + # on flake.nix it does work, so it's not completely wrong. + /* nixpkgs.overlays = + let + discordOverlay = self: super: { + discord = super.discord.override { + withOpenASAR = true; + withVencord = true; + }; + }; + in + [ discordOverlay ]; */ + users.users.toast.packages = with pkgs; [ + discord + ]; +}