add spectacle config, add spotify, fix cinny video playback with gstreamer
refactor some stuff to look nicer and have more structure too
This commit is contained in:
parent
56a64c1e0e
commit
dc99f3d24d
15 changed files with 283 additions and 145 deletions
29
modules/nixos/services/gns3/default.nix
Normal file
29
modules/nixos/services/gns3/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.services.gns3;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.gns3 = {
|
||||
enable = mkBoolOpt false "GNS3";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.gns3-server.enable = true;
|
||||
services.gns3-server.ubridge.enable = true;
|
||||
services.gns3-server.dynamips.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dynamips
|
||||
gns3-gui
|
||||
];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
|
@ -13,7 +13,7 @@ let
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJqbT8AdnS++ZoL7TYg2skQUvfWx29Iq+mEYv2Ok2QHb arbeit"
|
||||
];
|
||||
in
|
||||
{
|
||||
{
|
||||
options.${namespace}.services.ssh = {
|
||||
enable = mkBoolOpt false "OpenSSH";
|
||||
keys = mkOption {
|
||||
|
@ -27,9 +27,10 @@ in
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh = enabled;
|
||||
|
||||
users.users.philipp.openssh.authorizedKeys = {
|
||||
users.users.philipp.openssh.authorizedKeys = {
|
||||
inherit (cfg)
|
||||
keys;
|
||||
keys
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue