mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Add altk host
This commit is contained in:
parent
906c606e36
commit
148af87194
6 changed files with 62 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
!hosts/
|
!hosts/
|
||||||
|
|
||||||
|
!hosts/altk/
|
||||||
|
|
||||||
!hosts/cube/
|
!hosts/cube/
|
||||||
!hosts/cube/acme/
|
!hosts/cube/acme/
|
||||||
!hosts/cube/forgejo/
|
!hosts/cube/forgejo/
|
||||||
|
|
23
hosts/altk/default.nix
Normal file
23
hosts/altk/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, ... }: with lib; merge
|
||||||
|
|
||||||
|
(systemConfiguration {
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Istanbul";
|
||||||
|
|
||||||
|
secrets.saidPassword.file = ./password.said.age;
|
||||||
|
|
||||||
|
users.users = {
|
||||||
|
root.hashedPasswordFile = config.secrets.saidPassword.path;
|
||||||
|
|
||||||
|
said = sudoUser (desktopUser {
|
||||||
|
description = "Said";
|
||||||
|
hashedPasswordFile = config.secrets.saidPassword.path;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(homeConfiguration {
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
})
|
35
hosts/altk/hardware.nix
Normal file
35
hosts/altk/hardware.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, lib, ... }: with lib;
|
||||||
|
|
||||||
|
systemConfiguration {
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot = enabled {
|
||||||
|
editor = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"ahci"
|
||||||
|
"ehci_pci"
|
||||||
|
"sd_mod"
|
||||||
|
"sr_mod"
|
||||||
|
"usb_storage"
|
||||||
|
"usbhid"
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-label/root";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems.${config.boot.loader.efi.efiSysMountPoint} = {
|
||||||
|
device = "/dev/disk/by-label/boot";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
}
|
BIN
hosts/altk/id.age
Normal file
BIN
hosts/altk/id.age
Normal file
Binary file not shown.
BIN
hosts/altk/password.said.age
Normal file
BIN
hosts/altk/password.said.age
Normal file
Binary file not shown.
3
keys.nix
3
keys.nix
|
@ -1,5 +1,6 @@
|
||||||
let
|
let
|
||||||
keys = {
|
keys = {
|
||||||
|
altk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo said@altk";
|
||||||
cube = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINMkCJeHcD0SIOZ4HkyF6rqUmbvlKhSha3HWMZ0hbIjp rgb@cube";
|
cube = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINMkCJeHcD0SIOZ4HkyF6rqUmbvlKhSha3HWMZ0hbIjp rgb@cube";
|
||||||
disk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItpYQ3Pz6zFifKXvFX7xAC8aby9RW/m5PkW8T9SOee4 floppy@disk";
|
disk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItpYQ3Pz6zFifKXvFX7xAC8aby9RW/m5PkW8T9SOee4 floppy@disk";
|
||||||
enka = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo said@enka";
|
enka = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBVkWUQ6Z4OK539tore/R5wnueNPPaX532RUAld8UOCo said@enka";
|
||||||
|
@ -7,6 +8,6 @@ let
|
||||||
nine = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJDqnItmvXZMTSwzbalr+9jzS4kSJm5PWEpI8GOpebF seven@nine";
|
nine = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJDqnItmvXZMTSwzbalr+9jzS4kSJm5PWEpI8GOpebF seven@nine";
|
||||||
};
|
};
|
||||||
in keys // {
|
in keys // {
|
||||||
admins = [ keys.enka keys.pala ];
|
admins = with keys; [ altk enka pala ];
|
||||||
all = builtins.attrValues keys;
|
all = builtins.attrValues keys;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue