Skip to content
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

Fix mishaps that happened because checks weren't mandatory #378

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 27 additions & 25 deletions home-config/config/desktop/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,37 +97,39 @@ in
configDir = ../../dotfiles/eww;
};

systemd.user.services.eww = {
Unit = {
Description = "System tray";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
systemd.user.services = {
eww = {
Unit = {
Description = "System tray";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};

Service = {
ExecStart = "${config.programs.eww.package}/bin/eww daemon --no-daemonize";
ExecStartPost = "${config.programs.eww.package}/bin/eww open tray";
};
Install.WantedBy = [ "graphical-session.target" ];
};

Service = {
ExecStart = "${config.programs.eww.package}/bin/eww daemon --no-daemonize";
ExecStartPost = "${config.programs.eww.package}/bin/eww open tray";
swaylock = {
Unit.Description = "Lock screen";
Service.ExecStart = "${config.programs.swaylock.package}/bin/swaylock";
};
Install.WantedBy = [ "graphical-session.target" ];
};

systemd.user.services.swaylock = {
Unit.Description = "Lock screen";
Service.ExecStart = "${config.programs.swaylock.package}/bin/swaylock";
};
wpaperd = {
Unit = {
Description = "Wallpaper daemon";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};

systemd.user.services.wpaperd = {
Unit = {
Description = "Wallpaper daemon";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.wpaperd}/bin/wpaperd";
Environment = "XDG_CONFIG_HOME=${wpaperd-config-dir}";
};

Service = {
ExecStart = "${pkgs.wpaperd}/bin/wpaperd";
Environment = "XDG_CONFIG_HOME=${wpaperd-config-dir}";
Install.WantedBy = [ "graphical-session.target" ];
};

Install.WantedBy = [ "graphical-session.target" ];
};
}
4 changes: 1 addition & 3 deletions home-modules/firefox-webapp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let
mapAttrs' (
name: cfg:
nameValuePair "home-manager-webapp-${name}" {
inherit (cfg) id;
inherit (cfg) extensions id;

userChrome = ''
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
Expand Down Expand Up @@ -66,8 +66,6 @@ let
system = 2;
};
};

extensions = cfg.extensions;
}
) cfg;
in
Expand Down
4 changes: 2 additions & 2 deletions nixos-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@
};

time.timeZone = lib.mkDefault "Asia/Hong_Kong";
services.automatic-timezoned.enable = true;
services.geoclue2.geoProviderUrl = "https://api.beacondb.net/v1/geolocate";

users = {
defaultUserShell = pkgs.zsh;
Expand Down Expand Up @@ -222,6 +220,8 @@
flatpak.enable = true;
fstrim.enable = true;
fwupd.enable = true;
automatic-timezoned.enable = true;
geoclue2.geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
};

hardware = {
Expand Down
2 changes: 1 addition & 1 deletion nixos-modules/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ in
# https://download.nvidia.com/XFree86/Linux-x86_64/565.57.01/README/kernel_open.html
open = true;

dynamicBoost.enable = cfg.withIntegratedGPU;
dynamicBoost.enable = cfg.enable && cfg.withIntegratedGPU;
};

boot = {
Expand Down
3 changes: 1 addition & 2 deletions nixos-modules/nvidia/prime.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
pkgs,
config,
lib,
...
Expand All @@ -11,7 +10,7 @@ in
options.easyNvidia.offload = with lib.types; {
enable = lib.mkOption {
type = bool;
enable = config.easyNvidia.prime.withIntegratedGPU;
enable = config.easyNvidia.enable && config.easyNvidia.prime.withIntegratedGPU;
description = ''
Whether to configure prime offload.

Expand Down
2 changes: 1 addition & 1 deletion nixos-modules/nvidia/vaapi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ in
options.easyNvidia.vaapi = with lib.types; {
enable = lib.mkOption {
type = bool;
default = !config.easyNvidia.withIntegratedGPU;
default = config.easyNvidia.enable && !config.easyNvidia.withIntegratedGPU;
description = ''
Whether to enable the NVIDIA vaapi driver.

Expand Down
Loading