Compare commits
2 Commits
improvemen
...
2056d9a46e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2056d9a46e | ||
|
|
19cd2a8224 |
26
flake.lock
generated
26
flake.lock
generated
@@ -60,31 +60,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs"
|
||||||
"zen-browser": "zen-browser"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"zen-browser": {
|
|
||||||
"inputs": {
|
|
||||||
"home-manager": [
|
|
||||||
"home-manager"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1765895443,
|
|
||||||
"narHash": "sha256-yftYGV0skUwV5neT1BJrs7RRbXPKozQTzC7d9c7kEFs=",
|
|
||||||
"owner": "0xc000022070",
|
|
||||||
"repo": "zen-browser-flake",
|
|
||||||
"rev": "bc7dfff92cb7919dfb213ea78c11ea0a4d265a56",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "0xc000022070",
|
|
||||||
"repo": "zen-browser-flake",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
10
flake.nix
10
flake.nix
@@ -16,16 +16,6 @@
|
|||||||
url = "github:LnL7/nix-darwin";
|
url = "github:LnL7/nix-darwin";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
zen-browser = {
|
|
||||||
url = "github:0xc000022070/zen-browser-flake";
|
|
||||||
inputs = {
|
|
||||||
# IMPORTANT: we're using "libgbm" and is only available in unstable so ensure
|
|
||||||
# to have it up-to-date or simply don't specify the nixpkgs input
|
|
||||||
nixpkgs.follows = "nixpkgs";
|
|
||||||
home-manager.follows = "home-manager";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|||||||
@@ -7,13 +7,10 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
username,
|
username,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# Import shared modules
|
# Import shared modules
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen-browser.homeModules.beta
|
|
||||||
|
|
||||||
# Shell configuration (zsh, starship, atuin, direnv, zoxide, fzf, pyenv)
|
# Shell configuration (zsh, starship, atuin, direnv, zoxide, fzf, pyenv)
|
||||||
../modules/home/shell.nix
|
../modules/home/shell.nix
|
||||||
|
|
||||||
|
|||||||
@@ -70,10 +70,6 @@
|
|||||||
username = "morten";
|
username = "morten";
|
||||||
passwordFile = "/Users/alice/Library/Application Support/jellyfin-tui/pass";
|
passwordFile = "/Users/alice/Library/Application Support/jellyfin-tui/pass";
|
||||||
};
|
};
|
||||||
|
|
||||||
zen-browser = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Personal-only packages
|
# Personal-only packages
|
||||||
|
|||||||
@@ -11,10 +11,136 @@
|
|||||||
}: {
|
}: {
|
||||||
# Import darwin modules
|
# Import darwin modules
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/darwin/system.nix
|
|
||||||
../../modules/darwin/homebrew.nix
|
../../modules/darwin/homebrew.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Nix configuration
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
# Enable flakes and new nix command
|
||||||
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
# Avoid unwanted garbage collection when using nix-direnv
|
||||||
|
keep-outputs = true;
|
||||||
|
keep-derivations = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
primaryUser = username;
|
||||||
|
keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
remapCapsLockToControl = true;
|
||||||
|
};
|
||||||
|
startup.chime = false;
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
spaces.spans-displays = false;
|
||||||
|
loginwindow = {
|
||||||
|
GuestEnabled = false;
|
||||||
|
DisableConsoleAccess = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
dock = {
|
||||||
|
autohide = true;
|
||||||
|
autohide-delay = 0.0;
|
||||||
|
autohide-time-modifier = 0.0;
|
||||||
|
orientation = "bottom";
|
||||||
|
dashboard-in-overlay = true;
|
||||||
|
largesize = 85;
|
||||||
|
tilesize = 50;
|
||||||
|
magnification = true;
|
||||||
|
launchanim = false;
|
||||||
|
mru-spaces = false;
|
||||||
|
show-recents = false;
|
||||||
|
show-process-indicators = false;
|
||||||
|
static-only = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
finder = {
|
||||||
|
AppleShowAllExtensions = true;
|
||||||
|
AppleShowAllFiles = true;
|
||||||
|
CreateDesktop = false;
|
||||||
|
FXDefaultSearchScope = "SCcf"; # current folder
|
||||||
|
QuitMenuItem = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
NSGlobalDomain = {
|
||||||
|
NSAutomaticSpellingCorrectionEnabled = false;
|
||||||
|
NSAutomaticCapitalizationEnabled = false;
|
||||||
|
NSAutomaticPeriodSubstitutionEnabled = false;
|
||||||
|
NSAutomaticDashSubstitutionEnabled = false;
|
||||||
|
NSAutomaticQuoteSubstitutionEnabled = false;
|
||||||
|
NSAutomaticWindowAnimationsEnabled = false;
|
||||||
|
NSDocumentSaveNewDocumentsToCloud = false;
|
||||||
|
ApplePressAndHoldEnabled = false;
|
||||||
|
|
||||||
|
KeyRepeat = 2;
|
||||||
|
InitialKeyRepeat = 10;
|
||||||
|
# Enable subpixel font rendering on non-Apple LCDs
|
||||||
|
# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
|
||||||
|
AppleFontSmoothing = 2;
|
||||||
|
# Finder: show all filename extensions
|
||||||
|
AppleShowAllExtensions = true;
|
||||||
|
};
|
||||||
|
CustomUserPreferences = {
|
||||||
|
LaunchServices = {
|
||||||
|
# Whether to enable quarantine for downloaded applications
|
||||||
|
LSQuarantine = false;
|
||||||
|
};
|
||||||
|
trackpad = {
|
||||||
|
Clicking = true;
|
||||||
|
TrackpadRightClick = true;
|
||||||
|
};
|
||||||
|
"com.apple.systempreferences" = {
|
||||||
|
# Disable Resume system-wide
|
||||||
|
NSQuitAlwaysKeepsWindows = false;
|
||||||
|
};
|
||||||
|
"com.apple.desktopservices" = {
|
||||||
|
# Avoid creating .DS_Store files on network or USB volumes
|
||||||
|
DSDontWriteNetworkStores = true;
|
||||||
|
DSDontWriteUSBStores = true;
|
||||||
|
};
|
||||||
|
"com.apple.screensaver" = {
|
||||||
|
# Require password immediately after sleep or screen saver begins
|
||||||
|
askForPassword = 1;
|
||||||
|
askForPasswordDelay = 0;
|
||||||
|
};
|
||||||
|
"com.apple.AdLib" = {
|
||||||
|
# Don't fucking track me...
|
||||||
|
allowApplePersonalizedAdvertising = false;
|
||||||
|
};
|
||||||
|
"com.apple.BluetoothAudioAgent" = {
|
||||||
|
# Increase sound quality for Bluetooth headphones/headsets
|
||||||
|
"Apple Bitpool Min (editable)" = -40;
|
||||||
|
};
|
||||||
|
"com.apple.dashboard" = {
|
||||||
|
# Disable Dashboard
|
||||||
|
mcx-disabled = true;
|
||||||
|
};
|
||||||
|
alf = {
|
||||||
|
# Enables Firewall
|
||||||
|
globalstate = 1;
|
||||||
|
# Enable logging of requests
|
||||||
|
loggingenabled = 1;
|
||||||
|
# Drops incoming requests via ICMP such as ping requests
|
||||||
|
stealthenabled = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.${username} = {
|
||||||
|
name = username;
|
||||||
|
home = "/Users/${username}";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# System-level programs
|
# System-level programs
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
@@ -11,10 +11,137 @@
|
|||||||
}: {
|
}: {
|
||||||
# Import darwin modules
|
# Import darwin modules
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/darwin/system.nix
|
|
||||||
../../modules/darwin/homebrew.nix
|
../../modules/darwin/homebrew.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Nix configuration
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
# Enable flakes and new nix command
|
||||||
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
# Avoid unwanted garbage collection when using nix-direnv
|
||||||
|
keep-outputs = true;
|
||||||
|
keep-derivations = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
primaryUser = username;
|
||||||
|
keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
remapCapsLockToControl = true;
|
||||||
|
};
|
||||||
|
startup.chime = false;
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
spaces.spans-displays = false;
|
||||||
|
loginwindow = {
|
||||||
|
GuestEnabled = false;
|
||||||
|
DisableConsoleAccess = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
dock = {
|
||||||
|
autohide = true;
|
||||||
|
autohide-delay = 0.0;
|
||||||
|
autohide-time-modifier = 0.0;
|
||||||
|
orientation = "bottom";
|
||||||
|
dashboard-in-overlay = true;
|
||||||
|
largesize = 85;
|
||||||
|
tilesize = 50;
|
||||||
|
magnification = true;
|
||||||
|
launchanim = false;
|
||||||
|
mru-spaces = false;
|
||||||
|
show-recents = false;
|
||||||
|
show-process-indicators = false;
|
||||||
|
static-only = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
finder = {
|
||||||
|
AppleShowAllExtensions = true;
|
||||||
|
AppleShowAllFiles = true;
|
||||||
|
CreateDesktop = false;
|
||||||
|
FXDefaultSearchScope = "SCcf"; # current folder
|
||||||
|
QuitMenuItem = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
NSGlobalDomain = {
|
||||||
|
NSAutomaticSpellingCorrectionEnabled = false;
|
||||||
|
NSAutomaticCapitalizationEnabled = false;
|
||||||
|
NSAutomaticPeriodSubstitutionEnabled = false;
|
||||||
|
NSAutomaticDashSubstitutionEnabled = false;
|
||||||
|
NSAutomaticQuoteSubstitutionEnabled = false;
|
||||||
|
NSAutomaticWindowAnimationsEnabled = false;
|
||||||
|
NSDocumentSaveNewDocumentsToCloud = false;
|
||||||
|
ApplePressAndHoldEnabled = false;
|
||||||
|
|
||||||
|
KeyRepeat = 2;
|
||||||
|
InitialKeyRepeat = 10;
|
||||||
|
# Enable subpixel font rendering on non-Apple LCDs
|
||||||
|
# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
|
||||||
|
AppleFontSmoothing = 2;
|
||||||
|
# Finder: show all filename extensions
|
||||||
|
AppleShowAllExtensions = true;
|
||||||
|
};
|
||||||
|
CustomUserPreferences = {
|
||||||
|
LaunchServices = {
|
||||||
|
# Whether to enable quarantine for downloaded applications
|
||||||
|
LSQuarantine = false;
|
||||||
|
};
|
||||||
|
trackpad = {
|
||||||
|
Clicking = true;
|
||||||
|
TrackpadRightClick = true;
|
||||||
|
};
|
||||||
|
"com.apple.systempreferences" = {
|
||||||
|
# Disable Resume system-wide
|
||||||
|
NSQuitAlwaysKeepsWindows = false;
|
||||||
|
};
|
||||||
|
"com.apple.desktopservices" = {
|
||||||
|
# Avoid creating .DS_Store files on network or USB volumes
|
||||||
|
DSDontWriteNetworkStores = true;
|
||||||
|
DSDontWriteUSBStores = true;
|
||||||
|
};
|
||||||
|
"com.apple.screensaver" = {
|
||||||
|
# Require password immediately after sleep or screen saver begins
|
||||||
|
askForPassword = 1;
|
||||||
|
askForPasswordDelay = 0;
|
||||||
|
};
|
||||||
|
"com.apple.AdLib" = {
|
||||||
|
# Don't fucking track me...
|
||||||
|
allowApplePersonalizedAdvertising = false;
|
||||||
|
};
|
||||||
|
"com.apple.BluetoothAudioAgent" = {
|
||||||
|
# Increase sound quality for Bluetooth headphones/headsets
|
||||||
|
"Apple Bitpool Min (editable)" = -40;
|
||||||
|
};
|
||||||
|
"com.apple.dashboard" = {
|
||||||
|
# Disable Dashboard
|
||||||
|
mcx-disabled = true;
|
||||||
|
};
|
||||||
|
alf = {
|
||||||
|
# Enables Firewall
|
||||||
|
globalstate = 1;
|
||||||
|
# Enable logging of requests
|
||||||
|
loggingenabled = 1;
|
||||||
|
# Drops incoming requests via ICMP such as ping requests
|
||||||
|
stealthenabled = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.${username} = {
|
||||||
|
name = username;
|
||||||
|
home = "/Users/${username}";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# System-level programs
|
# System-level programs
|
||||||
programs = {
|
programs = {
|
||||||
# Enable zsh as it's the default macOS shell
|
# Enable zsh as it's the default macOS shell
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ in {
|
|||||||
|
|
||||||
# Communication
|
# Communication
|
||||||
"signal"
|
"signal"
|
||||||
|
"thunderbird"
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
"steam"
|
"steam"
|
||||||
@@ -103,7 +104,6 @@ in {
|
|||||||
"fluxcd/tap/flux"
|
"fluxcd/tap/flux"
|
||||||
"sst/tap/opencode"
|
"sst/tap/opencode"
|
||||||
"tree-sitter-cli"
|
"tree-sitter-cli"
|
||||||
"borders"
|
|
||||||
];
|
];
|
||||||
description = "Homebrew formulae to install (for packages not in nixpkgs)";
|
description = "Homebrew formulae to install (for packages not in nixpkgs)";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,140 +0,0 @@
|
|||||||
# It sets up system-level configuration and integrates with home-manager.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
username,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
# Nix configuration
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
# Enable flakes and new nix command
|
|
||||||
experimental-features = ["nix-command" "flakes"];
|
|
||||||
# Avoid unwanted garbage collection when using nix-direnv
|
|
||||||
keep-outputs = true;
|
|
||||||
keep-derivations = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
system = {
|
|
||||||
primaryUser = username;
|
|
||||||
keyboard = {
|
|
||||||
enableKeyMapping = true;
|
|
||||||
remapCapsLockToControl = true;
|
|
||||||
};
|
|
||||||
startup.chime = false;
|
|
||||||
|
|
||||||
defaults = {
|
|
||||||
spaces.spans-displays = false;
|
|
||||||
loginwindow = {
|
|
||||||
GuestEnabled = false;
|
|
||||||
DisableConsoleAccess = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
dock = {
|
|
||||||
autohide = true;
|
|
||||||
autohide-delay = 0.0;
|
|
||||||
autohide-time-modifier = 0.0;
|
|
||||||
orientation = "bottom";
|
|
||||||
dashboard-in-overlay = true;
|
|
||||||
largesize = 85;
|
|
||||||
tilesize = 50;
|
|
||||||
magnification = true;
|
|
||||||
launchanim = false;
|
|
||||||
mru-spaces = false;
|
|
||||||
show-recents = false;
|
|
||||||
show-process-indicators = false;
|
|
||||||
static-only = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
finder = {
|
|
||||||
AppleShowAllExtensions = true;
|
|
||||||
AppleShowAllFiles = true;
|
|
||||||
CreateDesktop = false;
|
|
||||||
FXDefaultSearchScope = "SCcf"; # current folder
|
|
||||||
QuitMenuItem = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
NSGlobalDomain = {
|
|
||||||
NSAutomaticSpellingCorrectionEnabled = false;
|
|
||||||
NSAutomaticCapitalizationEnabled = false;
|
|
||||||
NSAutomaticPeriodSubstitutionEnabled = false;
|
|
||||||
NSAutomaticDashSubstitutionEnabled = false;
|
|
||||||
NSAutomaticQuoteSubstitutionEnabled = false;
|
|
||||||
NSAutomaticWindowAnimationsEnabled = false;
|
|
||||||
NSDocumentSaveNewDocumentsToCloud = false;
|
|
||||||
ApplePressAndHoldEnabled = false;
|
|
||||||
|
|
||||||
KeyRepeat = 2;
|
|
||||||
InitialKeyRepeat = 10;
|
|
||||||
# Enable subpixel font rendering on non-Apple LCDs
|
|
||||||
# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
|
|
||||||
AppleFontSmoothing = 2;
|
|
||||||
# Finder: show all filename extensions
|
|
||||||
AppleShowAllExtensions = true;
|
|
||||||
};
|
|
||||||
CustomUserPreferences = {
|
|
||||||
LaunchServices = {
|
|
||||||
# Whether to enable quarantine for downloaded applications
|
|
||||||
LSQuarantine = false;
|
|
||||||
};
|
|
||||||
trackpad = {
|
|
||||||
Clicking = true;
|
|
||||||
TrackpadRightClick = true;
|
|
||||||
};
|
|
||||||
"com.apple.systempreferences" = {
|
|
||||||
# Disable Resume system-wide
|
|
||||||
NSQuitAlwaysKeepsWindows = false;
|
|
||||||
};
|
|
||||||
"com.apple.desktopservices" = {
|
|
||||||
# Avoid creating .DS_Store files on network or USB volumes
|
|
||||||
DSDontWriteNetworkStores = true;
|
|
||||||
DSDontWriteUSBStores = true;
|
|
||||||
};
|
|
||||||
"com.apple.screensaver" = {
|
|
||||||
# Require password immediately after sleep or screen saver begins
|
|
||||||
askForPassword = 1;
|
|
||||||
askForPasswordDelay = 0;
|
|
||||||
};
|
|
||||||
"com.apple.AdLib" = {
|
|
||||||
# Don't fucking track me...
|
|
||||||
allowApplePersonalizedAdvertising = false;
|
|
||||||
};
|
|
||||||
"com.apple.BluetoothAudioAgent" = {
|
|
||||||
# Increase sound quality for Bluetooth headphones/headsets
|
|
||||||
"Apple Bitpool Min (editable)" = -40;
|
|
||||||
};
|
|
||||||
"com.apple.dashboard" = {
|
|
||||||
# Disable Dashboard
|
|
||||||
mcx-disabled = true;
|
|
||||||
};
|
|
||||||
alf = {
|
|
||||||
# Enables Firewall
|
|
||||||
globalstate = 1;
|
|
||||||
# Enable logging of requests
|
|
||||||
loggingenabled = 1;
|
|
||||||
# Drops incoming requests via ICMP such as ping requests
|
|
||||||
stealthenabled = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.${username} = {
|
|
||||||
name = username;
|
|
||||||
home = "/Users/${username}";
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Used for backwards compatibility, read the changelog before changing.
|
|
||||||
# $ darwin-rebuild changelog
|
|
||||||
system.stateVersion = 5;
|
|
||||||
}
|
|
||||||
@@ -21,15 +21,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
zen-browser = {
|
|
||||||
enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable Zen Browser configuration (macOS only)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
jellyfin-tui = {
|
jellyfin-tui = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
@@ -64,41 +55,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.zen-browser = lib.mkIf cfg.zen-browser.enable {
|
|
||||||
enable = true;
|
|
||||||
policies = let
|
|
||||||
mkExtensionSettings = builtins.mapAttrs (_: pluginId: {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${pluginId}/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
AutofillAddressEnabled = true;
|
|
||||||
AutofillCreditCardEnabled = false;
|
|
||||||
DisableAppUpdate = true;
|
|
||||||
DisableFeedbackCommands = true;
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
DisablePocket = true;
|
|
||||||
DisableTelemetry = true;
|
|
||||||
DontCheckDefaultBrowser = true;
|
|
||||||
NoDefaultBookmarks = true;
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
EnableTrackingProtection = {
|
|
||||||
Value = true;
|
|
||||||
Locked = true;
|
|
||||||
Cryptomining = true;
|
|
||||||
Fingerprinting = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
ExtensionSettings = mkExtensionSettings {
|
|
||||||
"78272b6fa58f4a1abaac99321d503a20@proton.me" = "proton-pass";
|
|
||||||
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = "vimium-ff";
|
|
||||||
"readeck@readeck.com" = "readeck";
|
|
||||||
"@testpilot-containers" = "multi-account-containers";
|
|
||||||
"uBlock0@raymondhill.net" = "ublock-origin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Aerospace window manager configuration (macOS)
|
# Aerospace window manager configuration (macOS)
|
||||||
# Placed at ~/.aerospace.toml
|
# Placed at ~/.aerospace.toml
|
||||||
home.file = lib.mkMerge [
|
home.file = lib.mkMerge [
|
||||||
|
|||||||
@@ -80,26 +80,18 @@ in {
|
|||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
userName = cfg.userName;
|
||||||
|
userEmail = cfg.userEmail;
|
||||||
|
|
||||||
# Signing configuration with 1Password
|
# Signing configuration with 1Password
|
||||||
signing = {
|
signing = {
|
||||||
key = cfg.signingKey;
|
key = cfg.signingKey;
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Conditional includes for project-specific configurations
|
# Extra configuration
|
||||||
includes = map (inc: {
|
extraConfig = {
|
||||||
condition = inc.condition;
|
|
||||||
path = inc.path;
|
|
||||||
}) cfg.includes;
|
|
||||||
|
|
||||||
# All git settings using the new unified settings option
|
|
||||||
settings = {
|
|
||||||
# User configuration
|
|
||||||
user = {
|
|
||||||
name = cfg.userName;
|
|
||||||
email = cfg.userEmail;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Core settings (pager is set by programs.delta)
|
# Core settings (pager is set by programs.delta)
|
||||||
core = {
|
core = {
|
||||||
hooksPath = "/dev/null";
|
hooksPath = "/dev/null";
|
||||||
@@ -152,9 +144,10 @@ in {
|
|||||||
"difftool \"nvimdiff\"" = {
|
"difftool \"nvimdiff\"" = {
|
||||||
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\"";
|
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\"";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias = {
|
aliases = {
|
||||||
graph = "log --graph --color --pretty=format:\"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%C(blue)%x20(%ce)%x20%C(cyan)[gpg:%GK%x20%G?]%C(reset)%n%x20%s%n\"";
|
graph = "log --graph --color --pretty=format:\"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%C(blue)%x20(%ce)%x20%C(cyan)[gpg:%GK%x20%G?]%C(reset)%n%x20%s%n\"";
|
||||||
ll = "log --oneline";
|
ll = "log --oneline";
|
||||||
st = "status -sb";
|
st = "status -sb";
|
||||||
@@ -168,7 +161,12 @@ in {
|
|||||||
undo = "reset HEAD~1 --mixed";
|
undo = "reset HEAD~1 --mixed";
|
||||||
unstage = "reset HEAD --";
|
unstage = "reset HEAD --";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
# Conditional includes for project-specific configurations
|
||||||
|
includes = map (inc: {
|
||||||
|
condition = inc.condition;
|
||||||
|
path = inc.path;
|
||||||
|
}) cfg.includes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,6 @@
|
|||||||
duf # A better df alternative
|
duf # A better df alternative
|
||||||
hyperfine # A command-line benchmarking tool.
|
hyperfine # A command-line benchmarking tool.
|
||||||
choose # A human-friendly and fast alternative to cut and (sometimes) awk
|
choose # A human-friendly and fast alternative to cut and (sometimes) awk
|
||||||
coreutils
|
|
||||||
yazi # File manager
|
yazi # File manager
|
||||||
|
|
||||||
# ========================================================================
|
# ========================================================================
|
||||||
@@ -63,7 +62,6 @@
|
|||||||
# Languages and Runtimes
|
# Languages and Runtimes
|
||||||
nodejs_22 # Node.js LTS (replaces NVM)
|
nodejs_22 # Node.js LTS (replaces NVM)
|
||||||
deno # JavaScript/TypeScript runtime
|
deno # JavaScript/TypeScript runtime
|
||||||
rustup # Rust toolchain manager
|
|
||||||
python313 # Python 3.13
|
python313 # Python 3.13
|
||||||
# pyenv is configured in shell.nix
|
# pyenv is configured in shell.nix
|
||||||
uv # Fast Python package installer
|
uv # Fast Python package installer
|
||||||
@@ -89,8 +87,6 @@
|
|||||||
k9s # Kubernetes TUI
|
k9s # Kubernetes TUI
|
||||||
istioctl # Istio service mesh CLI
|
istioctl # Istio service mesh CLI
|
||||||
fluxcd # GitOps toolkit
|
fluxcd # GitOps toolkit
|
||||||
popeye #
|
|
||||||
argocd
|
|
||||||
|
|
||||||
# ========================================================================
|
# ========================================================================
|
||||||
# Infrastructure and Cloud Tools
|
# Infrastructure and Cloud Tools
|
||||||
|
|||||||
@@ -69,6 +69,9 @@
|
|||||||
"--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc"
|
"--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc"
|
||||||
"--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
"--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# NVM directory
|
||||||
|
NVM_DIR = "$HOME/.nvm";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Shell aliases (migrated from 01-env.sh and 01-nvim.sh)
|
# Shell aliases (migrated from 01-env.sh and 01-nvim.sh)
|
||||||
@@ -234,6 +237,12 @@
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# ==========================================================================
|
||||||
|
# NVM - Node Version Manager
|
||||||
|
# ==========================================================================
|
||||||
|
# NVM is installed via Homebrew and sourced in the shell
|
||||||
|
# This allows managing multiple Node.js versions per project
|
||||||
|
|
||||||
# ==========================================================================
|
# ==========================================================================
|
||||||
# Pyenv - Python version management
|
# Pyenv - Python version management
|
||||||
# ==========================================================================
|
# ==========================================================================
|
||||||
@@ -272,6 +281,7 @@
|
|||||||
${pkgs.mise}/bin/mise use --global bun@latest
|
${pkgs.mise}/bin/mise use --global bun@latest
|
||||||
${pkgs.mise}/bin/mise use --global deno@latest
|
${pkgs.mise}/bin/mise use --global deno@latest
|
||||||
${pkgs.mise}/bin/mise use --global uv@latest
|
${pkgs.mise}/bin/mise use --global uv@latest
|
||||||
|
${pkgs.mise}/bin/mise use --global rust@latest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
|
|||||||
Reference in New Issue
Block a user