mwahahahaha, got everything building again, deskop is also in working state. so lets hope that my work laptop will also work tomorrow!!!
This commit is contained in:
parent
b0dc4d9fe4
commit
bf3ca86089
6 changed files with 83 additions and 70 deletions
|
@ -1,16 +1,16 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.modules.networking.ssh;
|
||||
in
|
||||
{
|
||||
options.modules.networking.ssh = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.modules.networking.ssh = {
|
||||
enable = mkEnableOption "enable ssh";
|
||||
};
|
||||
|
||||
config = mkIf config.modules.networking.ssh.enable {
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.modules.shell;
|
||||
in
|
||||
{
|
||||
options.modules.shell = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{};
|
||||
options.modules.shell = {};
|
||||
|
||||
config = mkIf cfg.enable {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue