rust pobeda
This commit is contained in:
parent
1bc03bdb14
commit
5cd0ded292
59 changed files with 1185 additions and 1389 deletions
59
m/sys.nix
59
m/sys.nix
|
|
@ -1,59 +0,0 @@
|
|||
{ pkgs, lib, config, inputs, ... }:
|
||||
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;
|
||||
};
|
||||
|
||||
bluetooth = {
|
||||
enable = lib.mkEnableOption "bluetooth";
|
||||
powerOnBoot = lib.mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "whether to power on bluetooth on system startup";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf sys.enable {
|
||||
time.timeZone = sys.tz;
|
||||
networking.hostName = sys.hostname;
|
||||
|
||||
services.gvfs.enable = true;
|
||||
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://hyprland.cachix.org"
|
||||
"https://wezterm.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
|
||||
];
|
||||
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ifuse
|
||||
libimobiledevice
|
||||
usbutils
|
||||
glib
|
||||
];
|
||||
services.usbmuxd.enable = true;
|
||||
|
||||
hardware.bluetooth = lib.mkIf sys.bluetooth.enable {
|
||||
enable = true;
|
||||
powerOnBoot = sys.bluetooth.powerOnBoot;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue