chore: Use nixfmt reformat all nix source code
This commit is contained in:
parent
1cdf00cefe
commit
11337b8f9e
184 changed files with 2349 additions and 1943 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -3,39 +3,43 @@
|
|||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
osConfig ? (throw "Trying to access osConfig, the home-manager module is not being used in the nixos module"),
|
||||
osConfig ? (
|
||||
throw "Trying to access osConfig, the home-manager module is not being used in the nixos module"
|
||||
),
|
||||
options,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
cfg = config.david.programs.niri;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
];
|
||||
options = {
|
||||
david.programs.niri = {
|
||||
enable =
|
||||
(lib.mkEnableOption "niri")
|
||||
// {
|
||||
default = osConfig.youthlic.gui.enabled == "niri";
|
||||
};
|
||||
enable = (lib.mkEnableOption "niri") // {
|
||||
default = osConfig.youthlic.gui.enabled == "niri";
|
||||
};
|
||||
config = lib.mkOption {
|
||||
type = inputs.niri-flake.lib.kdl.types.kdl-document;
|
||||
};
|
||||
configHelper = lib.mkOption {
|
||||
type = lib.types.anything;
|
||||
default = {
|
||||
validated-config-for = configuration:
|
||||
pkgs.runCommand "config.kdl" {
|
||||
inherit configuration;
|
||||
passAsFile = ["configuration"];
|
||||
buildInputs = [config.programs.niri.package];
|
||||
}
|
||||
#bash
|
||||
''
|
||||
niri validate -c $configurationPath
|
||||
cp $configurationPath $out
|
||||
'';
|
||||
validated-config-for =
|
||||
configuration:
|
||||
pkgs.runCommand "config.kdl"
|
||||
{
|
||||
inherit configuration;
|
||||
passAsFile = [ "configuration" ];
|
||||
buildInputs = [ config.programs.niri.package ];
|
||||
}
|
||||
#bash
|
||||
''
|
||||
niri validate -c $configurationPath
|
||||
cp $configurationPath $out
|
||||
'';
|
||||
};
|
||||
};
|
||||
wluma.extraSettings = lib.mkOption {
|
||||
|
|
@ -52,19 +56,21 @@ in {
|
|||
swayimg
|
||||
seahorse
|
||||
];
|
||||
xdg.configFile = let
|
||||
qtctConf = ''
|
||||
[Appearance]
|
||||
standard_dialogs=xdgdesktopportal
|
||||
'';
|
||||
in {
|
||||
"qt5ct/qt5ct.conf" = {
|
||||
text = qtctConf;
|
||||
xdg.configFile =
|
||||
let
|
||||
qtctConf = ''
|
||||
[Appearance]
|
||||
standard_dialogs=xdgdesktopportal
|
||||
'';
|
||||
in
|
||||
{
|
||||
"qt5ct/qt5ct.conf" = {
|
||||
text = qtctConf;
|
||||
};
|
||||
"qt6ct/qt6ct.conf" = {
|
||||
text = qtctConf;
|
||||
};
|
||||
};
|
||||
"qt6ct/qt6ct.conf" = {
|
||||
text = qtctConf;
|
||||
};
|
||||
};
|
||||
david.programs = {
|
||||
# fuzzel.enable = true;
|
||||
# waybar = {
|
||||
|
|
@ -83,11 +89,11 @@ in {
|
|||
};
|
||||
programs = {
|
||||
niri = {
|
||||
config =
|
||||
cfg.config
|
||||
++ [
|
||||
(inputs.niri-flake.lib.kdl.leaf "include" [(toString config.david.programs.noctalia.niriExtraConfig)])
|
||||
];
|
||||
config = cfg.config ++ [
|
||||
(inputs.niri-flake.lib.kdl.leaf "include" [
|
||||
(toString config.david.programs.noctalia.niriExtraConfig)
|
||||
])
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue