feat: Add sketchybar and format
This commit is contained in:
@@ -47,6 +47,7 @@ in {
|
|||||||
../modules
|
../modules
|
||||||
]
|
]
|
||||||
++ lib.optionals device.isLinux [../linux]
|
++ lib.optionals device.isLinux [../linux]
|
||||||
|
# ++ lib.optionals.device.isMac [../macos]
|
||||||
++ lib.optionals device.isServer [../server];
|
++ lib.optionals device.isServer [../server];
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
@@ -121,6 +122,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
sketchybar.enable = true;
|
||||||
atuin = {
|
atuin = {
|
||||||
settings = {
|
settings = {
|
||||||
auto_sync = true;
|
auto_sync = true;
|
||||||
|
|||||||
2
flake.lock
generated
2
flake.lock
generated
@@ -1498,7 +1498,7 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-IgVjk0l4snGVpLlanIC43+qQx/AKMuVv0JBoCZy7oxA=",
|
"narHash": "sha256-JVbSYTJfcy9GUhEuD9PSXvgnHc5QwQIFQkf/xu9r0vI=",
|
||||||
"path": "./neovim",
|
"path": "./neovim",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{pkgs, device, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
device,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = device.hasGui;
|
enable = device.hasGui;
|
||||||
theme = {
|
theme = {
|
||||||
|
|||||||
9
macos/default.nix
Normal file
9
macos/default.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
device,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# imports = [
|
||||||
|
# # ./sketchybar.nix
|
||||||
|
# ];
|
||||||
|
}
|
||||||
4
macos/sketchybar.nix
Normal file
4
macos/sketchybar.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
programs.sketchybar = {
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
{...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./goread.nix
|
./goread.nix
|
||||||
./hyprpaper.nix
|
./hyprpaper.nix
|
||||||
|
./sketchybar.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
23
modules/sketchybar.nix
Normal file
23
modules/sketchybar.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.programs.sketchybar;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
programs.sketchybar = {
|
||||||
|
enable = mkEnableOption "sketchybar - a status bar for macOS";
|
||||||
|
# config = with types; {
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
home.packages = mkIf cfg.enable [pkgs.sketchybar];
|
||||||
|
# home.file = {
|
||||||
|
# ".config/sketchybar/sketchybarrc".text = "";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -516,8 +516,7 @@ in rec {
|
|||||||
-- your options here
|
-- your options here
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
vim.o.guifont = "Monaspace Krypton:h13"
|
vim.o.guifont = "Hasklug Nerd Font Mono:h13"
|
||||||
-- vim.o.guifont = "Hasklug Nerd Font Mono:h13"
|
|
||||||
vim.g.neovide_cursor_vfx_mode = "railgun"
|
vim.g.neovide_cursor_vfx_mode = "railgun"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
device = "/dev/disk/by-uuid/64099f91-d4d6-44fa-92d4-9e905b3e7829";
|
device = "/dev/disk/by-uuid/64099f91-d4d6-44fa-92d4-9e905b3e7829";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
options = [ "noatime" ];
|
options = ["noatime"];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user