Initial commit

This commit is contained in:
Aleksandr 2024-09-22 11:34:06 +03:00
commit 5648fe3686
31 changed files with 827 additions and 0 deletions

22
m/sys.nix Normal file
View file

@ -0,0 +1,22 @@
{ lib, config, ... }:
let
types = lib.types;
sys = config.maid.sys;
in
{
options.maid.sys = {
enable = lib.mkEnableOption "whole maid system";
tz = lib.mkOption {
type = types.str;
default = "Europe/Moscow";
};
hostname = lib.mkOption {
type = types.str;
};
};
config = lib.mkIf sys.enable {
time.timeZone = sys.tz;
networking.hostName = sys.hostname;
};
}