[NixOS] Move electron stuff into its own module
This commit is contained in:
parent
627596a2fa
commit
f09cef4606
@ -15,6 +15,7 @@
|
|||||||
./gitea-runner.nix
|
./gitea-runner.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
|
./electron.nix
|
||||||
./imalison.nix
|
./imalison.nix
|
||||||
./internet-computer.nix
|
./internet-computer.nix
|
||||||
./kat.nix
|
./kat.nix
|
||||||
@ -42,6 +43,7 @@
|
|||||||
modules.gnome.enable = false;
|
modules.gnome.enable = false;
|
||||||
modules.xmonad.enable = true;
|
modules.xmonad.enable = true;
|
||||||
modules.extra.enable = true;
|
modules.extra.enable = true;
|
||||||
|
modules.electron.enable = true;
|
||||||
modules.code.enable = true;
|
modules.code.enable = true;
|
||||||
modules.games.enable = true;
|
modules.games.enable = true;
|
||||||
modules.syncthing.enable = true;
|
modules.syncthing.enable = true;
|
||||||
|
28
nixos/electron.nix
Normal file
28
nixos/electron.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs, config, makeEnable, forEachUser, ... }:
|
||||||
|
makeEnable config "modules.electron" false {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
element-desktop
|
||||||
|
bitwarden
|
||||||
|
discord
|
||||||
|
etcher
|
||||||
|
keybase-gui
|
||||||
|
zoom-us
|
||||||
|
];
|
||||||
|
home-manager.users = forEachUser (if pkgs.system == "x86_64-linux" then {
|
||||||
|
systemd.user.services.bitwarden = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Bitwarden";
|
||||||
|
After = [ "graphical-session-pre.target" "tray.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.bitwarden}/bin/bitwarden";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
} else {});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user