diff --git a/hosts/randolph/configuration.nix b/hosts/randolph/configuration.nix index 4650d6e..72d8d72 100644 --- a/hosts/randolph/configuration.nix +++ b/hosts/randolph/configuration.nix @@ -7,6 +7,7 @@ { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ../../snippets/samba.nix ]; ################################################ @@ -17,9 +18,20 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelPackages = pkgs.linuxPackages_latest; + # boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_6.override { + # argsOverride = rec { + # src = pkgs.fetchurl { + # url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; + # sha256 = "sha256-2NlUBPje63/2mSwN+FUCUGLp6Bgrym2qJ+8uknXSd0k="; + # }; + # version = "6.12.23"; + # modDirVersion = "6.12.23"; + # }; + # }); + boot.kernelParams = [ - "amdgpu.sg_display=0" + # "amdgpu.sg_display=0" + # "amdgpu.dcdebugmask=0x10" ]; # Enable flakes. @@ -85,6 +97,18 @@ # Enable graphics. hardware.graphics.enable = true; + # hardware.graphics.package = ( + # pkgs.mesa.overrideAttrs rec { + # version = "24.3.4"; + + # src = pkgs.fetchFromGitLab { + # domain = "gitlab.freedesktop.org"; + # owner = "mesa"; + # repo = "mesa"; + # rev = "mesa-${version}"; + # hash = "sha256-1RUHbTgcCxdDrWjqB0EG4Ny/nwdjQHHpyPauiW/yogU="; + # }; + # }); # Allow users in group "video" to modify backlight # services.udev.extraRules = '' @@ -95,6 +119,12 @@ # Enable CUPS to print documents. services.printing.enable = true; + # Enable SANE for scanning. + hardware.sane = { + enable = true; + extraBackends = [ pkgs.epkowa ]; + }; + # Enable udisks (handles storage devices, e.g. usb flash drives) services.udisks2.enable = true; @@ -125,7 +155,7 @@ users.users.alice = { isNormalUser = true; home = "/home/alice"; - extraGroups = [ "wheel" "networkmanager" "video" ] + extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" ] ++ [ "adbusers" ]; # Enable 'sudo' for the user. initialPassword = "manysuchcases"; shell = pkgs.zsh; diff --git a/snippets/samba.nix b/snippets/samba.nix new file mode 100644 index 0000000..24bdf27 --- /dev/null +++ b/snippets/samba.nix @@ -0,0 +1,7 @@ +# for configuration.nix +{ config, lib, pkgs, ... }: +{ + services.samba = { + enable = true; + }; +}