mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 16:56:53 -05:00
Trying To Add discord
This commit is contained in:
parent
8a3bb1cdde
commit
517dd12828
4 changed files with 38 additions and 1 deletions
|
|
@ -63,8 +63,9 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
|
discord.enable = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
6
modules/common/applications/default.nix
Normal file
6
modules/common/applications/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./discord.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
25
modules/common/applications/discord.nix
Normal file
25
modules/common/applications/discord.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
discord = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable Discord";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.gui.enable && config.discord.enable) {
|
||||||
|
home-manager.users.${config.user} = {
|
||||||
|
home.packages = with pkgs [
|
||||||
|
discord
|
||||||
|
];
|
||||||
|
xdg.configFile."discord/settings.json".text = ''
|
||||||
|
{
|
||||||
|
"OPEN_ON_STARTUP": true,
|
||||||
|
"MINIMIZE_TO_TRAY": false,
|
||||||
|
"SKIP_HOST_UPDATE": true
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./applications
|
||||||
./utilities
|
./utilities
|
||||||
];
|
];
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -12,6 +13,10 @@
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Puny Hooman readable name of the user";
|
description = "Puny Hooman readable name of the user";
|
||||||
};
|
};
|
||||||
|
gui = lib.mkEnableOption {
|
||||||
|
description = "Enable graphics.";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue