Compare commits
4 Commits
0d4776105a
...
5059cf6555
Author | SHA1 | Date |
---|---|---|
Abhinav Sarkar | 5059cf6555 | |
Abhinav Sarkar | 7bb772ebc8 | |
Abhinav Sarkar | d8c4b1b209 | |
Abhinav Sarkar | a094a4d07b |
|
@ -1,46 +1 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [./nix.nix];
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
system = {
|
||||
defaults = {
|
||||
dock = {
|
||||
appswitcher-all-displays = false;
|
||||
autohide = true;
|
||||
magnification = true;
|
||||
mru-spaces = false;
|
||||
orientation = "bottom";
|
||||
wvous-bl-corner = 13;
|
||||
wvous-br-corner = 14;
|
||||
wvous-tl-corner = 2;
|
||||
wvous-tr-corner = 3;
|
||||
};
|
||||
finder = {
|
||||
AppleShowAllExtensions = true;
|
||||
FXPreferredViewStyle = "Nlsv";
|
||||
};
|
||||
NSGlobalDomain = {
|
||||
AppleEnableMouseSwipeNavigateWithScrolls = true;
|
||||
AppleEnableSwipeNavigateWithScrolls = true;
|
||||
AppleICUForce24HourTime = true;
|
||||
AppleInterfaceStyle = "Dark";
|
||||
AppleInterfaceStyleSwitchesAutomatically = false;
|
||||
NSAutomaticCapitalizationEnabled = false;
|
||||
NSAutomaticDashSubstitutionEnabled = true;
|
||||
NSAutomaticSpellingCorrectionEnabled = false;
|
||||
NSAutomaticPeriodSubstitutionEnabled = false;
|
||||
NSAutomaticQuoteSubstitutionEnabled = true;
|
||||
_HIHideMenuBar = true;
|
||||
};
|
||||
trackpad = {
|
||||
Clicking = true;
|
||||
TrackpadRightClick = true;
|
||||
};
|
||||
};
|
||||
keyboard = {
|
||||
enableKeyMapping = true;
|
||||
remapCapsLockToControl = true;
|
||||
};
|
||||
stateVersion = 4;
|
||||
};
|
||||
}
|
||||
{ pkgs, inputs, ... }: { imports = [ ./nix.nix ./system.nix ]; }
|
||||
|
|
|
@ -40,8 +40,7 @@
|
|||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
darwinConfigurations."Abhinavs-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs; };
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
};
|
||||
casks = [
|
||||
"amethyst"
|
||||
"appcleaner"
|
||||
"calibre"
|
||||
"dropbox"
|
||||
"fanny"
|
||||
|
|
5
nix.nix
5
nix.nix
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
services.nix-daemon.enable = true;
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
|
@ -26,7 +25,7 @@
|
|||
max-jobs = 6;
|
||||
min-free = 128000000;
|
||||
warn-dirty = false;
|
||||
trusted-users = ["@admin"];
|
||||
trusted-users = [ "@admin" ];
|
||||
};
|
||||
};
|
||||
nixpkgs = {
|
||||
|
|
|
@ -12,23 +12,8 @@ let
|
|||
statix
|
||||
cachix
|
||||
];
|
||||
networkingPackages = with pkgs; [
|
||||
curl
|
||||
dig
|
||||
httpie
|
||||
openssh
|
||||
mosh
|
||||
];
|
||||
cmdLineUtilPackages = with pkgs; [
|
||||
bash
|
||||
broot
|
||||
coreutils-full
|
||||
fd
|
||||
gnugrep
|
||||
less
|
||||
ranger
|
||||
tree
|
||||
];
|
||||
networkingPackages = with pkgs; [ curl dig httpie openssh mosh ];
|
||||
cmdLineUtilPackages = with pkgs; [ bash broot coreutils-full fd gnugrep less ranger tree ];
|
||||
miscPackages = with pkgs; [
|
||||
binutils
|
||||
cabal2nix
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
{ inputs, config, osConfig, pkgs, ... }:
|
||||
|
||||
let username = config.home.username;
|
||||
in {
|
||||
|
@ -25,6 +25,14 @@ in {
|
|||
interactiveShellInit = ''
|
||||
fzf_configure_bindings --git_status=\cs --history=\cr --variables=\cv --directory=\cf --git_log=\cg
|
||||
neofetch
|
||||
|
||||
if test -d (brew --prefix)"/share/fish/completions"
|
||||
set -p fish_complete_path (brew --prefix)/share/fish/completions
|
||||
end
|
||||
|
||||
if test -d (brew --prefix)"/share/fish/vendor_completions.d"
|
||||
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
|
||||
end
|
||||
'';
|
||||
|
||||
shellInit = ''
|
||||
|
@ -32,7 +40,7 @@ in {
|
|||
fenv source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
fenv source /etc/profiles/per-user/${username}/etc/profile.d/hm-session-vars.sh
|
||||
fish_add_path -m ~/.local/bin ~/.cabal/bin /etc/profiles/per-user/${username}/bin
|
||||
eval "$(/usr/local/bin/brew shellenv)"
|
||||
eval "$(${osConfig.homebrew.brewPrefix}/brew shellenv)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ in {
|
|||
"[json]" = { editor.defaultFormatter = "esbenp.prettier-vscode"; };
|
||||
"[python]" = { editor.defaultFormatter = "ms-python.black-formatter"; };
|
||||
|
||||
black-formatter.args = ["--line-length" "100"];
|
||||
black-formatter.args = [ "--line-length" "100" ];
|
||||
};
|
||||
|
||||
keybindings = [
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; };
|
||||
in {
|
||||
home.packages = [ rc ];
|
||||
}
|
||||
let rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; };
|
||||
in { home.packages = [ rc ]; }
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link";
|
||||
in
|
||||
pkgs.writeShellScriptBin "report-hm-changes" ''
|
||||
let profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link";
|
||||
in pkgs.writeShellScriptBin "report-hm-changes" ''
|
||||
# Disable nvd if there are less than 2 hm profiles.
|
||||
if [ $(/bin/ls -d1v ${profiles} 2>/dev/null | wc -l) -lt 2 ]; then
|
||||
echo "Skipping changes report..."
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
system = {
|
||||
defaults = {
|
||||
dock = {
|
||||
appswitcher-all-displays = false;
|
||||
autohide = true;
|
||||
magnification = true;
|
||||
mru-spaces = false;
|
||||
orientation = "bottom";
|
||||
wvous-bl-corner = 13;
|
||||
wvous-br-corner = 14;
|
||||
wvous-tl-corner = 2;
|
||||
wvous-tr-corner = 3;
|
||||
};
|
||||
finder = {
|
||||
AppleShowAllExtensions = true;
|
||||
FXPreferredViewStyle = "Nlsv";
|
||||
};
|
||||
NSGlobalDomain = {
|
||||
AppleEnableMouseSwipeNavigateWithScrolls = true;
|
||||
AppleEnableSwipeNavigateWithScrolls = true;
|
||||
AppleICUForce24HourTime = true;
|
||||
AppleInterfaceStyle = "Dark";
|
||||
AppleInterfaceStyleSwitchesAutomatically = false;
|
||||
NSAutomaticCapitalizationEnabled = false;
|
||||
NSAutomaticDashSubstitutionEnabled = true;
|
||||
NSAutomaticSpellingCorrectionEnabled = false;
|
||||
NSAutomaticPeriodSubstitutionEnabled = false;
|
||||
NSAutomaticQuoteSubstitutionEnabled = true;
|
||||
_HIHideMenuBar = true;
|
||||
};
|
||||
trackpad = {
|
||||
Clicking = true;
|
||||
TrackpadRightClick = true;
|
||||
};
|
||||
};
|
||||
keyboard = {
|
||||
enableKeyMapping = true;
|
||||
remapCapsLockToControl = true;
|
||||
};
|
||||
stateVersion = 4;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue