Commit f450267
Changed files (6)
hosts
chaser-kevin
modules
hosts
chaser-kevin
services
mihomo
hosts/chaser-kevin/default.nix
@@ -2,20 +2,8 @@
nixos-hardware,
myvars,
...
-}:
-#############################################################
-#
-# Kevin - NixOS running on ThinkBook 16P G5 IRX
-# My main computer, with I7-14650HX + RTX4060 Laptop GPU + 48GB memory, for daily use.
-#
-#############################################################
-let
+}: let
hostName = "kevin";
in {
- imports = [
- ./hardware-configuration.nix
- ./miscs.nix
- ];
-
modules.currentHost = hostName;
}
hosts/chaser-kevin/hardware-configuration.nix
@@ -1,17 +0,0 @@
-# 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")
- ];
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
hosts/chaser-kevin/miscs.nix
@@ -1,6 +0,0 @@
-{
- services.kmscon.extraConfig = "font-size=22";
-
- # Mihomo
- services.mihomo.enable = true;
-}
modules/hosts/chaser-kevin/default.nix
@@ -4,6 +4,12 @@
inputs,
...
}: {
+ #############################################################
+ #
+ # Kevin - NixOS running on ThinkBook 16P G5 IRX
+ # My main computer, with I7-14650HX + RTX4060 Laptop GPU + 48GB memory, for daily use.
+ #
+ #############################################################
flake.meta.host.hosts.kevin = {
system = "x86_64-linux";
hostPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOO9CyAqGo/WbJkncrt1a9jxS1E+hd550SC4A08I/l0/ root@kevin";
@@ -22,6 +28,7 @@
map
(n: config.flake.modules.nixos."${config.flake.meta.service.prefix}${n}")
[
+ "mihomo"
]
)
++ [
modules/hosts/chaser-kevin/hardware.nix
@@ -11,6 +11,9 @@
common-pc-laptop-ssd
];
+ hardware.enableRedistributableFirmware = true;
+ hardware.cpu.intel.updateMicrocode = true;
+
# NVIDIA
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
@@ -67,5 +70,7 @@
# √(3200² + 2000²) px / 16 in ≃ 235 dpi
services.xserver.dpi = 235;
+
+ services.kmscon.extraConfig = "font-size=20";
};
}
modules/services/mihomo/default.nix
@@ -0,0 +1,5 @@
+{
+ flake.modules.nixos."services/mihomo" = _: {
+ services.mihomo.enable = true;
+ };
+}