Trying something else
This commit is contained in:
16
modules/home/default.nix
Normal file
16
modules/home/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
users.atridad = { pkgs, ... }: {
|
||||
imports = [
|
||||
./zed.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "25.11";
|
||||
};
|
||||
};
|
||||
}
|
||||
51
modules/home/zed.nix
Normal file
51
modules/home/zed.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
|
||||
extensions = [
|
||||
"nix"
|
||||
"catppuccin"
|
||||
"catppuccin-icons"
|
||||
"toml"
|
||||
"elixir"
|
||||
"make"
|
||||
"astro"
|
||||
"vue"
|
||||
"latex"
|
||||
"mermaid"
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
icon_theme = "Catppuccin Macchiato";
|
||||
title_bar = {
|
||||
show_sign_in = false;
|
||||
};
|
||||
collaboration_panel = {
|
||||
button = false;
|
||||
};
|
||||
status_bar = {
|
||||
cursor_position_button = false;
|
||||
};
|
||||
disable_ai = true;
|
||||
telemetry = {
|
||||
diagnostics = false;
|
||||
metrics = false;
|
||||
};
|
||||
ui_font_size = 16;
|
||||
buffer_font_size = 15;
|
||||
theme = {
|
||||
mode = "system";
|
||||
light = "One Light";
|
||||
dark = "Catppuccin Macchiato";
|
||||
};
|
||||
languages = {
|
||||
"Nix" = {
|
||||
language_servers = [ "nil" "nixd" ];
|
||||
format_on_save = "on";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
modules/homebrew.nix
Normal file
28
modules/homebrew.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = true;
|
||||
cleanup = "zap";
|
||||
};
|
||||
|
||||
brews = [
|
||||
"gamdl"
|
||||
"knock"
|
||||
"snort"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"android-platform-tools"
|
||||
"flutter"
|
||||
"ghostty"
|
||||
"librewolf"
|
||||
"ngrok"
|
||||
"pearcleaner"
|
||||
"zulu@17"
|
||||
];
|
||||
};
|
||||
}
|
||||
26
modules/packages/cli.nix
Normal file
26
modules/packages/cli.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
micro
|
||||
lazygit
|
||||
ripgrep
|
||||
fnm
|
||||
cmake
|
||||
ninja
|
||||
gradle
|
||||
netcat-gnu
|
||||
bitwarden-cli
|
||||
pwgen
|
||||
qrencode
|
||||
sl
|
||||
upx
|
||||
wakeonlan
|
||||
magic-wormhole
|
||||
httpie
|
||||
gh
|
||||
doctl
|
||||
qemu
|
||||
];
|
||||
}
|
||||
21
modules/packages/languages.nix
Normal file
21
modules/packages/languages.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
|
||||
extensions = [ "rust-src" "rust-analyzer" ];
|
||||
targets = [ "aarch64-apple-darwin" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
rustToolchain
|
||||
python313
|
||||
openjdk
|
||||
openjdk17
|
||||
lua
|
||||
luajit
|
||||
perl
|
||||
ruby
|
||||
go
|
||||
];
|
||||
}
|
||||
9
modules/packages/media.nix
Normal file
9
modules/packages/media.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ffmpeg
|
||||
tesseract
|
||||
tectonic
|
||||
];
|
||||
}
|
||||
8
modules/packages/networking.nix
Normal file
8
modules/packages/networking.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
freerdp
|
||||
openmpi
|
||||
];
|
||||
}
|
||||
10
modules/packages/security.nix
Normal file
10
modules/packages/security.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
nmap
|
||||
nikto
|
||||
john
|
||||
rustscan
|
||||
];
|
||||
}
|
||||
17
modules/system.nix
Normal file
17
modules/system.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ rust-overlay, ... }:
|
||||
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
hostPlatform = "aarch64-darwin";
|
||||
config.allowUnfree = true;
|
||||
overlays = [ rust-overlay.overlays.default ];
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
system.primaryUser = "atridad";
|
||||
system.stateVersion = 6;
|
||||
}
|
||||
Reference in New Issue
Block a user