Compare commits
No commits in common. "ed2893e39c0ecad48efb5ac5b77d0553614316e2" and "c91565c97de31c209a3d910471a790b436eb8f7d" have entirely different histories.
ed2893e39c
...
c91565c97d
4 changed files with 15 additions and 131 deletions
|
|
@ -1,86 +0,0 @@
|
||||||
{ config, pkgs, pkgs-unstable, agenix, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# imports = [ <home-manager/nix-darwin> ];
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search by name, run:
|
|
||||||
# $ nix-env -qaP | grep wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
agenix.packages.aarch64-darwin.default
|
|
||||||
iterm2
|
|
||||||
tailscale
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use a custom configuration.nix location.
|
|
||||||
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
|
||||||
environment.darwinConfig = "$HOME/.config/home-manager/configuration.nix";
|
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
|
||||||
services.nix-daemon.enable = true;
|
|
||||||
#services.nix-daemon.tempDir = "/nix/tmp";
|
|
||||||
nix.package = pkgs.nix;
|
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
|
||||||
# programs.fish.enable = true;
|
|
||||||
|
|
||||||
# Used for backwards compatibility, please read the changelog before changing.
|
|
||||||
# $ darwin-rebuild changelog
|
|
||||||
system.stateVersion = 4;
|
|
||||||
system.keyboard.enableKeyMapping = true;
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
||||||
|
|
||||||
users.users.millironx = {
|
|
||||||
name = "millironx";
|
|
||||||
home = "/Users/millironx";
|
|
||||||
};
|
|
||||||
|
|
||||||
homebrew = {
|
|
||||||
enable = true;
|
|
||||||
onActivation = {
|
|
||||||
autoUpdate = true;
|
|
||||||
cleanup = "zap";
|
|
||||||
upgrade = true;
|
|
||||||
};
|
|
||||||
caskArgs = {
|
|
||||||
no_quarantine = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
brews = [ "borgbackup/tap/borgbackup-fuse" "firefoxpwa" "r" ];
|
|
||||||
casks = [
|
|
||||||
"alex313031-thorium"
|
|
||||||
"alt-tab"
|
|
||||||
"anki"
|
|
||||||
"element"
|
|
||||||
"firefox"
|
|
||||||
"freetube"
|
|
||||||
"inkscape"
|
|
||||||
"logseq"
|
|
||||||
"macfuse"
|
|
||||||
"musescore"
|
|
||||||
"nextcloud"
|
|
||||||
"obs"
|
|
||||||
"openrct2"
|
|
||||||
"qownnotes"
|
|
||||||
"rancher"
|
|
||||||
"rstudio"
|
|
||||||
"signal"
|
|
||||||
"steam"
|
|
||||||
"textmate"
|
|
||||||
"thunderbird@esr"
|
|
||||||
"veracrypt"
|
|
||||||
"vlc"
|
|
||||||
"vorta"
|
|
||||||
"zed"
|
|
||||||
"zotero"
|
|
||||||
];
|
|
||||||
masApps = {
|
|
||||||
"Bitwarden" = 1352778147;
|
|
||||||
"Tailscale" = 1475387142;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
30
flake.lock
generated
30
flake.lock
generated
|
|
@ -87,39 +87,18 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-darwin": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1736820923,
|
|
||||||
"narHash": "sha256-SDuKLOWAh8VJRXlNWQn9QE99bjeEUAAbYXqrKGbsiyk=",
|
|
||||||
"owner": "LnL7",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"rev": "944c2b181792ae7ae6b20c0df3f44879c11706c9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "LnL7",
|
|
||||||
"ref": "nix-darwin-24.11",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736949135,
|
"lastModified": 1734083684,
|
||||||
"narHash": "sha256-HGSacCG66FNt/oQjxXsp+2og657hZFjBDAhUGzPoyn4=",
|
"narHash": "sha256-5fNndbndxSx5d+C/D0p/VF32xDiJCJzyOqorOYW4JEo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5a141918f8b3ea128746881b6c099a6df569a51e",
|
"rev": "314e12ba369ccdb9b352a4db26ff419f7c49fa84",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-24.11-darwin",
|
"ref": "nixos-24.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +123,6 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
flake.nix
18
flake.nix
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-24.11-darwin";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
|
|
@ -13,14 +13,9 @@
|
||||||
url = "github:ryantm/agenix";
|
url = "github:ryantm/agenix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-darwin = {
|
|
||||||
url = "github:LnL7/nix-darwin/nix-darwin-24.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = { nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }:
|
||||||
{ self, nix-darwin, nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }:
|
|
||||||
let
|
let
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
|
@ -44,14 +39,5 @@
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = { inherit pkgs-unstable; };
|
extraSpecialArgs = { inherit pkgs-unstable; };
|
||||||
};
|
};
|
||||||
|
|
||||||
darwinConfigurations."corianne" = nix-darwin.lib.darwinSystem rec {
|
|
||||||
inherit system;
|
|
||||||
specialArgs = {
|
|
||||||
pkgs-unstable = import nixpkgs-unstable { inherit system; };
|
|
||||||
agenix = agenix;
|
|
||||||
};
|
|
||||||
modules = [ ./configuration.nix agenix.darwinModules.default ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
home.nix
12
home.nix
|
|
@ -19,6 +19,7 @@
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
act
|
act
|
||||||
|
anki-bin # anki is broken on aarch64-darwin
|
||||||
asitop
|
asitop
|
||||||
bat
|
bat
|
||||||
cowsay
|
cowsay
|
||||||
|
|
@ -34,10 +35,15 @@
|
||||||
gnupg
|
gnupg
|
||||||
gnused
|
gnused
|
||||||
htop
|
htop
|
||||||
|
inkscape-with-extensions
|
||||||
jq
|
jq
|
||||||
|
lapce
|
||||||
|
logseq
|
||||||
lsd
|
lsd
|
||||||
lynx
|
lynx
|
||||||
most
|
most
|
||||||
|
musescore
|
||||||
|
neovide
|
||||||
nil
|
nil
|
||||||
nixd
|
nixd
|
||||||
nixfmt
|
nixfmt
|
||||||
|
|
@ -47,11 +53,14 @@
|
||||||
python3
|
python3
|
||||||
quarto
|
quarto
|
||||||
shellcheck
|
shellcheck
|
||||||
|
pkgs-unstable.signal-desktop
|
||||||
sketchybar-app-font
|
sketchybar-app-font
|
||||||
sqlitebrowser
|
sqlitebrowser
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
pkgs-unstable.woodpecker-cli
|
pkgs-unstable.woodpecker-cli
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
pkgs-unstable.zed-editor
|
||||||
|
zotero
|
||||||
zulu17
|
zulu17
|
||||||
|
|
||||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
|
|
@ -75,9 +84,6 @@
|
||||||
(pkgs.writeShellScriptBin "uq" ''
|
(pkgs.writeShellScriptBin "uq" ''
|
||||||
xattr -rdv com.apple.quarantine "/Applications/$1.app"
|
xattr -rdv com.apple.quarantine "/Applications/$1.app"
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "get-current-wifi" ''
|
|
||||||
ipconfig getsummary $(networksetup -listallhardwareports | awk '/Hardware Port: Wi-Fi/{getline; print $2}') | awk -F ' SSID : ' '/ SSID : / {print $2}'
|
|
||||||
'')
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue