10 questions
0
votes
1
answer
25
views
Fixing broken packages on Darwin with homebrew
My nix configuration was made first on nix-darwin, and I'm in the process of porting it to NixOS and making it more modular.
Some packages are broken on macOS, but the programs can still be configured ...
0
votes
0
answers
41
views
Nix : how to link a file inside a package's nix-store directory?
I am attempting to configure the Tor daemon on nix-darwin. There is unfortunately no services.tor on this platform (yet ! maybe I'll port it from nixOS once I know enough Nix to do that)
I could ...
1
vote
3
answers
305
views
Error trying to setup basic nix-darwin with home-manager flake
I'm trying to follow the instructions for nix-darwin and home-manager to set up my configuration, however, I keep getting this error when running darwin-rebuild switch :
error:
… while ...
0
votes
2
answers
147
views
direnv printing environment diff even with `hide_env_diff = true`
I am using direnv 2.35.0 (and nix-direnv 3.0.6, though the behaviour happens even without use nix or use flake) and direnv insists on printing the environment diff even though I have hide_env_diff = ...
0
votes
1
answer
53
views
Stack tried to find libgmp then failed, even with no dependencies at all
I use nix-darwin and have enabled nix in ~/.stack/config.yaml.
Earlier today I did a sudo nix-collect-garbage -d then many things begin to break.
Minimum reproducible example:
stack new mwe
cd mwe
...
0
votes
1
answer
196
views
Homemanager Option not of Type Package
I want to use nix-darwin in a modularized manner (meaning that every package is its own .nix file with all necessary options included).
However, I get an error when I execute nix build .#...
0
votes
1
answer
604
views
nix-darwin rebuild fails when inside a git repository
I have nix-darwin installed and created a flake.nix file with content below. I have put that in a directory ~/x and ran the following which gives no errors:
$ darwin-rebuild switch --dry-run --flake x/...
1
vote
0
answers
1k
views
Nix-darwin, home-manager, and flakes: how to set environment variables for the main user?
With nix-darwin, home-manager, using flakes, how to set environment variables for the main user ?
Here's a few approaches I've tried (copied from examples):
(this is a nix-darwin module)
{ pkgs, lib, ...
5
votes
2
answers
1k
views
home.shellAliases unable to set aliases using home-manager
I have set up home-manager like this inside my nix-darwin.
Every thing is working perfectly except for the shellAliases part.
# Home Manager configurations
imports = [ <home-manager/nix-darwin&...
2
votes
1
answer
913
views
How do I access the nixos (or nix-darwin) config from within a home-manager module?
How do I access the NixOS config from within a home-manager module, imported automatically by home-manager? When I use config, it's home-manager config, not NixOS config.
I have a home-manager module ...