mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 02:13:01 -04:00
Style: formatting
This commit is contained in:
parent
c6d2a9bf10
commit
70e622f996
5 changed files with 314 additions and 322 deletions
|
@ -1,42 +1,40 @@
|
|||
{ lib }:
|
||||
let
|
||||
{lib}: let
|
||||
inherit (lib.types) str;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.attrsets) recursiveUpdate;
|
||||
|
||||
mkGraphicalService = recursiveUpdate {
|
||||
Unit.PartOf = [ "graphical-session.target" ];
|
||||
Unit.After = [ "graphical-session.target" ];
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
Unit.PartOf = ["graphical-session.target"];
|
||||
Unit.After = ["graphical-session.target"];
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
|
||||
mkHyprlandService = recursiveUpdate {
|
||||
Unit.PartOf = [ "graphical-session.target" ];
|
||||
Unit.After = [ "graphical-session.target" ];
|
||||
Install.WantedBy = [ "hyprland-session.target" ];
|
||||
Unit.PartOf = ["graphical-session.target"];
|
||||
Unit.After = ["graphical-session.target"];
|
||||
Install.WantedBy = ["hyprland-session.target"];
|
||||
};
|
||||
|
||||
/**
|
||||
A quick way to use my services abstraction
|
||||
/*
|
||||
*
|
||||
A quick way to use my services abstraction
|
||||
|
||||
# Arguments
|
||||
# Arguments
|
||||
|
||||
- [name]: The name of the service
|
||||
- [name]: The name of the service
|
||||
|
||||
# Type
|
||||
# Type
|
||||
|
||||
```
|
||||
mkServiceOption :: String -> (Int -> String -> String -> AttrSet) -> AttrSet
|
||||
```
|
||||
```
|
||||
mkServiceOption :: String -> (Int -> String -> String -> AttrSet) -> AttrSet
|
||||
```
|
||||
*/
|
||||
mkServiceOption =
|
||||
name:
|
||||
{
|
||||
port ? 0,
|
||||
host ? "127.0.0.1",
|
||||
domain ? "",
|
||||
extraConfig ? { },
|
||||
}:
|
||||
mkServiceOption = name: {
|
||||
port ? 0,
|
||||
host ? "127.0.0.1",
|
||||
domain ? "",
|
||||
extraConfig ? {},
|
||||
}:
|
||||
{
|
||||
enable = mkEnableOption "Enable the ${name} service";
|
||||
|
||||
|
@ -59,7 +57,6 @@ let
|
|||
};
|
||||
}
|
||||
// extraConfig;
|
||||
in
|
||||
{
|
||||
in {
|
||||
inherit mkGraphicalService mkHyprlandService mkServiceOption;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue