!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

209 Members
Salon francographe de NixOS70 Servers

Load older messages


SenderMessageTime
24 Mar 2024
@Minijackson:matrix.orgMinijackson(en tout cas sur nixpkgs master)20:37:53
@badele:matrix.orgBruno Adele

Bon, pour l'option boot.kernelPackages ne semble pas fonctionner, mais j'avoue que je ne sais pas qui c'est qui fixe l'option à nvidia-x11-390.157

C'est cette option de config qui défini la version ? hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable

20:44:13
@Minijackson:matrix.orgMinijacksonça a l'air d'être ça20:45:55
@Minijackson:matrix.orgMinijacksonune autre possibilité serait qu'un paquet utilise le driver nvidia comme dépendance, mais ça m'a l'air moins probable20:46:24
@Minijackson:matrix.orgMinijackson perso, j'aime bien utiliser nix repl pour debugger quel fichier a set quelle option 20:46:47
@badele:matrix.orgBruno AdeleRedacted or Malformed Event20:47:39
@badele:matrix.orgBruno Adele
nix-repl> nixosConfigurations.badxps.config.boot.kernelPackages.nvidiaPackages.stable
«derivation /nix/store/v1j57wg350h85vpwwa8z2fwxws3bbhqy-nvidia-x11-550.67-6.7.10.drv»
20:51:08
@badele:matrix.orgBruno AdeleDonc visiblement, y'a quelqu'un qui modifie le paquet20:51:25
@Minijackson:matrix.orgMinijacksonperso j'aurais l'impression que le problème ne vient pas de cette option20:52:02
@badele:matrix.orgBruno Adele * Donc visiblement, y'a quelqu'un qui modifie la version du paquet20:52:09
@badele:matrix.orgBruno AdeleOui, moi aussi, je pense que qu'un paquet force une dépendance, dans ce cas tu fais comment pour debuger avec nix repl ?20:52:43
@Minijackson:matrix.orgMinijackson là du coup j'utiliserais plutôt nix why-depends 20:53:03
@badele:matrix.orgBruno AdeleAh ? je ne connaissais pas cet outil20:53:25
@Minijackson:matrix.orgMinijackson nix path-info -r --derivation '.#nixosConfigurations.badxps.config.system.build.toplevel' | grep nvidia-x11 20:53:25
@Minijackson:matrix.orgMinijackson puis nix why-depends --derivation '.#nixosConfigurations.badxps.config.system.build.toplevel' /nix/store/...nvidia-x11... 20:53:55
@badele:matrix.orgBruno Adele
nix path-info -r --derivation '.#nixosConfigurations.badxps.config.system.build.toplevel' 
error: cached failure of attribute 'nixosConfigurations.badxps.config.system.build.toplevel'
20:56:53
@badele:matrix.orgBruno Adele

Pourtant ca fonctionne avec la commande nix repl (certes avec des warning)

nix-repl> nixosConfigurations.badxps.config.system.build.toplevel
trace: warning: The option `services.xserver.xkbOptions' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/desktop/wm/xorg/lightdm.nix' has been renamed to `services.xserver.xkb.options'.
trace: warning: The option `services.xserver.layout' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/desktop/wm/xorg/lightdm.nix' has been renamed to `services.xserver.xkb.layout'.
trace: warning: The option `services.xserver.libinput.tapping' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/desktop/wm/xorg/lightdm.nix' has been renamed to `services.xserver.libinput.touchpad.tapping'.
trace: warning: The option `services.xserver.libinput.naturalScrolling' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/desktop/wm/xorg/lightdm.nix' has been renamed to `services.xserver.libinput.touchpad.naturalScrolling'.
trace: warning: The option `services.xserver.libinput.middleEmulation' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/desktop/wm/xorg/lightdm.nix' has been renamed to `services.xserver.libinput.touchpad.middleEmulation'.
trace: warning: The option `services.openssh.permitRootLogin' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/commons/sshd.nix' has been renamed to `services.openssh.settings.PermitRootLogin'.
trace: warning: The option `services.openssh.passwordAuthentication' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/commons/sshd.nix' has been renamed to `services.openssh.settings.PasswordAuthentication'.
trace: warning: The option `security.pam.enableSSHAgentAuth' defined in `/nix/store/7hjy06ashzyqr71byfz9nkj74p4mpd51-source/nix/nixos/features/commons/sshd.nix' has been renamed to `security.pam.sshAgentAuth.enable'.
trace: warning: config.security.pam.sshAgentAuth.authorizedKeysFiles contains files in the user's home directory.

        Specifying user-writeable files there result in an insecure configuration:
        a malicious process can then edit such an authorized_keys file and bypass the ssh-agent-based authentication.
        See https://github.com/NixOS/nixpkgs/issues/31611

trace: warning: The option `users.users."badele".passwordFile' has been renamed to `users.users."badele".hashedPasswordFile'.
trace: warning: The option `users.users."root".passwordFile' has been renamed to `users.users."root".hashedPasswordFile'.
20:57:56
@Minijackson:matrix.orgMinijacksonah oui exact21:03:54
@Minijackson:matrix.orgMinijackson il faut sûrement rajouter la variable d'env NIXPKGS_ALLOW_BROKEN=1 et l'argument --impure 21:04:51
@Minijackson:matrix.orgMinijacksonjuste pour débugger21:04:57
@badele:matrix.orgBruno Adele

Minijackson: Elle est top ta technique ❤️

Ca semble être le support de Bumblebee ce que je ne comprends, visiblement elle est désactivé ici => https://github.com/NixOS/nixos-hardware/blob/7559df1e4af972d5f1de87975b5ef6a8d7559db2/dell/xps/15-9560/default.nix#L8

/nix/store/hj1fnwdrhygg4s4s3z93mrmpzw93css6-nixos-system-badxps-24.05.20240323.44d0940.drv
└───/nix/store/7smqnmpchbf9b2ij4h5f79n6nj6zl385-system-path.drv
    └───/nix/store/cman3478q92xqank8aqv0caxr3chk9yi-primusrun.drv
        └───/nix/store/wzj79fmyvprwh95bg4yy3rv4gwycaw4z-nvidia-x11-390.157.drv
21:28:09
@badele:matrix.orgBruno Adele Demain, j'essairais de désactiver le support de Bumblebee en espérant malgré tout que j'aurais le support d'OpenGL ... 21:37:40
25 Mar 2024
@badele:matrix.orgBruno Adele

Minijackson: C'est bien cette ligne qui me fait passer le driver nvidia à la version nvidia-x11-390

hardware.bumblebee.enable = true; Je l'ai mis à false et c'est passé.

Vraiment merci pour ton aide 💪

19:46:01
@Minijackson:matrix.orgMinijacksonpas de soucis ^^19:46:19
@badele:matrix.orgBruno Adele

Y'a t'il des personnes ici qui utilisent colmena j'en entends de plus en plus paler et je me pose la question de sont utilité dans un cadre hybride (serveurs / desktops ).

Dans la doc de colmena, je ne suis pas certain d'avoir vu qu'il gérait le home-manager, donc adieu le desktop ?

19:57:52
@Minijackson:matrix.orgMinijacksonje n'ai jamais utilisé colmena, mais home-manager peut faire partie d'une configuration NixOS, donc Colmena ne devrait pas avoir à gérer ça particulièrement19:59:06
@badele:matrix.orgBruno AdeleC'est à dire ? je ne comprends pas bien ce que tu veux dire 20:02:27
@Minijackson:matrix.orgMinijacksonà ma connaissance, Colmena est un outil pour déployer des configuration NixOS, peu importe la configuration20:03:26
@Minijackson:matrix.orgMinijacksondu coup tu peux utiliser des projets NixOS qui ajoutent des options / configurations à la configuration, comme home-manager, nixos-hardware, musnix, simple-nixos-mailserver, etc.20:04:11
@badele:matrix.orgBruno Adele Tu veux dire, ce que l'on peut faire avec nixos-rebuild colmena le fait ? et ensuite on fait un home-manager xxx si l'on désire pour la configuration desktop ? 20:05:19

Show newer messages


Back to Room ListRoom Version: 6