diff --git a/flake.nix b/flake.nix index 2d2e66f..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 @@ -46,6 +56,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 + ]; +} 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 + ]; +}