Compare commits

..

No commits in common. "7ae06494568c3c61425310e1b86fc25644db2d9c" and "920ec8b43e088e55a66d46c22f48e8ff00eafa91" have entirely different histories.

7 changed files with 29 additions and 30 deletions

View File

@ -14,7 +14,7 @@ darwin.lib.darwinSystem {
}) })
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
{ {
identityFile = "/Users/Noah.Masur/.ssh/id_ed25519"; identityFile = "/home/${globals.user}/.ssh/id_ed25519";
gui.enable = true; gui.enable = true;
colorscheme = (import ../../modules/colorscheme/gruvbox); colorscheme = (import ../../modules/colorscheme/gruvbox);
mailUser = globals.user; mailUser = globals.user;

View File

@ -3,13 +3,15 @@
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
home.packages = with pkgs; home.packages = with pkgs;
[ (nerdfonts.override { fonts = [ "Victor Mono" ]; }) ]; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
programs.alacritty.settings = { font.normal.family = "Victor Mono"; }; programs.alacritty.settings = {
font.normal.family = "FiraCode Nerd Font Mono";
};
programs.kitty.font = { programs.kitty.font = {
package = pkgs.nerdfonts; package = pkgs.nerdfonts;
name = "Victor Mono"; name = "FiraCode";
}; };
}; };

View File

@ -9,25 +9,24 @@ WORK_RIGHT_MONITOR = "DELL U2415 (1)"
LAPTOP_MONITOR = "Built-in Retina Display" LAPTOP_MONITOR = "Built-in Retina Display"
-- Used to find out the name of the monitor in Hammerspoon -- Used to find out the name of the monitor in Hammerspoon
-- local function dump(o) function dump(o)
-- if type(o) == "table" then if type(o) == "table" then
-- local s = "{ " local s = "{ "
-- for k, v in pairs(o) do for k, v in pairs(o) do
-- if type(k) ~= "number" then if type(k) ~= "number" then
-- k = '"' .. k .. '"' k = '"' .. k .. '"'
-- end end
-- s = s .. "[" .. k .. "] = " .. dump(v) .. "," s = s .. "[" .. k .. "] = " .. dump(v) .. ","
-- end end
-- return s .. "} " return s .. "} "
-- else else
-- return tostring(o) return tostring(o)
-- end end
-- end end
-- Turn on when looking for the monitor name -- Turn on when looking for the monitor name
-- print(dump(hs.screen.allScreens())) -- print(dump(hs.screen.allScreens()))
local function concat(...) function concat(...)
local res = {} local res = {}
for _, tab in ipairs({ ... }) do for _, tab in ipairs({ ... }) do
for _, elem in ipairs(tab) do for _, elem in ipairs(tab) do
@ -37,12 +36,12 @@ local function concat(...)
return res return res
end end
local function worklayout() function worklayout()
hs.hotkey.bind({ "alt", "ctrl", "cmd" }, "l", function() hs.hotkey.bind({ "alt", "ctrl", "cmd" }, "l", function()
local u = hs.geometry.unitrect local u = hs.geometry.unitrect
-- set the layout -- set the layout
local left = { local left = {
{ "kitty", nil, WORK_LEFT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true }, -- { "Alacritty", nil, WORK_LEFT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },
} }
local right = { local right = {
{ "Slack", nil, WORK_RIGHT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true }, { "Slack", nil, WORK_RIGHT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true },

View File

@ -21,7 +21,7 @@
rebuild-home = lib.mkForce { rebuild-home = lib.mkForce {
body = '' body = ''
git -C ${config.dotfilesPath} add --intent-to-add --all git -C ${config.dotfilesPath} add --intent-to-add --all
commandline -r "${pkgs.home-manager}/bin/home-manager switch --flake ${config.dotfilesPath}#macbook"; commandline -r "${pkgs.home-manager}/bin/home-manager switch --flake ${config.dotfilesPath}#${config.networking.hostName}";
commandline --function execute commandline --function execute
''; '';
}; };

View File

@ -1,9 +1,7 @@
{ pkgs, ... }: { { ... }: {
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
environment.shells = [ pkgs.fish ];
security.pam.enableSudoTouchIdAuth = true; security.pam.enableSudoTouchIdAuth = true;
system = { system = {

View File

@ -14,7 +14,7 @@ bind -M insert \cp projects
bind -M default \cp projects bind -M default \cp projects
bind -M insert \x1F accept-autosuggestion bind -M insert \x1F accept-autosuggestion
bind -M default \x1F accept-autosuggestion bind -M default \x1F accept-autosuggestion
bind -M insert \cn 'commandline -r "nix run nixpkgs#"' bind -M insert \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"'
bind -M default \cn 'commandline -r "nix run nixpkgs#"' bind -M default \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"'
bind -M insert \x11F nix-fzf bind -M insert \x11F nix-fzf
bind -M default \x11F nix-fzf bind -M default \x11F nix-fzf

View File

@ -19,9 +19,9 @@
body = '' body = ''
set program $argv[1] set program $argv[1]
if test (count $argv) -ge 2 if test (count $argv) -ge 2
commandline -r "nix run nixpkgs#$program -- $argv[2..-1]" commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program -- $argv[2..-1]"
else else
commandline -r "nix run nixpkgs#$program" commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program"
end end
commandline -f execute commandline -f execute
''; '';