Initial commit

This commit is contained in:
Aleksandr 2024-09-22 11:34:06 +03:00
commit ab22fcb51f
35 changed files with 1192 additions and 0 deletions

27
m/sys.nix Normal file
View file

@ -0,0 +1,27 @@
{ 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;
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
};
}