Skip to content

Commit

Permalink
chore: Fix badly named module, update flake.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawootten committed Aug 25, 2024
1 parent 3cd0029 commit 7824f22
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 35 deletions.
100 changes: 69 additions & 31 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hostModules/homelab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ in {
./observability
./acme.nix
./homepage.nix
./ntfs.nix
./samba.nix
inputs.nix-topology.nixosModules.default
];

Expand Down Expand Up @@ -61,7 +61,7 @@ in {
};
};

homelab.ntfs.enable = lib.mkDefault true;
homelab.samba.enable = lib.mkDefault true;
homelab.homepage.enable = lib.mkDefault true;
};
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Adopted from https://gist.github.com/vy-let/a030c1079f09ecae4135aebf1e121ea6
{ lib, config, pkgs, ... }:
let cfg = config.homelab.ntfs;
let cfg = config.homelab.samba;
in {
options.homelab.ntfs = { enable = lib.mkEnableOption "Enable NTFS config"; };
options.homelab.samba = {
enable = lib.mkEnableOption "Enable samba config";
};

config = lib.mkIf cfg.enable {
services.samba = {
Expand Down

0 comments on commit 7824f22

Please sign in to comment.