Update flake inputs
1. Use `stdenv.hostPlatform.system` instead of `system`. 2. Use `runCommand` instead of `runCommandNoCC`. 3. Add new nixpkgs instance for neochat. 4. Set niri config to null when other GUI module.
This commit is contained in:
parent
0db7c6ec72
commit
1319168f0b
10 changed files with 186 additions and 269 deletions
|
|
@ -14,7 +14,9 @@ in
|
|||
{
|
||||
options = {
|
||||
david.programs.niri = {
|
||||
enable = lib.mkEnableOption "niri";
|
||||
enable = (lib.mkEnableOption "niri") // {
|
||||
default = osConfig.youthlic.gui.enabled == "niri";
|
||||
};
|
||||
extraConfig = lib.mkOption {
|
||||
type = inputs.niri-flake.lib.kdl.types.kdl-document;
|
||||
};
|
||||
|
|
@ -39,9 +41,6 @@ in
|
|||
};
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
david.programs.niri.enable = osConfig.youthlic.gui.enabled == "niri";
|
||||
}
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages =
|
||||
(with pkgs; [
|
||||
|
|
@ -102,5 +101,11 @@ in
|
|||
package = niri;
|
||||
};
|
||||
})
|
||||
(lib.mkIf (!cfg.enable) {
|
||||
programs.niri = {
|
||||
settings = null;
|
||||
config = null;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue