formating
This commit is contained in:
parent
5d0e955ddb
commit
ebbb867b0c
3 changed files with 63 additions and 46 deletions
|
|
@ -1,6 +1,11 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.primary;
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.primary;
|
||||
in {
|
||||
options.primary = {enable = mkEnableOption "is primary host";};
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -12,8 +17,7 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda";
|
||||
};
|
||||
};
|
||||
|
|
@ -22,9 +26,8 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda_tomorrow";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda.tomorrow";
|
||||
};
|
||||
};
|
||||
gosleep = {
|
||||
|
|
@ -32,8 +35,7 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/gosleep";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,23 @@
|
|||
{ pkgs, inputs, config, lib, ... }:
|
||||
with lib;
|
||||
let cfg = config.roles.kvm;
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.roles.kvm;
|
||||
in {
|
||||
options.roles.kvm = {enable = mkEnableOption "roles kvm";};
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
};
|
||||
waydroid = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [gnome-boxes quickgui quickemu];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.primary;
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.primary;
|
||||
in {
|
||||
options.primary = {enable = mkEnableOption "is primary host";};
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -12,8 +17,7 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda";
|
||||
};
|
||||
};
|
||||
|
|
@ -22,9 +26,8 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda_tomorrow";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/do_agenda.tomorrow";
|
||||
};
|
||||
};
|
||||
gosleep = {
|
||||
|
|
@ -32,8 +35,7 @@ in {
|
|||
unitConfig = {Type = "simple";};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/gosleep";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue