mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nixos: init vanadium by cloning carbon
This commit is contained in:
parent
96340f2e08
commit
dcadddad3a
21 changed files with 1335 additions and 0 deletions
81
nix/nixosModules/named/vanadium/default.nix
Normal file
81
nix/nixosModules/named/vanadium/default.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix # generated
|
||||
|
||||
./battery.nix
|
||||
|
||||
./audio.nix
|
||||
./connectivity.nix
|
||||
./input.nix
|
||||
|
||||
./display.nix
|
||||
./gui.nix
|
||||
|
||||
./restic.nix
|
||||
./fs.nix
|
||||
|
||||
./packages.nix
|
||||
./db.nix # M1 BDD course
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
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";
|
||||
dates = "daily";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
# Maybe this helps calibre connecting with kindle?
|
||||
services.gvfs.enable = true;
|
||||
|
||||
environment.pathsToLink = [
|
||||
"/share/fish/vendor_conf.d"
|
||||
"/share/fish/vendor_completions.d"
|
||||
"/share/fish/vendor_functions.d"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue