mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: move all nixos configuration to nixosModules
export them
This commit is contained in:
parent
ce26e04e9c
commit
30bbb00f6b
17 changed files with 8 additions and 1 deletions
72
nix/nixosModules/named/carbon/default.nix
Normal file
72
nix/nixosModules/named/carbon/default.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix # generated
|
||||
|
||||
./battery.nix
|
||||
./audio.nix
|
||||
./networking.nix
|
||||
./bluetooth.nix
|
||||
./display.nix
|
||||
./scanner.nix
|
||||
|
||||
./restic.nix
|
||||
./fs.nix
|
||||
|
||||
./packages.nix
|
||||
|
||||
./gui.nix
|
||||
|
||||
./db.nix # M1 BDD course
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
# related issues
|
||||
# https://unix.stackexchange.com/questions/20483/how-to-find-which-process-is-causing-high-cpu-usage
|
||||
# https://unix.stackexchange.com/questions/588018/kworker-thread-kacpid-notify-kacpid-hogging-60-70-of-cpu
|
||||
# https://askubuntu.com/questions/1275749/acpi-event-69-made-my-system-unusable
|
||||
boot.kernelParams = [
|
||||
# Happens after waking up
|
||||
"acpi_mask_gpe=0x69" # very high count
|
||||
|
||||
# # This bricks bluetooth ?
|
||||
# "acpi_mask_gpe=0x16"
|
||||
];
|
||||
|
||||
nix.settings.trusted-users = [
|
||||
"root"
|
||||
"leana"
|
||||
];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 90d";
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
sshconfig = {
|
||||
file = ../../secrets/sshconfig.age;
|
||||
path = "/home/leana/.ssh/config";
|
||||
mode = "644";
|
||||
owner = "leana";
|
||||
};
|
||||
|
||||
wpa_password.file = ../../secrets/wpa_password.age;
|
||||
wireguard_priv.file = ../../secrets/wireguard_priv.age;
|
||||
wireguard_psk.file = ../../secrets/wireguard_psk.age;
|
||||
|
||||
restic_backblaze_pwd.file = ../../secrets/restic_backblaze_pwd.age;
|
||||
restic_backblaze_repo.file = ../../secrets/restic_backblaze_repo.age;
|
||||
restic_backblaze_env.file = ../../secrets/restic_backblaze_env.age;
|
||||
};
|
||||
|
||||
hardware.keyboard.zsa.enable = true;
|
||||
|
||||
services.fwupd.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue