Adding vicinae and various refactors
This commit is contained in:
parent
e2946c9fb7
commit
32720ae712
10 changed files with 225 additions and 91 deletions
|
|
@ -23,7 +23,8 @@ in
|
|||
swaynag.enable = true;
|
||||
config = {
|
||||
startup = [
|
||||
{ command = "poweralertd"; }
|
||||
{ command = "${pkgs.poweralertd}/bin/poweralertd"; }
|
||||
# { command = "${pkgs.vicinae}/bin/vicinae server"; }
|
||||
{
|
||||
command = ''
|
||||
swayidle -w \
|
||||
|
|
@ -35,7 +36,7 @@ in
|
|||
];
|
||||
|
||||
modifier = "Mod4";
|
||||
menu = "${pkgs.wofi}/bin/wofi --show drun";
|
||||
menu = "${pkgs.vicinae}/bin/vicinae toggle";
|
||||
# Switch to ghostty ?
|
||||
terminal = "${pkgs.ghostty}/bin/ghostty";
|
||||
|
||||
|
|
@ -610,6 +611,52 @@ in
|
|||
};
|
||||
|
||||
programs = {
|
||||
vicinae = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
# environment = {
|
||||
# USE_LAYER_SHELL = 1;
|
||||
# };
|
||||
};
|
||||
# useLayerShell = false;
|
||||
settings = {
|
||||
close_on_focus_loss = false;
|
||||
consider_preedit = true;
|
||||
pop_to_root_on_close = true;
|
||||
launcher_window.layer_shell.enabled = false;
|
||||
theme = {
|
||||
light = {
|
||||
name = "rose-pine-moon";
|
||||
};
|
||||
dark = {
|
||||
name = "rose-pine-moon";
|
||||
};
|
||||
};
|
||||
};
|
||||
extensions =
|
||||
let
|
||||
extsrc = pkgs.fetchFromGitHub {
|
||||
owner = "vicinaehq";
|
||||
repo = "extensions";
|
||||
sha256 = "sha256-KwNv+THKbNUey10q26NZPDMSzYTObRHaSDr81QP9CPY=";
|
||||
rev = "cf30b80f619282d45b1748eb76e784a4f875bb01";
|
||||
};
|
||||
in
|
||||
lib.map
|
||||
(ext:
|
||||
config.lib.vicinae.mkExtension {
|
||||
name = ext;
|
||||
src = extsrc + "/extensions/" + ext;
|
||||
}
|
||||
)
|
||||
[
|
||||
"bluetooth"
|
||||
"nix"
|
||||
"power-profile"
|
||||
];
|
||||
};
|
||||
wofi = {
|
||||
enable = true;
|
||||
settings = {};
|
||||
|
|
|
|||
|
|
@ -35,53 +35,66 @@
|
|||
"x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop;";
|
||||
"x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop;";
|
||||
};
|
||||
defaultApplications = {
|
||||
"text/plain" = "org.gnome.TextEditor.desktop";
|
||||
"text/markdown" = "org.gnome.TextEditor.desktop";
|
||||
"text/json" = "org.gnome.TextEditor.desktop";
|
||||
"text/html" = "firefox.desktop";
|
||||
"text/xml" = "org.gnome.TextEditor.desktop";
|
||||
"image/avif" = "org.gnome.Loupe.desktop";
|
||||
"image/png" = "org.gnome.Loupe.desktop";
|
||||
"image/jpeg" = "org.gnome.Loupe.desktop";
|
||||
"image/svg+xml" = "org.gnome.Loupe.desktop";
|
||||
"image/gif" = "org.gnome.Loupe.desktop";
|
||||
"image/webp" = "org.gnome.Loupe.desktop";
|
||||
"audio/mpeg" = "mpv.desktop";
|
||||
"audio/aac" = "mpv.desktop";
|
||||
"audio/webm" = "mpv.desktop";
|
||||
"audio/ogg" = "mpv.desktop";
|
||||
"video/x-matroska" = "mpv.desktop";
|
||||
"video/mp4" = "mpv.desktop";
|
||||
"video/webm" = "mpv.desktop";
|
||||
"video/ogg" = "mpv.desktop";
|
||||
|
||||
defaultApplications =
|
||||
let
|
||||
web = "firefox.desktop";
|
||||
mail = "thunderbird.desktop";
|
||||
editor = "org.gnome.TextEditor.desktop";
|
||||
image = "org.gnome.Loupe.desktop";
|
||||
video = "mpv.desktop";
|
||||
audio = "mpv.desktop";
|
||||
office-writer = "writer.desktop";
|
||||
office-document = "impress.desktop";
|
||||
office-spreadsheet = "calc.desktop";
|
||||
in
|
||||
{
|
||||
"text/plain" = editor;
|
||||
"text/markdown" = editor;
|
||||
"text/json" = editor;
|
||||
"text/html" = web;
|
||||
"text/xml" = editor;
|
||||
"image/avif" = image;
|
||||
"image/png" = image;
|
||||
"image/jpeg" = image;
|
||||
"image/svg+xml" = image;
|
||||
"image/gif" = image;
|
||||
"image/webp" = image;
|
||||
"audio/mpeg" = audio;
|
||||
"audio/aac" = audio;
|
||||
"audio/webm" = audio;
|
||||
"audio/ogg" = audio;
|
||||
"video/x-matroska" = video;
|
||||
"video/mp4" = video;
|
||||
"video/webm" = video;
|
||||
"video/ogg" = video;
|
||||
"application/pdf" = "org.gnome.Papers.desktop";
|
||||
"application/msword" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.ms-powerpoint" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.ms-excel" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.oasis.opendocument.text" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.oasis.opendocument.presentation" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/vnd.oasis.opendocument.spreadsheet" = "onlyoffice-desktopeditors.desktop";
|
||||
"application/msword" = office-writer;
|
||||
"application/vnd.ms-powerpoint" = office-document;
|
||||
"application/vnd.ms-excel" = office-spreadsheet;
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = office-writer;
|
||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation" = office-document;
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = office-spreadsheet;
|
||||
"application/vnd.oasis.opendocument.text" = office-writer;
|
||||
"application/vnd.oasis.opendocument.presentation" = office-document;
|
||||
"application/vnd.oasis.opendocument.spreadsheet" = office-spreadsheet;
|
||||
"application/epub+zip" = "com.github.johnfactotum.Foliate.desktop";
|
||||
"application/ogg" = "mpv.desktop";
|
||||
"application/xml" = "org.gnome.TextEditor.desktop";
|
||||
"application/xhtml+xml" = "firefox.desktop";
|
||||
"application/x-extension-htm" = "firefox.desktop";
|
||||
"application/x-extension-html" = "firefox.desktop";
|
||||
"application/x-extension-shtml" = "firefox.desktop";
|
||||
"application/x-extension-xhtml" = "firefox.desktop";
|
||||
"application/x-extension-xht" = "firefox.desktop";
|
||||
"application/ogg" = audio;
|
||||
"application/xml" = editor;
|
||||
"application/xhtml+xml" = web;
|
||||
"application/x-extension-htm" = web;
|
||||
"application/x-extension-html" = web;
|
||||
"application/x-extension-shtml" = web;
|
||||
"application/x-extension-xhtml" = web;
|
||||
"application/x-extension-xht" = web;
|
||||
"application/x-bittorrent" = "de.haeckerfelix.Fragments.desktop";
|
||||
"message/rfc822" = "thunderbird.desktop";
|
||||
"x-scheme-handler/mailto" = "thunderbird.desktop";
|
||||
"x-scheme-handler/mid" = "thunderbird.desktop";
|
||||
"message/rfc822" = mail;
|
||||
"x-scheme-handler/mailto" = mail;
|
||||
"x-scheme-handler/mid" = mail;
|
||||
"x-scheme-handler/discord" = "vesktop.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/chrome" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = web;
|
||||
"x-scheme-handler/https" = web;
|
||||
"x-scheme-handler/chrome" = web;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ in {
|
|||
packages = [
|
||||
# Internet
|
||||
"net.waterfox.waterfox"
|
||||
"io.freetubeapp.FreeTube"
|
||||
|
||||
# Messaging
|
||||
"org.signal.Signal"
|
||||
|
|
|
|||
|
|
@ -1,21 +1,20 @@
|
|||
{ home-manager, config, ... }:
|
||||
{ home-manager, config, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
home-manager.nixosModules.default
|
||||
];
|
||||
imports = [
|
||||
home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
home-manager.users.lyes = { ... }: {
|
||||
imports =
|
||||
[
|
||||
./editors
|
||||
./shells
|
||||
./home.nix
|
||||
];
|
||||
imports = [
|
||||
./editors
|
||||
./shells
|
||||
./home.nix
|
||||
];
|
||||
|
||||
home.username = "lyes";
|
||||
home.homeDirectory = "/home/lyes";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue