Skip to content

Commit

Permalink
fix(nixos): Disable Obsidian app until electron version updates to no…
Browse files Browse the repository at this point in the history
…n EOL
  • Loading branch information
mrjones2014 committed Jan 4, 2024
1 parent cde3e29 commit 159a347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 35 deletions.
17 changes: 3 additions & 14 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ in {
stateVersion = "22.11";
packages = with pkgs;
[
obsidian
# TODO re-enable when they update to a non EOL version of electron...
# obsidian
mdbook
spotify
(discord.override {
Expand All @@ -53,19 +54,6 @@ in {
"mkdir -p ${config.home.homeDirectory}/.steam && test ! -d ${config.home.homeDirectory}/_steam && ln -s ${config.home.homeDirectory}/.steam ${config.home.homeDirectory}/_steam || :";
}; # Please read the comment before changing.

nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
"spotify"
"discord"
"1password"
"1password-cli"
# This is required for pkgs.nodePackages_latest.vscode-langservers-extracted on NixOS
# however VS Code should NOT be installed on this system!
# Use VS Codium instead: https://github.com/VSCodium/vscodium
"vscode"
];

xdg.enable = true;
# link config files, if a dedicated module exists (below)
# it will handle its own config
Expand Down Expand Up @@ -95,6 +83,7 @@ in {
./modules/wezterm.nix
./modules/librewolf.nix
./modules/gnome/default.nix
../nixos-modules/allowed-unfree.nix
];

programs = {
Expand Down
22 changes: 1 addition & 21 deletions nixos-modules/common.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, pkgs, ... }: {
imports = [ ./desktop_environment.nix ./_1password.nix ];
imports = [ ./desktop_environment.nix ./_1password.nix ./allowed-unfree.nix ];

# See https://github.com/nix-community/nix-direnv
nix.extraOptions = ''
Expand Down Expand Up @@ -71,26 +71,6 @@
extraGroups = [ "networkmanager" "wheel" ];
};

nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
"discord"
"spotify"
"nvidia-persistenced"
"nvidia-x11"
"nvidia-settings"
"1password"
"1password-cli"
"steam"
"steam-run"
"steam-original"
"parsec-bin"
# This is required for pkgs.nodePackages_latest.vscode-langservers-extracted on NixOS
# however VS Code should NOT be installed on this system!
# Use VS Codium instead: https://github.com/VSCodium/vscodium
"vscode"
];

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
Expand Down

0 comments on commit 159a347

Please sign in to comment.