Add pingbox config
This commit is contained in:
@@ -63,11 +63,16 @@
|
|||||||
hostname = "miniding";
|
hostname = "miniding";
|
||||||
extraSauce = [ ./user/host-specific/miniding ];
|
extraSauce = [ ./user/host-specific/miniding ];
|
||||||
};
|
};
|
||||||
|
daniel-pingbox = mkUserConf {
|
||||||
|
hostname = "pingbox";
|
||||||
|
extraSauce = [ ./user/host-specific/pingbox ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
dingbox = hostSystem { hostname = "dingbox"; };
|
dingbox = hostSystem { hostname = "dingbox"; };
|
||||||
miniding = hostSystem { hostname = "miniding"; };
|
miniding = hostSystem { hostname = "miniding"; };
|
||||||
|
pingbox = hostSystem { hostname = "pingbox"; };
|
||||||
dingserver = hostSystem { hostname = "dingserver"; };
|
dingserver = hostSystem { hostname = "dingserver"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
# Use the systemd-boot EFI boot loader.
|
# 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.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|||||||
37
hosts/pingbox/configuration.nix
Normal file
37
hosts/pingbox/configuration.nix
Normal file
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
38
hosts/pingbox/hardware-configuration.nix
Normal file
38
hosts/pingbox/hardware-configuration.nix
Normal file
@@ -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;
|
||||||
|
}
|
||||||
10
user/host-specific/pingbox/default.nix
Normal file
10
user/host-specific/pingbox/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.kitty.font.size = 19;
|
||||||
|
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
vSync = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
BIN
user/host-specific/pingbox/wallpapers/lock.png
Normal file
BIN
user/host-specific/pingbox/wallpapers/lock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 411 KiB |
BIN
user/host-specific/pingbox/wallpapers/wallpaper.jpg
Normal file
BIN
user/host-specific/pingbox/wallpapers/wallpaper.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 665 KiB |
Reference in New Issue
Block a user