push
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
{
|
{ inputs, ...}: {
|
||||||
den.aspects.autocpufreq = {
|
den.aspects.autocpufreq = {
|
||||||
nixos = {
|
nixos = {
|
||||||
|
imports = [ inputs.auto-cpufreq.nixosModules.default ];
|
||||||
|
|
||||||
|
services.power-profiles-daemon.enable = false;
|
||||||
|
|
||||||
programs.auto-cpufreq.enable = true;
|
programs.auto-cpufreq.enable = true;
|
||||||
|
|
||||||
programs.auto-cpufreq.settings = {
|
programs.auto-cpufreq.settings = {
|
||||||
|
|||||||
@@ -10,6 +10,10 @@
|
|||||||
imports = [ inputs.niri.homeModules.niri ];
|
imports = [ inputs.niri.homeModules.niri ];
|
||||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xwayland-satellite
|
||||||
|
];
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.niri;
|
package = pkgs.niri;
|
||||||
@@ -20,7 +24,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
input.keyboard = {
|
input.keyboard = {
|
||||||
xkb.layout = "us,ua";
|
xkb.layout = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
input.touchpad = {
|
input.touchpad = {
|
||||||
@@ -76,34 +80,39 @@
|
|||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
"Mod+T".action.spawn = "cosmic-term";
|
"Mod+T".action.spawn = "cosmic-term";
|
||||||
|
"Mod+E".action.spawn = "cosmic-files";
|
||||||
|
|
||||||
"Mod+A".action.spawn-sh = "noctalia msg panel-toggle launcher";
|
"Mod+A".action.spawn-sh = "noctalia msg panel-toggle launcher";
|
||||||
"Mod+V".action.spawn-sh = "noctalia msg panel-toggle clipboard";
|
"Mod+V".action.spawn-sh = "noctalia msg panel-toggle clipboard";
|
||||||
"Mod+N".action.spawn-sh = "noctalia msg panel-toggle control-center";
|
"Mod+N".action.spawn-sh = "noctalia msg panel-toggle control-center";
|
||||||
|
"Mod+C".action.spawn-sh = "noctalia msg panel-toggle alexander/mimir:chat";
|
||||||
|
"Mod+W".action.spawn-sh = "noctalia msg panel-toggle wallpaper";
|
||||||
|
|
||||||
"Mod+Comma".action.spawn-sh = "noctalia msg settings-toggle";
|
"Mod+Comma".action.spawn-sh = "noctalia msg settings-toggle";
|
||||||
"Control+Alt+Delete".action.spawn-sh = "noctalia msg panel-toggle session";
|
"Control+Alt+Delete".action.spawn-sh = "noctalia msg panel-toggle session";
|
||||||
|
|
||||||
"XF86AudioRaiseVolume".action.spawn-sh = "noctalia msg volume-up";
|
"XF86AudioRaiseVolume".action.spawn-sh = "noctalia msg volume-up";
|
||||||
"XF86AudioLowerVolume".action.spawn-sh = "noctalia msg volume-down";
|
"XF86AudioLowerVolume".action.spawn-sh = "noctalia msg volume-down";
|
||||||
"XF86AudioMute".action.spawn-sh = "noctalia msg volume-mute";
|
"XF86AudioMute".action.spawn-sh = "noctalia msg volume-mute";
|
||||||
"XF86MonBrightnessUp".action.spawn-sh = "noctalia msg brightness-up";
|
"XF86MonBrightnessUp".action.spawn-sh = "noctalia msg brightness-up";
|
||||||
"XF86MonBrightnessDown".action.spawn-sh = "noctalia msg brightness-down";
|
"XF86MonBrightnessDown".action.spawn-sh = "noctalia msg brightness-down";
|
||||||
# Media
|
|
||||||
"XF86AudioPlay".action.spawn = [ "playerctl" "play-pause" ];
|
"XF86AudioPlay".action.spawn = [ "playerctl" "play-pause" ];
|
||||||
"XF86AudioNext".action.spawn = [ "playerctl" "next" ];
|
"XF86AudioNext".action.spawn = [ "playerctl" "next" ];
|
||||||
"XF86AudioPrev".action.spawn = [ "playerctl" "previous" ];
|
"XF86AudioPrev".action.spawn = [ "playerctl" "previous" ];
|
||||||
"XF86AudioStop".action.spawn = [ "playerctl" "stop" ];
|
"XF86AudioStop".action.spawn = [ "playerctl" "stop" ];
|
||||||
"Mod+W".action.spawn-sh = "noctalia msg panel-toggle wallpaper";
|
|
||||||
# Window management
|
|
||||||
"Mod+Q".action.close-window = {};
|
"Mod+Q".action.close-window = {};
|
||||||
"Mod+Space".action.toggle-window-floating = {};
|
"Mod+Space".action.toggle-window-floating = {};
|
||||||
"Mod+Shift+Space".action.switch-focus-between-floating-and-tiling = {};
|
"Mod+Shift+Space".action.switch-focus-between-floating-and-tiling = {};
|
||||||
"Mod+F".action.switch-preset-column-width = {};
|
"Mod+F".action.switch-preset-column-width = {};
|
||||||
"Mod+Shift+F".action.fullscreen-window = {};
|
"Mod+Shift+F".action.fullscreen-window = {};
|
||||||
# Focus
|
|
||||||
"Mod+Left".action.focus-column-left = {};
|
"Mod+Left".action.focus-column-left = {};
|
||||||
"Mod+Down".action.focus-window-or-workspace-down = {};
|
"Mod+Down".action.focus-window-or-workspace-down = {};
|
||||||
"Mod+Up".action.focus-window-or-workspace-up = {};
|
"Mod+Up".action.focus-window-or-workspace-up = {};
|
||||||
"Mod+Right".action.focus-column-right = {};
|
"Mod+Right".action.focus-column-right = {};
|
||||||
# Move windows
|
|
||||||
"Mod+Shift+Left".action.set-column-width = "-10%";
|
"Mod+Shift+Left".action.set-column-width = "-10%";
|
||||||
"Mod+Shift+Right".action.set-column-width = "+10%";
|
"Mod+Shift+Right".action.set-column-width = "+10%";
|
||||||
"Mod+Shift+Up".action.set-window-height = "+10%";
|
"Mod+Shift+Up".action.set-window-height = "+10%";
|
||||||
@@ -112,9 +121,9 @@
|
|||||||
"Mod+Control+L".action.consume-or-expel-window-right = {};
|
"Mod+Control+L".action.consume-or-expel-window-right = {};
|
||||||
"Mod+Control+K".action.move-window-up = {};
|
"Mod+Control+K".action.move-window-up = {};
|
||||||
"Mod+Control+J".action.move-window-down = {};
|
"Mod+Control+J".action.move-window-down = {};
|
||||||
# Screenshots
|
|
||||||
"Mod+Shift+S".action.spawn = [ "noctalia" "msg" "screenshot-region" ];
|
"Mod+Shift+S".action.spawn = [ "noctalia" "msg" "screenshot-region" ];
|
||||||
# Workspaces
|
|
||||||
"Mod+1".action.focus-workspace = 1;
|
"Mod+1".action.focus-workspace = 1;
|
||||||
"Mod+2".action.focus-workspace = 2;
|
"Mod+2".action.focus-workspace = 2;
|
||||||
"Mod+3".action.focus-workspace = 3;
|
"Mod+3".action.focus-workspace = 3;
|
||||||
@@ -136,6 +145,15 @@
|
|||||||
"Mod+Shift+8".action.move-window-to-workspace = 8;
|
"Mod+Shift+8".action.move-window-to-workspace = 8;
|
||||||
"Mod+Shift+9".action.move-window-to-workspace = 9;
|
"Mod+Shift+9".action.move-window-to-workspace = 9;
|
||||||
"Mod+Shift+0".action.move-window-to-workspace = 10;
|
"Mod+Shift+0".action.move-window-to-workspace = 10;
|
||||||
|
|
||||||
|
"Alt+Tab".action.spawn-sh = "noctalia msg window-switcher";
|
||||||
|
|
||||||
|
"Mod+WheelScrollUp".action.focus-workspace-up = {};
|
||||||
|
"Mod+WheelScrollDown".action.focus-workspace-down = {};
|
||||||
|
"Mod+Shift+WheelScrollDown".action.focus-column-right = {};
|
||||||
|
"Mod+Shift+WheelScrollUp".action.focus-column-left = {};
|
||||||
|
"Mod+Ctrl+Shift+WheelScrollDown".action.move-column-right = {};
|
||||||
|
"Mod+Ctrl+Shift+WheelScrollUp".action.move-column-left = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ in {
|
|||||||
|
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
autoEnable = true;
|
||||||
|
|
||||||
flavor = flavor;
|
flavor = flavor;
|
||||||
accent = accent;
|
accent = accent;
|
||||||
|
|
||||||
@@ -21,6 +23,8 @@ in {
|
|||||||
|
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
autoEnable = true;
|
||||||
|
|
||||||
flavor = flavor;
|
flavor = flavor;
|
||||||
accent = accent;
|
accent = accent;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = false;
|
autoEnable = true;
|
||||||
|
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
|
|
||||||
base16Scheme = catppuccin;
|
base16Scheme = catppuccin;
|
||||||
@@ -40,8 +41,10 @@
|
|||||||
vesktop.enable = true;
|
vesktop.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
|
gtk.flatpakSupport.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
opencode.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -38,6 +38,11 @@
|
|||||||
hashedPasswordFile = "/home/bug/users/levi.passwd";
|
hashedPasswordFile = "/home/bug/users/levi.passwd";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.ip_forward" = 1;
|
||||||
|
"net.ipv6.conf.all.forwarding" = 1;
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/home" = {
|
||||||
device = "/dev/disk/by-uuid/30f357aa-fc86-4bcd-bed7-c91fc8afbdbc";
|
device = "/dev/disk/by-uuid/30f357aa-fc86-4bcd-bed7-c91fc8afbdbc";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
fish
|
fish
|
||||||
|
|
||||||
fetch
|
fetch
|
||||||
|
|
||||||
|
opencode
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = { ... }: {
|
nixos = { ... }: {
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs.fishPlugins; [
|
environment.systemPackages = with pkgs.fishPlugins; [
|
||||||
done
|
|
||||||
sponge
|
sponge
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,25 +1,28 @@
|
|||||||
{ pkgs, lib, ... }:
|
{
|
||||||
|
|
||||||
let
|
|
||||||
opencode-json = pkgs.writeText "opencode.json" (builtins.toJSON {
|
|
||||||
"$schema" = "https://opencode.ai/config.json";
|
|
||||||
plugin = [ "opencode-plugin-llama.cpp@latest" ];
|
|
||||||
provider = {
|
|
||||||
llama.cpp = {
|
|
||||||
npm = "@ai-sdk/openai-compatible";
|
|
||||||
name = "llama.cpp";
|
|
||||||
options.baseURL = "https://llama.bug.tools/v1";
|
|
||||||
models."qwen3.6-35b-a3b".name = "qwen3.6-35b-a3b";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
den.aspects.opencode = {
|
den.aspects.opencode = {
|
||||||
nixos = { pkgs, ... }: {
|
homeManager = {
|
||||||
environment.systemPackages = [ pkgs.opencode ];
|
programs.opencode = {
|
||||||
};
|
enable = true;
|
||||||
homeManager = { ... }: {
|
|
||||||
home.file.".config/opencode/opencode.json".source = opencode-json;
|
settings = {
|
||||||
|
plugin = [ "opencode-plugin-llama.cpp@latest" ];
|
||||||
|
|
||||||
|
provider = {
|
||||||
|
"llama.cpp" = {
|
||||||
|
npm = "@ai-sdk/openai-compatible";
|
||||||
|
name = "llama.cpp";
|
||||||
|
options = {
|
||||||
|
baseURL = "https://llama.bug.tools/v1";
|
||||||
|
};
|
||||||
|
models = {
|
||||||
|
"qwen3.6-35b-a3b" = {
|
||||||
|
name = "qwen3.6-35b-a3b";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
"shell"
|
"shell"
|
||||||
"display"
|
"display"
|
||||||
"wm"
|
"wm"
|
||||||
"terminal"
|
|
||||||
"cpu"
|
"cpu"
|
||||||
"gpu"
|
"gpu"
|
||||||
"memory"
|
"memory"
|
||||||
|
|||||||
Reference in New Issue
Block a user