Skip to content

Commit

Permalink
Control panel integration
Browse files Browse the repository at this point in the history
Control panel was added as input to flake.nix and as overlay
to common modules. The desktop item were added along with
appropriate icon.

Signed-off-by: dmitry-erin <[email protected]>
  • Loading branch information
dmitry-erin committed Oct 14, 2024
1 parent fd31a80 commit 171cbcf
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 1 deletion.
28 changes: 28 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@
pre-commit-hooks-nix.follows = "git-hooks-nix";
};
};

ctrl-panel = {
url = "github:tiiuae/ghaf-ctrl-panel";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
crane.follows = "givc/crane";
};
};
};

outputs =
Expand Down
6 changes: 6 additions & 0 deletions modules/common/services/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ in
path = "${pkgs.givc-cli}/bin/givc-cli ${cliArgs} reboot";
icon = "${pkgs.icon-pack}/system-reboot.svg";
}

{
name = "Control panel";
path = "${pkgs.ctrl-panel}/bin/ctrl-panel";
icon = "${pkgs.icon-pack}/utilities-tweak-tool.svg";
}
]
++ optionals config.ghaf.reference.programs.windows-launcher.enable [
{
Expand Down
9 changes: 8 additions & 1 deletion modules/hardware/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
./x86_64-generic
./laptop.nix
./common
{ nixpkgs.overlays = [ inputs.ghafpkgs.overlays.default ]; }
{
nixpkgs.overlays = [
inputs.ghafpkgs.overlays.default
(_final: prev: {
ctrl-panel = inputs.ctrl-panel.packages.${prev.stdenv.hostPlatform.system}.default;
})
];
}
];
hw-x86_64-generic.imports = [
./definition.nix
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ let
pkgs.pamixer
pkgs.eww
]
++ [ pkgs.ctrl-panel ]
++ (lib.optional (
config.ghaf.profiles.debug.enable && config.ghaf.virtualization.microvm.idsvm.mitmproxy.enable
) pkgs.mitmweb-ui)
Expand Down
1 change: 1 addition & 0 deletions packages/icon-pack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ let
"utilities-terminal.svg"
"yast-vpn.svg"
"system-file-manager.svg"
"utilities-tweak-tool.svg"
];
in
runCommand "icon-pack"
Expand Down

0 comments on commit 171cbcf

Please sign in to comment.