darwin pkgs support sucks fr
This commit is contained in:
@@ -24,9 +24,9 @@
|
|||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "hnm";
|
backupFileExtension = "hnm";
|
||||||
|
extraSpecialArgs = {inherit username email outputs;};
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = {inherit username email outputs;};
|
|
||||||
users.${username} = import ./home.nix;
|
users.${username} = import ./home.nix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,13 +6,14 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# ../../home-modules/alacritty.nix
|
# ../../modules/alacritty.nix
|
||||||
../../home-modules/git.nix
|
../../modules/git.nix
|
||||||
../../home-modules/kitty.nix
|
../../modules/kitty.nix
|
||||||
../../home-modules/nvim.nix
|
../../modules/nvim.nix
|
||||||
../../home-modules/shell.nix
|
../../modules/shell.nix
|
||||||
../../home-modules/starship.nix
|
../../modules/starship.nix
|
||||||
../../home-modules/tmux.nix
|
../../modules/tmux.nix
|
||||||
|
../../modules/zed.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
@@ -24,8 +25,9 @@
|
|||||||
pkgs.python314 # coz awsebcli requires python in $PATH
|
pkgs.python314 # coz awsebcli requires python in $PATH
|
||||||
pkgs.pnpm
|
pkgs.pnpm
|
||||||
|
|
||||||
pkgs.discord # not working without overlays (darwin sucks)
|
pkgs.discord # nigga ain't working properly
|
||||||
pkgs.redis
|
pkgs.redis
|
||||||
|
pkgs.zed-editor
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [];
|
||||||
pkgs.fastfetch
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
MANPAGER = "nvim +Man!";
|
MANPAGER = "nvim +Man!";
|
||||||
@@ -32,12 +30,12 @@
|
|||||||
|
|
||||||
caskArgs = {
|
caskArgs = {
|
||||||
appdir = "/Applications";
|
appdir = "/Applications";
|
||||||
require_sha = true;
|
# require_sha = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
# darwin support for packages sucks
|
# darwin support for packages sucks
|
||||||
casks = [
|
casks = [
|
||||||
"firefox"
|
"firefox" # some dependancy issue
|
||||||
"raycast"
|
"raycast"
|
||||||
"obsidian"
|
"obsidian"
|
||||||
"spotify"
|
"spotify"
|
||||||
@@ -57,6 +55,6 @@
|
|||||||
cleanup = "zap";
|
cleanup = "zap";
|
||||||
};
|
};
|
||||||
|
|
||||||
taps = []
|
taps = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Cross-compile GNU/Linux binaries, or even full GNU/Linux system images
|
# Cross-compile GNU/Linux binaries, or even full GNU/Linux system images
|
||||||
# from someone's config, could be useful but idk
|
nix.linux-builder.enable = true;
|
||||||
# nix.linux-builder.enable = true;
|
|
||||||
|
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
|
||||||
@@ -20,7 +19,7 @@
|
|||||||
nix.gc = {
|
nix.gc = {
|
||||||
user = "root";
|
user = "root";
|
||||||
automatic = lib.mkDefault true;
|
automatic = lib.mkDefault true;
|
||||||
options = lib.mkDefault "--delete-older-than 7d";
|
options = lib.mkDefault "--delete-older-than 4d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Disable auto-optimise-store because of this issue:
|
# Disable auto-optimise-store because of this issue:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{config, ...}: {
|
{...}: {
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -18,8 +18,6 @@
|
|||||||
size = 16;
|
size = 16;
|
||||||
};
|
};
|
||||||
|
|
||||||
general.live_config_reload = true;
|
|
||||||
|
|
||||||
mouse.hide_when_typing = true;
|
mouse.hide_when_typing = true;
|
||||||
|
|
||||||
selection.save_to_clipboard = true;
|
selection.save_to_clipboard = true;
|
||||||
115
modules/fastfetch.nix
Normal file
115
modules/fastfetch.nix
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
{...}: {
|
||||||
|
programs.fastfetch = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
logo = {
|
||||||
|
padding = {
|
||||||
|
top = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
display = {
|
||||||
|
separator = " ➜ ";
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
{
|
||||||
|
type = "os";
|
||||||
|
key = "OS ";
|
||||||
|
keyColor = "red";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "kernel";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "red";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "shell";
|
||||||
|
key = " └ ";
|
||||||
|
keyColor = "red";
|
||||||
|
}
|
||||||
|
"break"
|
||||||
|
{
|
||||||
|
type = "wm";
|
||||||
|
key = "WM ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "wmtheme";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "icons";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "cursor";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "terminal";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "terminalfont";
|
||||||
|
key = " └ ";
|
||||||
|
keyColor = "green";
|
||||||
|
}
|
||||||
|
"break"
|
||||||
|
{
|
||||||
|
type = "host";
|
||||||
|
format = "{5} {1} Type {2}";
|
||||||
|
key = "PC ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "cpu";
|
||||||
|
format = "{1} ({3}) @ {7} GHz";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "gpu";
|
||||||
|
format = "{1} {2} @ {12} GHz";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "uptime";
|
||||||
|
key = " └ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "memory";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "swap";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "disk";
|
||||||
|
key = " ├ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "monitor";
|
||||||
|
key = " └ ";
|
||||||
|
keyColor = "yellow";
|
||||||
|
}
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
username,
|
username,
|
||||||
email,
|
email,
|
||||||
...
|
...
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}: {
|
{...}: {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
63
modules/zed.nix
Normal file
63
modules/zed.nix
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
{...}: {
|
||||||
|
programs.zed-editor = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
extensions = [];
|
||||||
|
|
||||||
|
userSettings = {
|
||||||
|
auto_update = false;
|
||||||
|
|
||||||
|
buffer_font_size = 14;
|
||||||
|
buffer_font_family = "JetBrainsMono Nerd Font";
|
||||||
|
|
||||||
|
languages = {
|
||||||
|
"TypeScript" = {
|
||||||
|
code_actions_on_format = {
|
||||||
|
source.fixAll.eslint = true;
|
||||||
|
source.organizeImports = true;
|
||||||
|
};
|
||||||
|
formatter = "prettier";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
tab_bar = {
|
||||||
|
show_nav_history_buttons = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs = {
|
||||||
|
file_icons = true;
|
||||||
|
git_status = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
telemetery = {
|
||||||
|
diagnostics = false;
|
||||||
|
metrics = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
terminal = {
|
||||||
|
font_size = 13;
|
||||||
|
line_height = "standard";
|
||||||
|
toolbar = {
|
||||||
|
breadcrumbs = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
mode = "dark";
|
||||||
|
light = "Rosé Pine";
|
||||||
|
dark = "Rosé Pine";
|
||||||
|
};
|
||||||
|
|
||||||
|
toolbar = {
|
||||||
|
breadcrumbs = false;
|
||||||
|
quick_actions = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
ui_font_size = 14;
|
||||||
|
|
||||||
|
ui_font_family = "JetBrainsMono Nerd Font";
|
||||||
|
|
||||||
|
vim_mode = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user