diff --git a/hosts/x201/nixos/configuration.nix b/hosts/x201/nixos/configuration.nix index 8acb98d..3a445be 100644 --- a/hosts/x201/nixos/configuration.nix +++ b/hosts/x201/nixos/configuration.nix @@ -118,7 +118,9 @@ fonts = { # Enable CUPS to print documents. # services.printing.enable = true; - + services.avahi.enable = true; + services.printing.enable = true; + services.avahi.openFirewall = true; # Enable sound. sound.enable = true; diff --git a/hosts/x201/nixos/scanner.nix b/hosts/x201/nixos/scanner.nix index 94ba7ec..d212fdb 100644 --- a/hosts/x201/nixos/scanner.nix +++ b/hosts/x201/nixos/scanner.nix @@ -11,7 +11,7 @@ "libsane-dsseries" ]); services.printing.enable = true; - services.printing.drivers = [ pkgs.brlaser ]; + services.printing.drivers = [ pkgs.brlaser pkgs.hplip ]; # Enable sane and brscan4 for DSP-7055 hardware = { sane = { @@ -19,6 +19,7 @@ brscan4 = { enable = true; }; + extraBackends = [ pkgs.hplipWithPlugin ]; }; }; } diff --git a/hosts/x201/nixpkgs/home.nix b/hosts/x201/nixpkgs/home.nix index 62a7683..ea8851f 100644 --- a/hosts/x201/nixpkgs/home.nix +++ b/hosts/x201/nixpkgs/home.nix @@ -12,6 +12,9 @@ ./neovim.nix ./himalaya.nix ]; + home.stateVersion = "21.11"; + home.username = "alexandre"; + home.homeDirectory = "/home/alexandre"; home.keyboard = { layout = "fr"; variant = "bepo";