task | formating updates

This commit is contained in:
Don Harper 2025-02-23 22:47:34 -06:00
parent 16ae54de7e
commit 9050e73d27
4 changed files with 21 additions and 29 deletions

View file

@ -4,22 +4,21 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules =
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/e0e211d5-30a0-4b9e-b1ba-971cdd7a4d23"; device = "/dev/disk/by-uuid/e0e211d5-30a0-4b9e-b1ba-971cdd7a4d23";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/6957-B177"; device = "/dev/disk/by-uuid/6957-B177";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0077" "dmask=0077" ];
}; };
@ -34,5 +33,6 @@
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -2,20 +2,16 @@
with lib; with lib;
let cfg = config.roles.kmscon; let cfg = config.roles.kmscon;
in { in {
options.roles.kmscon = { options.roles.kmscon = { enable = mkEnableOption "roles kmscon"; };
enable = mkEnableOption "roles kmscon";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
services = { services = {
kmscon = { kmscon = {
enable = true; enable = true;
fonts = [ fonts = [{
{
# name = "Source Code Pro"; # name = "Source Code Pro";
name = "FiraCode Nerd Font Mono"; name = "FiraCode Nerd Font Mono";
package = pkgs.nerd-fonts.fira-code; package = pkgs.nerd-fonts.fira-code;
} }];
];
extraConfig = '' extraConfig = ''
font-size=18 font-size=18
palette=custom palette=custom

View file

@ -50,9 +50,7 @@ in {
}; };
check-nic = { check-nic = {
description = "Adjust tailscale MTU based on location"; description = "Adjust tailscale MTU based on location";
unitConfig = { unitConfig = { Type = "simple"; };
Type = "simple";
};
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
Environment = Environment =

View file

@ -2,9 +2,7 @@
with lib; with lib;
let cfg = config.roles.wine; let cfg = config.roles.wine;
in { in {
options.roles.wine = { options.roles.wine = { enable = mkEnableOption "roles wine"; };
enable = mkEnableOption "roles wine";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.don.home.packages = with pkgs; [ home-manager.users.don.home.packages = with pkgs; [
# wineWowPackages.stable # wineWowPackages.stable