-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plasma-workspace: fix app_id by moving bin/.plasmashell-wrapped to #139213
Conversation
4334c55
to
b6b6dfa
Compare
to test: {
inputs = {
nixpkgs.url = "github:Artturin/nixpkgs/plasmashellid";
nixpkgs1.url = "github:Artturin/nixpkgs/plasmawayland";
};
outputs = inputs@{ self, nixpkgs, nixpkgs1 }: {
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ pkgs, ... }: {
disabledModules = [ "services/x11/desktop-managers/plasma5.nix" ];
imports = [
"${inputs.nixpkgs1}/nixos/modules/services/x11/desktop-managers/plasma5.nix"
## For virtualisation settings
"${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
];
environment.systemPackages = with pkgs; [
libnotify
];
services.xserver = {
enable = true;
displayManager.sddm = {
enable = true;
settings.Wayland.SessionDir =
"${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
};
desktopManager.plasma5 = {
enable = true;
runUsingSystemd = true;
};
};
# Documentation for these is in nixos/modules/virtualisation/qemu-vm.nix
virtualisation = {
memorySize = 1024 * 3;
diskSize = 1024 * 4;
cores = 4;
msize = 104857600;
};
boot.tmpOnTmpfs = true;
documentation.enable = false;
users.mutableUsers = false;
users.defaultUserShell = pkgs.zsh;
users.users.root = {
password = "root";
};
users.users.user = {
password = "user";
isNormalUser = true;
extraGroups = [ "wheel" ];
};
})
];
};
# So that we can just run 'nix run' instead of
# 'nix build ".#nixosConfigurations.vm.config.system.build.vm" && ./result/bin/run-nixos-vm'
defaultPackage.x86_64-linux = self.nixosConfigurations.vm.config.system.build.vm;
defaultApp.x86_64-linux = {
type = "app";
program = "${self.defaultPackage.x86_64-linux}/bin/run-nixos-vm";
};
};
} then in a terminal in the vm run |
Wouldn't this be better handled at the root location that is checking for binary name? In a similar fashion to this one: nixpkgs/pkgs/desktops/plasma-5/kwin/0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch Lines 43 to 49 in 89e9200
We're likely to play whack-a-mole otherwise. |
Result of 34 packages skipped due to time constraints:
16 packages built successfully:
Result of 33 packages skipped due to time constraints:
16 packages built successfully:
|
|
My 2 cents: It seems the fix has 2 requirements which kind of conflict with each other with current
A possible generic solution I can see would be the original package and its unwrapped binaries be put in a separate derivation, in this case, an internal This would then possibly add the problem where other packages that expect other files (other binaries, share, lib, etc) to be present in |
bin/plasmashell.wrapped Closes NixOS#118650
b6b6dfa
to
50b663f
Compare
I have discovered a better/simpler solution which is to just change the |
oh... like this no programs appear in the task bar |
bin/plasmashell.wrapped
Closes #118650
Motivation for this change
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)