Initial commit
This commit is contained in:
commit
5648fe3686
31 changed files with 827 additions and 0 deletions
22
m/sys.nix
Normal file
22
m/sys.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue