mirror of
https://github.com/nmasur/dotfiles
synced 2025-06-22 16:25:52 +00:00
Compare commits
No commits in common. "c8441fc26565c005157f504087450123b62a769b" and "b38205af938e0c4c378d01f650df9b24463a0a2a" have entirely different histories.
c8441fc265
...
b38205af93
@ -21,7 +21,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = "lookingglass";
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -23,7 +23,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -19,7 +19,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -19,7 +19,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -23,7 +23,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -21,7 +21,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -23,7 +23,6 @@ rec {
|
|||||||
nmasur.settings = {
|
nmasur.settings = {
|
||||||
username = nmasur.settings.username;
|
username = nmasur.settings.username;
|
||||||
fullName = nmasur.settings.fullName;
|
fullName = nmasur.settings.fullName;
|
||||||
host = networking.hostName;
|
|
||||||
};
|
};
|
||||||
nmasur.profiles = {
|
nmasur.profiles = {
|
||||||
common.enable = true;
|
common.enable = true;
|
||||||
|
@ -15,7 +15,6 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
daemon.enable = true;
|
|
||||||
flags = [
|
flags = [
|
||||||
"--disable-up-arrow"
|
"--disable-up-arrow"
|
||||||
"--disable-ctrl-r"
|
"--disable-ctrl-r"
|
||||||
@ -34,7 +33,6 @@ in
|
|||||||
secrets_filter = true;
|
secrets_filter = true;
|
||||||
enter_accept = false;
|
enter_accept = false;
|
||||||
keymap_mode = "vim-normal";
|
keymap_mode = "vim-normal";
|
||||||
records = true; # Sync v2
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,12 +21,6 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf (cfg.enable) {
|
config = lib.mkIf (cfg.enable) {
|
||||||
|
|
||||||
# These are useful for triggering from zellij (rather than running directly in the shell)
|
|
||||||
nmasur.presets.programs.nixpkgs.commands.rebuildNixos = pkgs.writeShellScriptBin "rebuild-darwin" ''
|
|
||||||
git -C ${config.nmasur.presets.programs.dotfiles.path} add --intent-to-add --all
|
|
||||||
darwin-rebuild switch --flake "${config.nmasur.presets.programs.dotfiles.path}#${config.nmasur.settings.host}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
shellAbbrs = lib.mkIf config.nmasur.presets.programs.dotfiles.enable {
|
shellAbbrs = lib.mkIf config.nmasur.presets.programs.dotfiles.enable {
|
||||||
nr = {
|
nr = {
|
||||||
|
@ -11,34 +11,10 @@ in
|
|||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
options.nmasur.presets.programs.nixpkgs = {
|
options.nmasur.presets.programs.nixpkgs.enable = lib.mkEnableOption "Nixpkgs presets";
|
||||||
enable = lib.mkEnableOption "Nixpkgs presets";
|
|
||||||
commands = {
|
|
||||||
# These are useful for triggering from zellij (rather than running directly in the shell)
|
|
||||||
rebuildHome = lib.mkOption {
|
|
||||||
type = lib.types.package;
|
|
||||||
default = pkgs.writeShellScriptBin "rebuild-home" ''
|
|
||||||
git -C ${config.nmasur.presets.programs.dotfiles.path} add --intent-to-add --all
|
|
||||||
${lib.getExe pkgs.home-manager} switch --flake "${config.nmasur.presets.programs.dotfiles.path}#${config.nmasur.settings.host}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
rebuildNixos = lib.mkOption {
|
|
||||||
type = lib.types.package;
|
|
||||||
default = pkgs.writeShellScriptBin "rebuild-nixos" ''
|
|
||||||
git -C ${config.nmasur.presets.programs.dotfiles.path} add --intent-to-add --all
|
|
||||||
doas nixos-rebuild switch --flake ${config.nmasur.presets.programs.dotfiles.path}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
cfg.commands.rebuildHome
|
|
||||||
cfg.commands.rebuildNixos
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
n = "nix";
|
n = "nix";
|
||||||
|
@ -34,12 +34,6 @@ in
|
|||||||
zellij pipe --plugin file:$(which zellij-switch.wasm) -- "--cwd $TARGET_DIR --layout default --session $(basename $TARGET_DIR)"
|
zellij pipe --plugin file:$(which zellij-switch.wasm) -- "--cwd $TARGET_DIR --layout default --session $(basename $TARGET_DIR)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
gh-run = {
|
|
||||||
body = # fish
|
|
||||||
''
|
|
||||||
zellij action new-pane --start-suspended -- gh run watch
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -121,34 +115,6 @@ in
|
|||||||
close_on_exit = true;
|
close_on_exit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"bind \"Alt Shift h\"" = {
|
|
||||||
Run = {
|
|
||||||
_args = [
|
|
||||||
(lib.getExe config.nmasur.presets.programs.nixpkgs.commands.rebuildHome)
|
|
||||||
];
|
|
||||||
# close_on_exit = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"bind \"Alt Shift r\"" = {
|
|
||||||
Run = {
|
|
||||||
_args = [
|
|
||||||
(lib.getExe config.nmasur.presets.programs.nixpkgs.commands.rebuildNixos)
|
|
||||||
];
|
|
||||||
# close_on_exit = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"bind \"Alt Shift w\"" = {
|
|
||||||
Run = {
|
|
||||||
_args = [
|
|
||||||
(lib.getExe pkgs.gh)
|
|
||||||
"run"
|
|
||||||
"watch"
|
|
||||||
];
|
|
||||||
# direction = "Right";
|
|
||||||
# close_on_exit = false;
|
|
||||||
# start_suspended = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"bind \"Super Shift ]\"" = {
|
"bind \"Super Shift ]\"" = {
|
||||||
GoToNextTab = { };
|
GoToNextTab = { };
|
||||||
};
|
};
|
||||||
|
@ -18,17 +18,16 @@ in
|
|||||||
xdg.configFile."hammerspoon/init.lua".source = ./init.lua;
|
xdg.configFile."hammerspoon/init.lua".source = ./init.lua;
|
||||||
xdg.configFile."hammerspoon/Spoons/ControlEscape.spoon".source = ./Spoons/ControlEscape.spoon;
|
xdg.configFile."hammerspoon/Spoons/ControlEscape.spoon".source = ./Spoons/ControlEscape.spoon;
|
||||||
xdg.configFile."hammerspoon/Spoons/DismissAlerts.spoon".source = ./Spoons/DismissAlerts.spoon;
|
xdg.configFile."hammerspoon/Spoons/DismissAlerts.spoon".source = ./Spoons/DismissAlerts.spoon;
|
||||||
xdg.configFile."hammerspoon/Spoons/Launcher.spoon/init.lua".source =
|
xdg.configFile."hammerspoon/Spoons/Launcher.spoon/init.lua".source = pkgs.substituteAll {
|
||||||
pkgs.replaceVars ./Spoons/Launcher.spoon/init.lua
|
src = ./Spoons/Launcher.spoon/init.lua;
|
||||||
{
|
discord = "${pkgs.discord}/Applications/Discord.app";
|
||||||
discord = "${pkgs.discord}/Applications/Discord.app";
|
firefox = "${pkgs.firefox-unwrapped}/Applications/Firefox.app";
|
||||||
firefox = "${pkgs.firefox-unwrapped}/Applications/Firefox.app";
|
ghostty = "${config.programs.ghostty.package}/Applications/Ghostty.app";
|
||||||
ghostty = "${config.programs.ghostty.package}/Applications/Ghostty.app";
|
obsidian = "${pkgs.obsidian}/Applications/Obsidian.app";
|
||||||
obsidian = "${pkgs.obsidian}/Applications/Obsidian.app";
|
slack = "${pkgs.slack}/Applications/Slack.app";
|
||||||
slack = "${pkgs.slack}/Applications/Slack.app";
|
wezterm = "${pkgs.wezterm}/Applications/WezTerm.app";
|
||||||
wezterm = "${pkgs.wezterm}/Applications/WezTerm.app";
|
zed = "${pkgs.zed-editor}/Applications/Zed.app";
|
||||||
zed = "${pkgs.zed-editor}/Applications/Zed.app";
|
};
|
||||||
};
|
|
||||||
xdg.configFile."hammerspoon/Spoons/MoveWindow.spoon".source = ./Spoons/MoveWindow.spoon;
|
xdg.configFile."hammerspoon/Spoons/MoveWindow.spoon".source = ./Spoons/MoveWindow.spoon;
|
||||||
|
|
||||||
home.activation.reloadHammerspoon = config.lib.dag.entryAfter [ "writeBoundary" ] ''
|
home.activation.reloadHammerspoon = config.lib.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
@ -10,10 +10,6 @@
|
|||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Human readable name of the user";
|
description = "Human readable name of the user";
|
||||||
};
|
};
|
||||||
host = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "Name of the host of this deployment";
|
|
||||||
};
|
|
||||||
hostnames = lib.mkOption {
|
hostnames = lib.mkOption {
|
||||||
type = lib.types.attrsOf lib.types.str;
|
type = lib.types.attrsOf lib.types.str;
|
||||||
description = "Map of service names to FQDNs";
|
description = "Map of service names to FQDNs";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user