Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoth committed Aug 2, 2023
1 parent 0a06cae commit 3770719
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#agenix.nixosModules
stylix.nixosModules.stylix
sops-nix.nixosModules.sops
{ nixpkgs.overlays = [ nur.overlay ]; }
{nixpkgs.overlays = [nur.overlay];}
];
specialArgs = {
inherit inputs;
Expand Down
6 changes: 3 additions & 3 deletions machines/pcLexell/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ in {

"browser.sessionstore.restore_hidden_tabs" = true;
"browser.sessionstore.restore_on_demand" = false;
"browser.sessionstore.restore_pinned_tabs_on_demand" = false;
"browser.sessionstore.restore_pinned_tabs_on_demand" = false;
"browser.sessionstore.restore_tabs_lazily" = true;
"browser.sessionstore.resume_from_crash" = true;
"browser.sessionstore.resume_from_crash" = true;
#"browser.sessionstore.resume_session_once" = false;
"browser.sessionstore.resuming_after_os_restart" = true;

Expand All @@ -59,7 +59,7 @@ in {
"browser.bookmarks.addedImportButton" = true;
# Disable top bookmarks
"browser.toolbars.bookmarks.visibility" = "never";

# Disable auto update
"app.update.checkInstallTime" = false;
"app.update.auto" = false;
Expand Down
50 changes: 26 additions & 24 deletions machines/pcLexell/gui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,32 @@ in {
enable = true;
defaultApplications = with config.defaultApplications;
builtins.mapAttrs
(name: value:
if value ? desktop then [ "${value.desktop}.desktop" ] else value)
{
#"inode/directory" = fm;
"text/html" = browser;
#"image/*" = { desktop = "org.gnome.eog"; };
#"application/zip" = archive;
#"application/rar" = archive;
#"application/7z" = archive;
#"application/*tar" = archive;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/mailto" = mail;
#"x-scheme-handler/matrix" = matrix;
#"application/pdf" = { desktop = "org.kde.okular"; };
#"application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
# text_processor;
#"application/msword" = text_processor;
#"application/vnd.oasis.opendocument.text" = text_processor;
#"text/csv" = spreadsheet;
#"application/vnd.oasis.opendocument.spreadsheet" = spreadsheet;
"text/plain" = editor;
};
(name: value:
if value ? desktop
then ["${value.desktop}.desktop"]
else value)
{
#"inode/directory" = fm;
"text/html" = browser;
#"image/*" = { desktop = "org.gnome.eog"; };
#"application/zip" = archive;
#"application/rar" = archive;
#"application/7z" = archive;
#"application/*tar" = archive;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/mailto" = mail;
#"x-scheme-handler/matrix" = matrix;
#"application/pdf" = { desktop = "org.kde.okular"; };
#"application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
# text_processor;
#"application/msword" = text_processor;
#"application/vnd.oasis.opendocument.text" = text_processor;
#"text/csv" = spreadsheet;
#"application/vnd.oasis.opendocument.spreadsheet" = spreadsheet;
"text/plain" = editor;
};
};
defaultApplications = {
#matrix = {
Expand Down

0 comments on commit 3770719

Please sign in to comment.