nix flake show
├───darwinModules: unknown
├───homeModules: unknown
├───nixosModules
│ ├───default: NixOS module
│ ├───allow-unfree-predicates: NixOS module
│ └───nix-change-report: NixOS module
├───overlays
│ └───default: Nixpkgs overlay
└───packages
├───aarch64-darwin
│ ├───bitwarden: package 'Bitwarden-2024.4.1'
│ ├───hot: package 'Hot-1.9.1'
│ ├───keepingYouAwake: package 'KeepingYouAwake-1.6.5'
│ └───rectangle: package 'Rectangle-0.77'
└───x86_64-darwin
├───bitwarden: package 'Bitwarden-2024.4.1'
├───hot: package 'Hot-1.9.1'
├───keepingYouAwake: package 'KeepingYouAwake-1.6.5'
└───rectangle: package 'Rectangle-0.77'
With this modules, instead of:
nixpkgs.config.allowUnfree = true; # EVERYTHING IS ALLOWED;
or
# You CANNOT set this in multiple places since its a function...
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"roon-server"
"vscode"
];
now you can write:
# Its just a list of package regexes you want to allow.
# you can set this in multiple modules and it just adds more regexes!!!
nixpkgs.allowUnfreeRegexes = ["slack" "discord"];
Automatically adds a change report using nvd
to each nixos activation.
Automatically adds a change report using nvd
to each home-manager activation.
❯ home-manager switch
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating createGpgHomedir
Activating nix-change-report
<<< /home/my-home/.local/state/nix/profiles/home-manager
>>> /nix/store/w4vgy6jalyh1vc1ghgas13hpxb7qsgz0-home-manager-generation
Removed packages:
[R.] #1 ponysay-unstable 2021-03-27
Closure size: 1392 -> 1391 (4 paths added, 5 paths removed, delta -1, disk usage -10.8MiB).
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
Activating migrateGhAccounts
Activating linkGeneration
Cleaning up orphan links from /home/my-home
Creating profile generation 567
Creating home file links in /home/my-home
Activating onFilesChange
Activating reloadSystemd
Automatically adds a change report using nvd
to each darwin-nix activation.
A few OSX Apps that I use that aren't in nixpkgs, so I've add them to this repo.
These are auto-updated nightly using a github actions.
Darwin package for Bitwarden
Keeping You Awake Prevents your Mac from going to sleep
Rectangle: Move and resize windows in macOS using keyboard shortcuts or snap areas.
Hot is macOS menu bar application that displays the CPU speed limit due to thermal issues.
When running nix-collect-garbage --delete-older-than 16
You get something like
error: chmod '/nix/store/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-some-app-1.2.3/Applications/SomeApp.app': Operation not permitted
Grant nix
full disk access.
- Goto
Apple -> System Settings -> Privacy & Security -> Ful Disk Access
- Find
nix
- if you find multiple
nix
try removing all by highlighting them and clicking the-
at the bottom, and try collecting garbage again. You'll then see only a singlenix
entry show up.
- if you find multiple
- Check the box for
nix