framework: fixes and tweaks

This commit is contained in:
tristan 2025-04-29 01:56:09 +01:00
parent 08ec72daba
commit e97a74b983
15 changed files with 33 additions and 42 deletions

View file

@ -74,6 +74,7 @@
./nixos/workstation.nix
./nixos/modules/work.nix
./nixos/programs/hyprland.nix
(import ./nixos/programs/auto-login.nix "hyprland")
];
home-modules = [
./home/programs/work.nix

View file

@ -65,5 +65,10 @@
};
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.direnv.enable = true;
}

View file

@ -6,7 +6,7 @@
}: let
inherit (config.lib.cosmic) Actions mapBinds;
SpawnTerminal = name: pkg:
Actions.Spawn (pkgs.writeShellScriptBin name "${lib.getExe pkgs.alacritty} -e ${lib.getExe pkg}");
Actions.Spawn (pkgs.writeShellScriptBin name "${lib.getExe config.programs.terminal} -e ${lib.getExe pkg}");
in {
programs.cosmic = {
enable = true;
@ -43,7 +43,7 @@ in {
Super.Shift. "y" = Actions.ToggleSticky;
# System
Super. "d" = Actions.Spawn config.programs.menu.drunCommand;
Super. "Return" = Actions.Spawn pkgs.alacritty;
Super. "Return" = Actions.Spawn config.programs.terminal;
Super. "e" = SpawnTerminal "aerc" config.programs.aerc.package;
Super. "o" = Actions.System "HomeFolder";
Super.Shift. "s" = Actions.System "Screenshot";

View file

@ -152,8 +152,7 @@ in {
"${modifier}_SHIFT, Y, movetoworkspace, special"
# applications
"${modifier}, slash, focuswindow, brave-browser"
"${modifier}, n, focuswindow, Logseq"
"${modifier}, slash, exec, ${lib.getExe config.programs.chromium.package}"
# workspaces
"${modifier}, 1, workspace,1"

View file

@ -4,7 +4,7 @@
...
}: {
options.programs = {
terminal = lib.mkPackageOption pkgs "alacritty" {};
terminal = lib.mkPackageOption pkgs "foot" {};
};
config = {
@ -16,5 +16,9 @@
};
};
};
programs.foot = {
enable = true;
};
};
}

View file

@ -1,6 +1,5 @@
{pkgs, ...}: {
imports = [
./pcmanfm.nix
./mpv.nix
./vscode.nix
];
@ -11,6 +10,7 @@
easyeffects
pwvucontrol
helvum
cosmic-files
# tools
inkscape

View file

@ -13,7 +13,7 @@ image () {
[ ! -f "$CACHE" ] && \
chafa -f sixel -s "$2x$3" --animate off --polite on "$1" > "$CACHE"
cat "$CACHE"
exit 1
exit 0
}
case "$(file -Lb --mime-type -- "$file")" in

View file

@ -11,8 +11,8 @@
// (import ../../../lib/nixvim.nix input);
programs.vscode = {
extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim];
userSettings = {
profiles.default.extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim];
profiles.default.userSettings = {
"vscode-neovim.neovimExecutablePaths.linux" =
lib.getExe config.programs.nixvim.package;
"extensions.experimental.affinity" = {

View file

@ -22,7 +22,7 @@
xargs = "${pkgs.findutils}/bin/xargs";
menu = config.programs.menu.dmenuCommand;
runmenu = config.programs.menu.drunCommand;
fileman = "${pkgs.pcmanfm}/bin/pcmanfm";
fileman = lib.getExe pkgs.cosmic-files;
gawk = "${pkgs.gawk}/bin/awk";
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
sed = "${pkgs.gnused}/bin/sed";

View file

@ -10,7 +10,8 @@
extraConfig = ''
bind -n M-s split-window -v
bind -n M-v split-window -h
bind -n M-Enter split-window -h
bind -n M-S-s split-window -h -c "#{pane_current_path}"
bind -n M-S-v split-window -h -c "#{pane_current_path}"
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
@ -22,22 +23,10 @@
bind -n M-+ resize-pane -U 10
bind -n M-z resize-pane -Z
bind -n M-u copy-mode
bind -n M-p paste-buffer
bind -n M-p previous-window
bind -n M-n next-window
set-option -g renumber-windows on
'';
};
# programs.kitty = {
# enable = true;
# keybindings = {
# "alt+h" = "neighboring_window left";
# "alt+l" = "neighboring_window right";
# "alt+j" = "neighboring_window down";
# "alt+k" = "neighboring_window up";
# "alt+enter" = "new_window";
# };
# shellIntegration.enableZshIntegration = true;
# };
}

View file

@ -4,15 +4,13 @@
config,
...
}: let
pkg = config.programs.vscode.package;
code = lib.getExe config.programs.vscode.package;
menu = config.programs.menu.dmenuCommand;
editorCmd = "NIXOS_OZONE_WL= ${pkg}/bin/${pkg.executableName}";
in {
programs.vscode = {
enable = true;
package = lib.mkDefault pkgs.vscodium;
extensions = [];
userSettings = {
profiles.default.userSettings = {
"keyboard.dispatch" = "keyCode";
"terminal.integrated.sendKeybindingsToShell" = true;
"aws.telemetry" = false;
@ -32,7 +30,7 @@ in {
code_dir=~/Documents/code
cd $code_dir
repo=$(ls | ${menu})
[ -e "$repo" ] && ${editorCmd} $repo
[ -e "$repo" ] && ${code} $repo
'';
install = false;
hotkeys = [{key = "C";}];

View file

@ -49,14 +49,9 @@ in {
programs.vscode = {
package = pkgs.vscode;
extensions = with pkgs; [
profiles.default.extensions = with pkgs; [
vscode-extensions.ms-azuretools.vscode-docker
];
userSettings = {
"aws.telemetry" = false;
"gitlens.telemetry.enabled" = false;
"redhat.telemetry.enabled" = false;
};
};
wayland.windowManager.hyprland.settings = {

View file

@ -278,7 +278,6 @@ in {
settings = {
nixpkgs.expr = ''import <nixpkgs> {}'';
options.zenix.expr = ''(builtins.getFlake "git+https://git.tristans.cloud/tristan/nix").nixosConfigurations.zenix.options'';
options.alpine.expr = ''(builtins.getFlake "git+https://git.tristans.cloud/tristan/nix").nixosConfigurations.alpine.options'';
formatting.command = [(lib.getExe pkgs.alejandra)];
};
};

View file

@ -25,8 +25,10 @@ in {
enable = true;
device = "nodev";
efiSupport = true;
configurationLimit = 50;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
networking.networkmanager.enable = true;
programs.nm-applet = {
@ -90,6 +92,7 @@ in {
services.gvfs.enable = true;
environment.systemPackages = with pkgs; [
networkmanagerapplet
tealdeer
alsa-utils
trash-cli

View file

@ -35,6 +35,7 @@
enable = true;
image = ../images/nix-soft.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
polarity = "dark";
opacity = {
terminal = 0.9;
applications = 0.9;
@ -46,14 +47,11 @@
package = pkgs.vanilla-dmz;
size = 24;
};
# autoEnable = true;
targets = {
gtk.enable = false; # fails to switch with cosmic overriding it (grr)
gnome.enable = false;
qt.enable = true;
grub = {
useImage = true;
};
nixvim = {
enable = false;
useWallpaper = true;
};
};
};