diff --git a/flake.nix b/flake.nix index 471d97b..1149f1a 100644 --- a/flake.nix +++ b/flake.nix @@ -63,11 +63,16 @@ hostname = "miniding"; extraSauce = [ ./user/host-specific/miniding ]; }; + daniel-pingbox = mkUserConf { + hostname = "pingbox"; + extraSauce = [ ./user/host-specific/pingbox ]; + }; }; nixosConfigurations = { dingbox = hostSystem { hostname = "dingbox"; }; miniding = hostSystem { hostname = "miniding"; }; + pingbox = hostSystem { hostname = "pingbox"; }; dingserver = hostSystem { hostname = "dingserver"; }; }; }; diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 2fbbcc6..03c9615 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -2,7 +2,7 @@ { # Use the systemd-boot EFI boot loader. - boot.kernelPackages = pkgs.linuxKernel.packages.linux_5_15; + boot.kernelPackages = pkgs.linuxPackages_latest; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/hosts/pingbox/configuration.nix b/hosts/pingbox/configuration.nix new file mode 100644 index 0000000..9b14f3b --- /dev/null +++ b/hosts/pingbox/configuration.nix @@ -0,0 +1,37 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + ./hardware-configuration.nix + ../common + ../common/graphical + ]; + + powerManagement = { + enable = true; + powertop.enable = true; + }; + + networking = { + hostName = "pingbox"; + interfaces.wlp170s0.useDHCP = true; + }; + + services.fprintd.enable = true; + + services.xserver = { + dpi = 144; + + libinput.touchpad = { + naturalScrolling = true; + tapping = true; + }; + }; + +} + diff --git a/hosts/pingbox/hardware-configuration.nix b/hosts/pingbox/hardware-configuration.nix new file mode 100644 index 0000000..1638aa0 --- /dev/null +++ b/hosts/pingbox/hardware-configuration.nix @@ -0,0 +1,38 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8a102d93-531a-4b23-9777-42b368412d38"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/7678-867A"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # The global useDHCP flag is deprecated, therefore explicitly set to false here. + # Per-interface useDHCP will be mandatory in the future, so this generated config + # replicates the default behaviour. + networking.useDHCP = lib.mkDefault false; + networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +} diff --git a/user/host-specific/pingbox/default.nix b/user/host-specific/pingbox/default.nix new file mode 100644 index 0000000..a37edec --- /dev/null +++ b/user/host-specific/pingbox/default.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ...}: + +{ + programs.kitty.font.size = 19; + + services.picom = { + enable = true; + vSync = true; + }; +} diff --git a/user/host-specific/pingbox/wallpapers/lock.png b/user/host-specific/pingbox/wallpapers/lock.png new file mode 100644 index 0000000..a3dbf64 Binary files /dev/null and b/user/host-specific/pingbox/wallpapers/lock.png differ diff --git a/user/host-specific/pingbox/wallpapers/wallpaper.jpg b/user/host-specific/pingbox/wallpapers/wallpaper.jpg new file mode 100644 index 0000000..4d164e4 Binary files /dev/null and b/user/host-specific/pingbox/wallpapers/wallpaper.jpg differ