framework: fixes and tweaks
This commit is contained in:
parent
08ec72daba
commit
e97a74b983
15 changed files with 33 additions and 42 deletions
|
|
@ -74,6 +74,7 @@
|
||||||
./nixos/workstation.nix
|
./nixos/workstation.nix
|
||||||
./nixos/modules/work.nix
|
./nixos/modules/work.nix
|
||||||
./nixos/programs/hyprland.nix
|
./nixos/programs/hyprland.nix
|
||||||
|
(import ./nixos/programs/auto-login.nix "hyprland")
|
||||||
];
|
];
|
||||||
home-modules = [
|
home-modules = [
|
||||||
./home/programs/work.nix
|
./home/programs/work.nix
|
||||||
|
|
|
||||||
|
|
@ -65,5 +65,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (config.lib.cosmic) Actions mapBinds;
|
inherit (config.lib.cosmic) Actions mapBinds;
|
||||||
SpawnTerminal = name: pkg:
|
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 {
|
in {
|
||||||
programs.cosmic = {
|
programs.cosmic = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -43,7 +43,7 @@ in {
|
||||||
Super.Shift. "y" = Actions.ToggleSticky;
|
Super.Shift. "y" = Actions.ToggleSticky;
|
||||||
# System
|
# System
|
||||||
Super. "d" = Actions.Spawn config.programs.menu.drunCommand;
|
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. "e" = SpawnTerminal "aerc" config.programs.aerc.package;
|
||||||
Super. "o" = Actions.System "HomeFolder";
|
Super. "o" = Actions.System "HomeFolder";
|
||||||
Super.Shift. "s" = Actions.System "Screenshot";
|
Super.Shift. "s" = Actions.System "Screenshot";
|
||||||
|
|
|
||||||
|
|
@ -152,8 +152,7 @@ in {
|
||||||
"${modifier}_SHIFT, Y, movetoworkspace, special"
|
"${modifier}_SHIFT, Y, movetoworkspace, special"
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
"${modifier}, slash, focuswindow, brave-browser"
|
"${modifier}, slash, exec, ${lib.getExe config.programs.chromium.package}"
|
||||||
"${modifier}, n, focuswindow, Logseq"
|
|
||||||
|
|
||||||
# workspaces
|
# workspaces
|
||||||
"${modifier}, 1, workspace,1"
|
"${modifier}, 1, workspace,1"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options.programs = {
|
options.programs = {
|
||||||
terminal = lib.mkPackageOption pkgs "alacritty" {};
|
terminal = lib.mkPackageOption pkgs "foot" {};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -16,5 +16,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./pcmanfm.nix
|
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
];
|
];
|
||||||
|
|
@ -11,6 +10,7 @@
|
||||||
easyeffects
|
easyeffects
|
||||||
pwvucontrol
|
pwvucontrol
|
||||||
helvum
|
helvum
|
||||||
|
cosmic-files
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
inkscape
|
inkscape
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ image () {
|
||||||
[ ! -f "$CACHE" ] && \
|
[ ! -f "$CACHE" ] && \
|
||||||
chafa -f sixel -s "$2x$3" --animate off --polite on "$1" > "$CACHE"
|
chafa -f sixel -s "$2x$3" --animate off --polite on "$1" > "$CACHE"
|
||||||
cat "$CACHE"
|
cat "$CACHE"
|
||||||
exit 1
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$(file -Lb --mime-type -- "$file")" in
|
case "$(file -Lb --mime-type -- "$file")" in
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
// (import ../../../lib/nixvim.nix input);
|
// (import ../../../lib/nixvim.nix input);
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim];
|
profiles.default.extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim];
|
||||||
userSettings = {
|
profiles.default.userSettings = {
|
||||||
"vscode-neovim.neovimExecutablePaths.linux" =
|
"vscode-neovim.neovimExecutablePaths.linux" =
|
||||||
lib.getExe config.programs.nixvim.package;
|
lib.getExe config.programs.nixvim.package;
|
||||||
"extensions.experimental.affinity" = {
|
"extensions.experimental.affinity" = {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
xargs = "${pkgs.findutils}/bin/xargs";
|
xargs = "${pkgs.findutils}/bin/xargs";
|
||||||
menu = config.programs.menu.dmenuCommand;
|
menu = config.programs.menu.dmenuCommand;
|
||||||
runmenu = config.programs.menu.drunCommand;
|
runmenu = config.programs.menu.drunCommand;
|
||||||
fileman = "${pkgs.pcmanfm}/bin/pcmanfm";
|
fileman = lib.getExe pkgs.cosmic-files;
|
||||||
gawk = "${pkgs.gawk}/bin/awk";
|
gawk = "${pkgs.gawk}/bin/awk";
|
||||||
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
||||||
sed = "${pkgs.gnused}/bin/sed";
|
sed = "${pkgs.gnused}/bin/sed";
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
bind -n M-s split-window -v
|
bind -n M-s split-window -v
|
||||||
bind -n M-v split-window -h
|
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-h select-pane -L
|
||||||
bind -n M-j select-pane -D
|
bind -n M-j select-pane -D
|
||||||
bind -n M-k select-pane -U
|
bind -n M-k select-pane -U
|
||||||
|
|
@ -22,22 +23,10 @@
|
||||||
bind -n M-+ resize-pane -U 10
|
bind -n M-+ resize-pane -U 10
|
||||||
bind -n M-z resize-pane -Z
|
bind -n M-z resize-pane -Z
|
||||||
bind -n M-u copy-mode
|
bind -n M-u copy-mode
|
||||||
bind -n M-p paste-buffer
|
bind -n M-p previous-window
|
||||||
bind -n M-n next-window
|
bind -n M-n next-window
|
||||||
|
|
||||||
set-option -g renumber-windows on
|
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;
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,13 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pkg = config.programs.vscode.package;
|
code = lib.getExe config.programs.vscode.package;
|
||||||
menu = config.programs.menu.dmenuCommand;
|
menu = config.programs.menu.dmenuCommand;
|
||||||
editorCmd = "NIXOS_OZONE_WL= ${pkg}/bin/${pkg.executableName}";
|
|
||||||
in {
|
in {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = lib.mkDefault pkgs.vscodium;
|
package = lib.mkDefault pkgs.vscodium;
|
||||||
extensions = [];
|
profiles.default.userSettings = {
|
||||||
userSettings = {
|
|
||||||
"keyboard.dispatch" = "keyCode";
|
"keyboard.dispatch" = "keyCode";
|
||||||
"terminal.integrated.sendKeybindingsToShell" = true;
|
"terminal.integrated.sendKeybindingsToShell" = true;
|
||||||
"aws.telemetry" = false;
|
"aws.telemetry" = false;
|
||||||
|
|
@ -32,7 +30,7 @@ in {
|
||||||
code_dir=~/Documents/code
|
code_dir=~/Documents/code
|
||||||
cd $code_dir
|
cd $code_dir
|
||||||
repo=$(ls | ${menu})
|
repo=$(ls | ${menu})
|
||||||
[ -e "$repo" ] && ${editorCmd} $repo
|
[ -e "$repo" ] && ${code} $repo
|
||||||
'';
|
'';
|
||||||
install = false;
|
install = false;
|
||||||
hotkeys = [{key = "C";}];
|
hotkeys = [{key = "C";}];
|
||||||
|
|
|
||||||
|
|
@ -49,14 +49,9 @@ in {
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
package = pkgs.vscode;
|
package = pkgs.vscode;
|
||||||
extensions = with pkgs; [
|
profiles.default.extensions = with pkgs; [
|
||||||
vscode-extensions.ms-azuretools.vscode-docker
|
vscode-extensions.ms-azuretools.vscode-docker
|
||||||
];
|
];
|
||||||
userSettings = {
|
|
||||||
"aws.telemetry" = false;
|
|
||||||
"gitlens.telemetry.enabled" = false;
|
|
||||||
"redhat.telemetry.enabled" = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,6 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
nixpkgs.expr = ''import <nixpkgs> {}'';
|
nixpkgs.expr = ''import <nixpkgs> {}'';
|
||||||
options.zenix.expr = ''(builtins.getFlake "git+https://git.tristans.cloud/tristan/nix").nixosConfigurations.zenix.options'';
|
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)];
|
formatting.command = [(lib.getExe pkgs.alejandra)];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,10 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
configurationLimit = 50;
|
||||||
};
|
};
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
programs.nm-applet = {
|
programs.nm-applet = {
|
||||||
|
|
@ -90,6 +92,7 @@ in {
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
networkmanagerapplet
|
||||||
tealdeer
|
tealdeer
|
||||||
alsa-utils
|
alsa-utils
|
||||||
trash-cli
|
trash-cli
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
image = ../images/nix-soft.png;
|
image = ../images/nix-soft.png;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||||
|
polarity = "dark";
|
||||||
opacity = {
|
opacity = {
|
||||||
terminal = 0.9;
|
terminal = 0.9;
|
||||||
applications = 0.9;
|
applications = 0.9;
|
||||||
|
|
@ -46,14 +47,11 @@
|
||||||
package = pkgs.vanilla-dmz;
|
package = pkgs.vanilla-dmz;
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
# autoEnable = true;
|
||||||
targets = {
|
targets = {
|
||||||
gtk.enable = false; # fails to switch with cosmic overriding it (grr)
|
qt.enable = true;
|
||||||
gnome.enable = false;
|
|
||||||
grub = {
|
grub = {
|
||||||
useImage = true;
|
useWallpaper = true;
|
||||||
};
|
|
||||||
nixvim = {
|
|
||||||
enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue