Compare commits
5 Commits
3a6d5bb8c4
...
5a35cd04a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a35cd04a6 | |||
| 5648224062 | |||
| bbb9cacd71 | |||
| 40743442e9 | |||
| 7564c5d740 |
@@ -2,16 +2,24 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
signalDesktopItem = pkgs.makeDesktopItem {
|
||||||
|
name = "signal-desktop";
|
||||||
|
desktopName = "Signal";
|
||||||
|
icon = "signal-desktop";
|
||||||
|
exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder -- %u";
|
||||||
|
};
|
||||||
|
|
||||||
signalWorkDesktopItem = pkgs.makeDesktopItem {
|
signalWorkDesktopItem = pkgs.makeDesktopItem {
|
||||||
name = "signal-work";
|
name = "signal-work";
|
||||||
desktopName = "Signal with work profile";
|
desktopName = "Signal with work profile";
|
||||||
icon = "signal-desktop";
|
icon = "signal-desktop";
|
||||||
exec = "signal-desktop --enable-dev-tools --enable-features=VaapiVideoDecoder --user-data-dir=/home/dominik/.config/Signal-work -- %u";
|
exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder --enable-dev-tools --user-data-dir=/home/dominik/.config/Signal-work -- %u";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.signal-cli
|
pkgs.signal-cli
|
||||||
pkgs.signal-desktop
|
pkgs.signal-desktop
|
||||||
|
signalDesktopItem
|
||||||
pkgs.zbar
|
pkgs.zbar
|
||||||
signalWorkDesktopItem
|
signalWorkDesktopItem
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -37,10 +37,13 @@ local config = {
|
|||||||
-- lvim.builtin.terminal.execs[#lvim.builtin.terminal.execs+1] = {"gdb", "tg", "GNU Debugger"}
|
-- lvim.builtin.terminal.execs[#lvim.builtin.terminal.execs+1] = {"gdb", "tg", "GNU Debugger"}
|
||||||
-- TODO: pls add mappings in which key and refactor this
|
-- TODO: pls add mappings in which key and refactor this
|
||||||
execs = {
|
execs = {
|
||||||
{ vim.o.shell, "<M-1>", "Horizontal Terminal", "horizontal", 0.3 },
|
-- { vim.o.shell, "<M-1>", "Horizontal Terminal", "horizontal", 0.3 },
|
||||||
{ vim.o.shell, "<M-2>", "Vertical Terminal", "vertical", 0.4 },
|
-- { vim.o.shell, "<M-2>", "Vertical Terminal", "vertical", 0.4 },
|
||||||
{ vim.o.shell, "<M-3>", "Float Terminal", "float", nil },
|
{ vim.o.shell, "<M-1>", "Float Terminal 1", "float", nil },
|
||||||
{ vim.o.shell, "<C-a>", "AI Agent Terminal", "float", nil },
|
{ vim.o.shell, "<M-2>", "Float Terminal 2", "float", nil },
|
||||||
|
{ vim.o.shell, "<M-3>", "Float Terminal 3", "float", nil },
|
||||||
|
{ vim.o.shell, "<M-4>", "Float Terminal 4", "float", nil },
|
||||||
|
{ vim.o.shell, "<M-5>", "Float Terminal 5", "float", nil },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +84,7 @@ Add_exec = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set({ "n", "t" }, opts.keymap, function()
|
vim.keymap.set({ "n", "t" }, opts.keymap, function()
|
||||||
M._exec_toggle { cmd = opts.cmd, count = opts.count, direction = opts.direction, size = opts.size() }
|
_exec_toggle { cmd = opts.cmd, count = opts.count, direction = opts.direction, size = opts.size() }
|
||||||
end, { desc = opts.label, noremap = true, silent = true })
|
end, { desc = opts.label, noremap = true, silent = true })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
{ config, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
system.autoUpgrade.allowReboot = false;
|
system.autoUpgrade.allowReboot = false;
|
||||||
|
|
||||||
|
# Skip auto-upgrade when on battery to save power
|
||||||
|
systemd.services.nixos-upgrade = {
|
||||||
|
unitConfig = {
|
||||||
|
ConditionACPower = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user