!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

111 Members
https://milano.nix.pizza/7 Servers

Load older messages


SenderMessageTime
5 Nov 2025
@telegram_73824637:t2bot.ioAndrea Ciceri
In reply to Giacomo Debidda
Buongiorno. Qualcuno di voi e' riuscito a usare un monitor che ha bisogno dei driver DisplayLink su NixOS?

Io ho seguito questa guida ma ancora non riesco a far funzionare il mio monitor portatile AOC E1759FWU.
https://wiki.nixos.org/wiki/Displaylink

Sono su X11 e come desktop environment uso XFCE, e come display manager uso LightDM.

Nella guida mi sembra di aver capito che serve una configurazione particolare per il systemd service displaylink-server SOLO nel caso in cui uno usi KDE Plasma.

La mia configurazione attuale e' in questo NixOS module.
https://github.com/jackdbd/nix-config/blob/main/nixos/modules/displaylink/default.nix
Non ho esperienza a riguardo. Pero', per curiosita', quando booti la live funziona lo schermo?
08:43:07
@telegram_721172851:t2bot.iox71c9
nixos-rebuild switch --flake .#<host> --target-host <user>@<IP> --use-remote-sudo
08:54:48
@telegram_721172851:t2bot.iox71c9forse abbiamo versioni diverse?08:57:00
@telegram_73824637:t2bot.ioAndrea Ciceri tra l'altro mi da un warning in cui mi dice di usare --sudo al posto di --use-remote-sudo 08:56:16
@telegram_73824637:t2bot.ioAndrea Ciceriprego, in bocca al lupo09:05:35
@telegram_721172851:t2bot.iox71c9 --fast uguale a prima, mentre unknown option --ask-sudo-password` 09:01:30
@telegram_73824637:t2bot.ioAndrea Ciceri secondo me comunque qualcosa tipo --ask-sudo-pasword c'era' anche sul nixos-rebuild "vechio" 09:05:03
@telegram_721172851:t2bot.iox71c9grazie però!09:05:28
@telegram_73824637:t2bot.ioAndrea Ciceri che dovrebbe essere il default su unstable ora 09:01:54
@telegram_73824637:t2bot.ioAndrea Ciceri per curiosita' prova con nixos-rebuild-ng 09:01:46
@telegram_721172851:t2bot.iox71c9sì dovrei installarlo09:01:59
@telegram_721172851:t2bot.iox71c9 intanto ho settato cosi ssh:
  services.openssh = {
    enable = true;
    settings = {
      PermitRootLogin = "no";
      PasswordAuthentication = false;
      PubkeyAuthentication = true;
      MaxAuthTries = 3;
      ClientAliveInterval = 300;
      ClientAliveCountMax = 2;
    };
    allowSFTP = false;
  };
08:53:40
@telegram_73824637:t2bot.ioAndrea Ciceri prova anche con --ask-sudo-password 09:00:41
@telegram_721172851:t2bot.iox71c9ok, appena ho un attimo riprovo, che adesso sono in riunione09:05:25
@telegram_73824637:t2bot.ioAndrea Ciceri
~/universe〉nixos-rebuild test --flake .#picard --target-host ccr@localhost --sudo
warning: Git tree '/home/ccr/universe' is dirty
building the system configuration...
warning: Git tree '/home/ccr/universe' is dirty
copying 0 paths...
sudo: Authentication failed, try again.
sudo: Authentication failed, try again.
sudo-rs: Maximum 3 incorrect authentication attempts
error: while running command with remote sudo, did you forget to use --ask-sudo-password?
Command 'ssh -o ControlMaster=auto -o ControlPath=/tmp/nixos-rebuild.4f0kmveu/ssh-%n -o ControlPersist=60 ccr@localhost -- sudo env NIXOS_INSTALL_BOOTLOADER=0 systemd-run -E LOCALE_ARCHIVE -E NIXOS_INSTALL_BOOTLOADER --collect --no-ask-password --pipe --quiet --service-type=exec --unit=nixos-rebuild-switch-to-configuration /nix/store/fmg4q127q3xwxlc74bnblmnv4cvslwv8-nixos-system-picard-25.11.20251031.2fb006b/bin/switch-to-configuration test' returned non-zero exit status 1.
08:57:05
@telegram_721172851:t2bot.iox71c9 sisi ssh senza passoword anche io:
[08:56:26.896 UTC] [x71c9@i7-nix-xps:~/.nx] [flakes]
└ $ nixos-rebuild switch --flake .#n97-nix-od40 --target-host x71c9@192.168.1.178 --use-remote-sudo
building the system configuration...
copying 0 paths...
[sudo] password for x71c9:
Shared connection to 192.168.1.178 closed.
[sudo] password for x71c9:
Sorry, try again.
[sudo] password for x71c9:
Shared connection to 192.168.1.178 closed.
[sudo] password for x71c9:
activating the configuration...
setting up /etc...
reloading user units for x71c9...
restarting sysinit-reactivation.target
Shared connection to 192.168.1.178 closed.
Done. The new configuration is /nix/store/3kcgk1x89y77sw0yfhp0akb79glj35nc-nixos-system-n97-nix-od40-25.05.20251027.daf6dc4
08:58:59
@telegram_721172851:t2bot.iox71c9ah ok quindi utilizzeranno quello?09:02:09
@telegram_73824637:t2bot.ioAndrea Ciceri Sto provando con switch --target-host nonroot@host --use-remote-sudo, ti dico se mi chiede la password 3 volte anche a me 08:53:29
@telegram_73824637:t2bot.ioAndrea Ciceri (e con ssh ccr@localhost mi collego senza password eh) 08:57:32
@telegram_73824637:t2bot.ioAndrea Ciceri sto provando con --target-host nonroot@localhost e non va proprio 08:55:55
@telegram_721172851:t2bot.iox71c9solo che qui ho dovuto inserire 4 volte la password perché una l'ho sbagliata08:59:19
@telegram_73824637:t2bot.ioAndrea Ciceri fai nix run nixpkgs#nixos-unstable-ng 09:02:17
@telegram_721172851:t2bot.iox71c9 e lo user è settato cosi:

  users.users.<username> = {
    isNormalUser = true;
    extraGroups = [ "wheel" ];
    initialPassword = "password123";
    openssh.authorizedKeys.keys = [
      "<chiave>"
    ];
  };
08:56:03
@telegram_73824637:t2bot.ioAndrea Ciceri ma sono su unstable aggiornato di recente 08:58:07
@telegram_73824637:t2bot.ioAndrea Cicerie' gia' il default su unstable quindi credo proprio di si09:02:52
@telegram_721172851:t2bot.iox71c9io sono su 25.05, forse è quello, ci staranno lavorando08:59:36
@telegram_73824637:t2bot.ioAndrea Cicerivorrei dirti quale ho ma non credo sia versionato08:58:00
@telegram_73824637:t2bot.ioAndrea Ciceri a me comunque nixos-rebuild test --flake .#picard --target-host ccr@localhost --sudo --ask-sudo-password sembra funzionare (nel mio caso nixos-rebuild e' il tuo nixos-rebuild-ng) 09:04:12
@telegram_73824637:t2bot.ioAndrea Ciceri se passi anche --fast te la chiave qualche volta in meno? 09:00:01
@telegram_73824637:t2bot.ioAndrea Cicerie chiede la password solo una volta09:04:36

Show newer messages


Back to Room ListRoom Version: 10