Compare commits

...

2 commits

Author SHA1 Message Date
c028fc200d Enable discord with vencord and openasar 2023-06-14 16:45:12 +02:00
0282590dd8 Create desktop role 2023-06-14 16:41:24 +02:00
3 changed files with 38 additions and 1 deletions

View file

@ -38,7 +38,17 @@ outputs = {nixpkgs, agenix, home-manager, nixpkgs-unstable, nix-impermanence, ..
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs-unstable { pkgs = import nixpkgs-unstable {
system = "x86_64-linux"; 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 = [ modules = [
# Needed for nix-index # Needed for nix-index
@ -46,6 +56,7 @@ outputs = {nixpkgs, agenix, home-manager, nixpkgs-unstable, nix-impermanence, ..
agenix.nixosModules.default agenix.nixosModules.default
home-manager.nixosModule home-manager.nixosModule
./roles/common ./roles/common
./roles/desktop
./roles/kde ./roles/kde
./machines/Archie ./machines/Archie
]; ];

7
roles/desktop/default.nix Executable file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./discord.nix
];
}

19
roles/desktop/discord.nix Normal file
View file

@ -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
];
}