add den pattern
This commit is contained in:
6
modules/networking/default.nix
Normal file
6
modules/networking/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ lib, ... }: {
|
||||
imports = lib.mapAttrsToList
|
||||
(file: _: ./. + "/${file}")
|
||||
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||
(builtins.readDir ./.));
|
||||
}
|
||||
12
modules/networking/filezilla.nix
Normal file
12
modules/networking/filezilla.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.networking or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.filezilla.enable or true)) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
filezilla
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/networking/qbittorrent.nix
Normal file
12
modules/networking/qbittorrent.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.networking or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.qbittorrent.enable or true)) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
qbittorrent
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/networking/remmina.nix
Normal file
12
modules/networking/remmina.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.networking or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.remmina.enable or true)) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
remmina
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/networking/socat.nix
Normal file
12
modules/networking/socat.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.networking or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.socat.enable or true)) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
socat
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/networking/wireguard.nix
Normal file
12
modules/networking/wireguard.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.networking or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.wireguard.enable or true)) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wireguard-tools
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user