mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-04 07:59:40 +00:00
nix: isolate vanadium configuration to a file
This commit is contained in:
parent
f837645c37
commit
038c6c0829
3 changed files with 145 additions and 106 deletions
61
nix/nixosModules/named/vanadium/_default.nix
Normal file
61
nix/nixosModules/named/vanadium/_default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix # generated
|
||||
|
||||
./battery.nix
|
||||
|
||||
./audio.nix
|
||||
./connectivity.nix
|
||||
./input.nix
|
||||
|
||||
./display.nix
|
||||
./gui.nix
|
||||
|
||||
./restic.nix
|
||||
./fs.nix
|
||||
|
||||
./packages.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
||||
boot.kernelParams = [
|
||||
# https://community.frame.work/t/stability-issues-random-crashes-reboots-and-boot-freezes/62675/4
|
||||
"pcie_aspm=off"
|
||||
];
|
||||
|
||||
nix.gc.automatic = true;
|
||||
|
||||
age.secrets = {
|
||||
wpa_password.file = ../../../secrets/wpa_password.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;
|
||||
|
||||
four_pwd.file = ../../../secrets/four_pwd.age;
|
||||
restic_four_pwd.file = ../../../secrets/restic_four_pwd.age;
|
||||
|
||||
sgbk_pwd.file = ../../../secrets/sgbk_pwd.age;
|
||||
restic_sgbk_pwd.file = ../../../secrets/restic_sgbk_pwd.age;
|
||||
|
||||
two_pwd.file = ../../../secrets/two_pwd.age;
|
||||
};
|
||||
|
||||
services.fwupd.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