From f4f75834a9fc770397b5cf2464678cb700cf91e3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 6 Jun 2023 15:42:11 +0800 Subject: [PATCH] use nixos 23.05 base system Older ones don't work on new NUCs. --- final/configuration.nix | 4 ++-- final/flake.nix | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/final/configuration.nix b/final/configuration.nix index 5080e8e..8cefd58 100644 --- a/final/configuration.nix +++ b/final/configuration.nix @@ -47,7 +47,7 @@ imagemagick firefox chromium - (python3.withPackages(ps: with ps; [ + (artiq.inputs.nixpkgs.legacyPackages.x86_64-linux.python3.withPackages(ps: with ps; [ numpy scipy matplotlib @@ -76,7 +76,7 @@ hardware.opengl.driSupport = true; services.openssh.enable = true; - services.openssh.passwordAuthentication = false; + services.openssh.settings.PasswordAuthentication = false; sound.enable = true; hardware.pulseaudio.enable = true; diff --git a/final/flake.nix b/final/flake.nix index 9bcd5a1..76e52da 100644 --- a/final/flake.nix +++ b/final/flake.nix @@ -1,7 +1,8 @@ { + inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05; inputs.artiq.url = git+https://github.com/m-labs/artiq.git?ref=release-7; - outputs = { self, artiq }: { - nixosConfigurations.artiq = artiq.inputs.nixpkgs.lib.nixosSystem { + outputs = { self, nixpkgs, artiq }: { + nixosConfigurations.artiq = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit artiq; }; modules = [ ./configuration.nix ];