Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin";
url = "github:LnL7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util.url = "github:hraban/mac-app-util";
Expand Down
5 changes: 1 addition & 4 deletions nix/darwin/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
{
environment.systemPackages = with pkgs; [
raycast
vscode
# vscode
logseq
# brave
ice-bar
man-pages
man-pages-posix
groff
];

homebrew = {
Expand Down
17 changes: 6 additions & 11 deletions nix/darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pkgs,
username,
config,
system,
...
}:
{
Expand All @@ -17,7 +18,7 @@
home = "/Users/${username}";
shell = pkgs.fish;
};

nixpkgs.hostPlatform = system;
environment = {
variables = {
EDITOR = "${config.vars.editor}";
Expand Down Expand Up @@ -79,6 +80,7 @@
# for nix-direnv
keep-outputs = true;
keep-derivations = true;
sandbox = "relaxed";
# --
substituters = [
"https://dots.cachix.org"
Expand All @@ -88,9 +90,7 @@
"https://cache.nixos.org"
];
trusted-users = [
"root"
"@staff"
username
"${username}"
];
trusted-public-keys = [
"dots.cachix.org-1:H/gV3a5Ossrd/R+qrqrAk9tr3j51NHEB+pCTOk0OjYA="
Expand All @@ -100,10 +100,8 @@
];
};
package = pkgs.nix;
gc = {
optimise = {
automatic = true;
interval.Day = 7;
options = "--delete-older-than 7d";
};
extraOptions = ''
# auto-optimise-store = true
Expand All @@ -112,7 +110,7 @@
};

system = {
stateVersion = 4;
stateVersion = 6;

defaults = {
screencapture.location = "~/Pictures/Screenshots";
Expand All @@ -121,8 +119,5 @@
};
};
};
documentation.enable = true;
programs.info.enable = true;
programs.man.enable = true;
security.pam.enableSudoTouchIdAuth = true;
}
3 changes: 2 additions & 1 deletion nix/hm/lazygit.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ ... }:
{ pkgs-stable, ... }:
{
# docs: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md
programs.lazygit = {
package = pkgs-stable.lazygit;
enable = true;
settings = {
gui = {
Expand Down
2 changes: 1 addition & 1 deletion nix/hm/starship.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ in
show_always = false;
};
nodejs = {
disabled = true;
disabled = false;
format = "via [🤖 $version](bold green) ";
};
direnv = {
Expand Down
3 changes: 2 additions & 1 deletion nix/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ in
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
stateVersion = "23.11"; # Please read the comment before changing.
stateVersion = "24.11"; # Please read the comment before changing.
packages = locals.packages;
# The home.packages option allows you to install Nix packages into your
# environment.
Expand Down Expand Up @@ -162,6 +162,7 @@ in

# Let Home Manager install and manage itself.
programs = {
man.enable = false;
man.generateCaches = false;
home-manager.enable = true;
# Direnv integration for flakes
Expand Down
Loading