mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: refactor modules pass 2
This commit is contained in:
parent
ec7246e524
commit
1716faf2cd
19 changed files with 11 additions and 11 deletions
70
nix/configurations/vanadium/nixos/default.nix
Normal file
70
nix/configurations/vanadium/nixos/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{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"
|
||||
|
||||
# for plymouth
|
||||
"quiet"
|
||||
];
|
||||
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
themePackages = [pkgs.plymouth-blahaj-theme];
|
||||
theme = "blahaj";
|
||||
};
|
||||
|
||||
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