task | add t2 and pi1
This commit is contained in:
parent
e485c0b0b6
commit
48dcf2c25d
8 changed files with 101 additions and 25 deletions
|
|
@ -55,6 +55,8 @@
|
||||||
fred = import ./hosts/fred;
|
fred = import ./hosts/fred;
|
||||||
loki = import ./hosts/loki;
|
loki = import ./hosts/loki;
|
||||||
smaug = import ./hosts/smaug;
|
smaug = import ./hosts/smaug;
|
||||||
|
t2 = import ./hosts/t2;
|
||||||
|
pi1 = import ./hosts/pi1;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
../../home/work
|
../../home/work
|
||||||
];
|
];
|
||||||
networking.hostName = "loki";
|
networking.hostName = "loki";
|
||||||
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
deployment = {
|
deployment = {
|
||||||
tags = ["workstation"];
|
tags = ["workstation"];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
21
hosts/pi1/default.nix
Normal file
21
hosts/pi1/default.nix
Normal 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
39
hosts/pi1/disko.nix
Normal 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 = "/";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
33
hosts/pi1/hardware-configuration.nix
Normal file
33
hosts/pi1/hardware-configuration.nix
Normal 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";
|
||||||
|
}
|
||||||
|
|
@ -15,4 +15,7 @@
|
||||||
../wm
|
../wm
|
||||||
];
|
];
|
||||||
networking.hostName = "t2";
|
networking.hostName = "t2";
|
||||||
|
deployment = {
|
||||||
|
tags = ["arm"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,4 +33,5 @@
|
||||||
# networking.interfaces.wlu1.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlu1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
|
nixpkgs.config.allowUnsupportedSystem = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
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 = {
|
pcscd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -279,6 +254,7 @@ in {
|
||||||
brightnessctl
|
brightnessctl
|
||||||
btop
|
btop
|
||||||
colmena
|
colmena
|
||||||
|
delta
|
||||||
espeak-classic
|
espeak-classic
|
||||||
fwup
|
fwup
|
||||||
fwupd
|
fwupd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue