This commit is contained in:
Ranomier 2024-10-15 21:04:30 +02:00
parent 63c50cfa2a
commit a83e3592b2
6 changed files with 52 additions and 49 deletions

View file

@ -0,0 +1,67 @@
{
pkgs,
overlays,
inputs,
...
}: {
#MANPAGER='nvim +Man!'
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
# Allow unfree packages
#unstable.config.allowUnfree = true;
nixpkgs.config.allowUnfree = true;
#nixpkgs.overlays = [ overlays.unstable-packages ];
nix.settings.experimental-features = ["nix-command" "flakes"];
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth
# and committed to doing right by its community.
nix.package = pkgs.lix;
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
#nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
./hardware-configuration.nix
../../modules/basic_system_config.nix
../../modules/networking.nix
../../modules/boot_theming.nix
../../modules/specific_hardware/scan_and_print.nix
../../modules/specific_hardware/fwupd.nix
../../modules/specific_hardware/bluetooth.nix
../../modules/sec_auth/firejail.nix
../../modules/sec_auth/login-manager.nix
../../modules/sec_auth/users_and_permissions.nix
../../modules/sec_auth/ssh.nix
../../modules/software/software.nix
../../modules/software/virt.nix
../../modules/software/game.nix
../../modules/software/audio_video.nix
../../modules/software/obs-studio.nix
../../modules/wm_and_de/hyprland.nix
../../modules/pkg_mgrmnt/flatpak.nix
../../modules/pkg_mgrmnt/podman.nix
../../modules/pkg_mgrmnt/store_pkg_file.nix
../../modules/software/nix-helper/index.nix
../../modules/software/nix-helper/doc.nix
../../modules/software/nix-helper/nix-ld.nix
../../modules/software/browser/firefox.nix
../../modules/software/browser/brave.nix
];
}

View file

@ -0,0 +1,55 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/c772918e-3832-45ae-8c97-05b3d837ed8b";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-3b194756-e29b-425a-b088-0a0468840011".device = "/dev/disk/by-uuid/3b194756-e29b-425a-b088-0a0468840011";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5DF2-A721";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
swapDevices = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.blacklistedKernelModules = [ "acpi-cpufreq" ];
boot.kernelParams = [
"amd_pstate=active"
];
#services.auto-epp.enable = true;
powerManagement.enable = true;
powerManagement.powertop.enable = true;
services.tlp = {
enable = true;
settings = {
TLP_DEFAULT_MODE = "BAT";
TLP_PERSISTENT_DEFAULT = 1;
};
};
}