We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given this Home Manager config:
{ config, pkgs, ... }: let homeDirectory = "/Users/jwork"; in # https://nix-community.github.io/home-manager/options.html { home.username = "jamie"; home.homeDirectory = homeDirectory; # https://search.nixos.org/packages?channel=unstable home.packages = [ pkgs.dnsmasq ]; services.dnsmasq = { enable = false; }; home.stateVersion = "22.05"; programs.home-manager.enable = true; }
... It says that services.dnsmasq does not exist, despite my having seen it used by other people on NixOS:
services.dnsmasq
NixOS/nixpkgs#104181 NixOS/nixpkgs#27504 NixOS/nixpkgs#20863
➜ ~ home-manager switch error: The option `services.dnsmasq' does not exist. Definition values: - In `/Users/jwork/Documents/git/nixpkgs/home.nix': { dnsmasq = { enable = false; }; }
Am I misunderstanding something about home-manager? How should I configure dnsmasq through home-manager if not this?
@eelco @fpletz @globin
nix-shell -p nix-info --run "nix-info -m" - system: `"aarch64-darwin"` - host os: `Darwin 21.2.0, macOS 12.1` - multi-user?: `yes` - sandbox: `no` - version: `nix-env (Nix) 2.4` - channels(jamie): `"home-manager"` - channels(root): `"nixpkgs-22.05pre337993.e6df26a654b"` - channels(jwork): `"home-manager"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
The text was updated successfully, but these errors were encountered:
Am I misunderstanding something about home-manager?
home-manager is designed for configuring user environments and not system services like dnsmasq.
dnsmasq
... It says that services.dnsmasq does not exist, despite my having seen it used by other people on NixOS: NixOS/nixpkgs#104181 NixOS/nixpkgs#27504 NixOS/nixpkgs#20863
These are NixOS system configurations and not home-manager configurations.
How should I configure dnsmasq through home-manager if not this?
It should be possible for you to configure dnsmasq through nix-darwin on macOS.
Sorry, something went wrong.
Indeed, as @anubhavkini said. It is not possible to configure dnsmasq or other system level services through Home Manager.
rycee
sumnerevans
berbiche
No branches or pull requests
Is there an existing issue for this?
Issue description
Given this Home Manager config:
... It says that
services.dnsmasq
does not exist, despite my having seen it used by other people on NixOS:NixOS/nixpkgs#104181
NixOS/nixpkgs#27504
NixOS/nixpkgs#20863
Am I misunderstanding something about home-manager? How should I configure dnsmasq through home-manager if not this?
Maintainer CC
@eelco
@fpletz
@globin
System information
The text was updated successfully, but these errors were encountered: