mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Add altk host
This commit is contained in:
parent
906c606e36
commit
148af87194
6 changed files with 62 additions and 1 deletions
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.
Loading…
Add table
Add a link
Reference in a new issue