mirror of
https://github.com/zoriya/flake.git
synced 2026-05-30 01:38:11 +00:00
Add gnome control center
This commit is contained in:
Generated
+15
-15
@@ -159,11 +159,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1699368917,
|
||||
"narHash": "sha256-nUtGIWf86BOkUbtksWtfglvCZ/otP0FTZlQH8Rzc7PA=",
|
||||
"lastModified": 1699783872,
|
||||
"narHash": "sha256-4zTwLT2LL45Nmo6iwKB3ls3hWodVP9DiSWxki/oewWE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "6a8444467c83c961e2f5ff64fb4f422e303c98d3",
|
||||
"rev": "280721186ab75a76537713ec310306f0eba3e407",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -197,11 +197,11 @@
|
||||
},
|
||||
"locked": {
|
||||
"dir": "contrib",
|
||||
"lastModified": 1699553831,
|
||||
"narHash": "sha256-EFBYtKE0U14Y5hXc6iXGhUxTzOrYYbOTtwbYWyj53Wc=",
|
||||
"lastModified": 1699831665,
|
||||
"narHash": "sha256-hfFVGgLYIIht1MAJb/P8PCOnnJLy2GkOWh22z0wAF5U=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "ae8ca79920a8d0e928ac1502a10d1d063a06cae5",
|
||||
"rev": "d2983dcdb1ca003b5fd42d7d99fd98310aa1cd56",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -220,11 +220,11 @@
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1699574693,
|
||||
"narHash": "sha256-WjCaT/PtmhAQncXNhaOF5oYi/8A8S5qmYL3cZ7rUfE4=",
|
||||
"lastModified": 1699834167,
|
||||
"narHash": "sha256-T9SxEnpx2u6abMC4mBLk3sCHsJOUbjJtKeYprF+BHis=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "0542d71d5decc351f752b864669f8bdc71898942",
|
||||
"rev": "c7a539280a90f5f3dccf9ecd740bcabb3c06e861",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -235,11 +235,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1699343069,
|
||||
"narHash": "sha256-s7BBhyLA6MI6FuJgs4F/SgpntHBzz40/qV0xLPW6A1Q=",
|
||||
"lastModified": 1699725108,
|
||||
"narHash": "sha256-NTiPW4jRC+9puakU4Vi8WpFEirhp92kTOSThuZke+FA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ec750fd01963ab6b20ee1f0cb488754e8036d89d",
|
||||
"rev": "911ad1e67f458b6bcf0278fa85e33bb9924fed7e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -251,11 +251,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1699099776,
|
||||
"narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=",
|
||||
"lastModified": 1699781429,
|
||||
"narHash": "sha256-UYefjidASiLORAjIvVsUHG6WBtRhM67kTjEY4XfZOFs=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb",
|
||||
"rev": "e44462d6021bfe23dfb24b775cc7c390844f773d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
# When editing this, don't forget to edit home.sessionVariables.
|
||||
browser = "firefox.desktop";
|
||||
editor = "nvim.desktop";
|
||||
pdf = "org.pwmt.zathura.desktop";
|
||||
@@ -32,7 +33,7 @@ in {
|
||||
|
||||
home.sessionVariables = rec {
|
||||
TERMINAL = "kitty";
|
||||
BROWSER = "google-chrome-stable";
|
||||
BROWSER = "firefox";
|
||||
DEFAULT_BROWSER = BROWSER;
|
||||
# For rider
|
||||
FLATPAK_ENABLE_SDK_EXT = "*";
|
||||
|
||||
@@ -106,7 +106,7 @@ export const Selection = (props) =>
|
||||
Separator(),
|
||||
Button({
|
||||
onClicked: () => {
|
||||
execAsync("nm-connection-editor").catch(print);
|
||||
execAsync("gnome-control-center").catch(print);
|
||||
App.closeWindow("quicksettings");
|
||||
},
|
||||
child: Label({
|
||||
|
||||
@@ -63,6 +63,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
# needed for GNOME services outside of GNOME Desktop
|
||||
services = {
|
||||
dbus.packages = [pkgs.gcr];
|
||||
udev.packages = with pkgs; [gnome.gnome-settings-daemon];
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
services.dbus.enable = true;
|
||||
xdg.portal = {
|
||||
|
||||
@@ -41,6 +41,7 @@ in {
|
||||
covercolors
|
||||
ydotool
|
||||
fusuma
|
||||
gnome-control-center
|
||||
gnome.gnome-weather
|
||||
shikane
|
||||
];
|
||||
|
||||
+10
-3
@@ -2,19 +2,22 @@
|
||||
dwl-source,
|
||||
flood,
|
||||
}: self: super: let
|
||||
enableWayland = drv: bins:
|
||||
wrapProgram = drv: bins: wrapProgramFlags:
|
||||
super.symlinkJoin {
|
||||
name = drv.name;
|
||||
paths = [drv];
|
||||
buildInputs = [super.makeWrapper];
|
||||
postBuild = super.lib.concatStrings (map (bin: ''
|
||||
wrapProgram $out/bin/${bin} \
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--ozone-platform=wayland"
|
||||
${wrapProgramFlags}
|
||||
'')
|
||||
bins);
|
||||
};
|
||||
enableWayland = drv: bins: wrapProgram drv bins ''
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--ozone-platform=wayland"'';
|
||||
in {
|
||||
# Patch dwl.
|
||||
dwl =
|
||||
(super.dwl.override
|
||||
{conf = ../modules/dwl/config.h;})
|
||||
@@ -46,6 +49,7 @@ in {
|
||||
];
|
||||
});
|
||||
|
||||
# Use my fork of flood to enable smart scripts.
|
||||
flood = self.pkgs.buildNpmPackage {
|
||||
pname = "flood";
|
||||
version = "4.7.0";
|
||||
@@ -67,6 +71,9 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# Gnome-control-center can only be launched if XDG_CURRENT_DESKTOP is GNOME.
|
||||
gnome-control-center = wrapProgram super.gnome.gnome-control-center ["gnome-control-center"] "--set XDG_CURRENT_DESKTOP GNOME";
|
||||
|
||||
slack = enableWayland super.slack ["slack"];
|
||||
discord = enableWayland super.discord ["discord" "Discord"];
|
||||
vscode = enableWayland super.vscode ["code"];
|
||||
|
||||
Reference in New Issue
Block a user