feat: Add sketchybar and format

This commit is contained in:
Uttarayan Mondal
2024-05-14 02:08:59 +05:30
parent d44ee68461
commit 11f6a9b736
9 changed files with 56 additions and 10 deletions

View File

@@ -47,6 +47,7 @@ in {
../modules
]
++ lib.optionals device.isLinux [../linux]
# ++ lib.optionals.device.isMac [../macos]
++ lib.optionals device.isServer [../server];
home.packages = with pkgs;
@@ -121,6 +122,7 @@ in {
};
programs = {
sketchybar.enable = true;
atuin = {
settings = {
auto_sync = true;

2
flake.lock generated
View File

@@ -1498,7 +1498,7 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-IgVjk0l4snGVpLlanIC43+qQx/AKMuVv0JBoCZy7oxA=",
"narHash": "sha256-JVbSYTJfcy9GUhEuD9PSXvgnHc5QwQIFQkf/xu9r0vI=",
"path": "./neovim",
"type": "path"
},

View File

@@ -1,4 +1,8 @@
{pkgs, device, ...}: {
{
pkgs,
device,
...
}: {
gtk = {
enable = device.hasGui;
theme = {

9
macos/default.nix Normal file
View File

@@ -0,0 +1,9 @@
{
pkgs,
device,
...
}: {
# imports = [
# # ./sketchybar.nix
# ];
}

4
macos/sketchybar.nix Normal file
View File

@@ -0,0 +1,4 @@
{pkgs, ...}: {
programs.sketchybar = {
};
}

View File

@@ -1,6 +1,11 @@
{...}: {
imports = [
./goread.nix
./hyprpaper.nix
];
{
pkgs,
lib,
...
}: {
imports = [
./goread.nix
./hyprpaper.nix
./sketchybar.nix
];
}

23
modules/sketchybar.nix Normal file
View 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 = "";
# };
};
}

View File

@@ -516,8 +516,7 @@ in rec {
-- your options here
})
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"
end

View File

@@ -73,7 +73,7 @@
device = "/dev/disk/by-uuid/64099f91-d4d6-44fa-92d4-9e905b3e7829";
fsType = "ext4";
neededForBoot = true;
options = [ "noatime" ];
options = ["noatime"];
};
fileSystems."/boot" = {