task | add t2 and pi1

This commit is contained in:
Don Harper 2024-09-27 07:23:42 -05:00
parent e485c0b0b6
commit 48dcf2c25d
8 changed files with 101 additions and 25 deletions

View file

@ -55,6 +55,8 @@
fred = import ./hosts/fred;
loki = import ./hosts/loki;
smaug = import ./hosts/smaug;
t2 = import ./hosts/t2;
pi1 = import ./hosts/pi1;
};
nixosConfigurations = {

View file

@ -20,6 +20,7 @@
../../home/work
];
networking.hostName = "loki";
boot.binfmt.emulatedSystems = ["aarch64-linux"];
deployment = {
tags = ["workstation"];
};

21
hosts/pi1/default.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [
inputs.stylix.nixosModules.stylix
inputs.catppuccin.nixosModules.catppuccin
./hardware-configuration.nix
../server
../themes.nix
];
networking.hostName = "pi1";
deployment = {
targetHost = "nixos";
tags = ["arm"];
};
}

39
hosts/pi1/disko.nix Normal file
View file

@ -0,0 +1,39 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/mmcblk0";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}

View file

@ -0,0 +1,33 @@
# 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 = [ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enu1u1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}

View file

@ -15,4 +15,7 @@
../wm
];
networking.hostName = "t2";
deployment = {
tags = ["arm"];
};
}

View file

@ -33,4 +33,5 @@
# networking.interfaces.wlu1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
nixpkgs.config.allowUnsupportedSystem = true;
}

View file

@ -125,31 +125,6 @@ in {
ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ENV{ID_FS_TYPE}=="ext4", ATTR{../queue/scheduler}="none"
'';
};
# kmscon = {
# enable = true;
# fonts = [
# {
# name = "Source Code Pro";
# package = pkgs.source-code-pro;
# }
# ];
# extraConfig = ''
# font-size=10
# palette=custom
# palette-black=33, 34, 44
# palette-cyan=128, 255, 234
# palette-dark-grey=182, 185, 201
# palette-green=138, 255, 128
# palette-dark-grey=65, 69, 88
# palette-light-grey=98, 103, 132
# palette-light-green=208, 255, 204
# palette-light-red=255, 212, 204
# palette-light-yellow=255, 255, 204
# palette-red=255, 149, 128
# palette-white=248, 248, 242
# palette-yellow=255, 255, 128
# '';
# };
pcscd = {
enable = true;
};
@ -279,6 +254,7 @@ in {
brightnessctl
btop
colmena
delta
espeak-classic
fwup
fwupd