Formatted files

This commit is contained in:
Wekuz 2025-12-30 15:25:29 +02:00
parent a8dd1956dd
commit 71eb9ec35f
Signed by: Wekuz
GPG key ID: 2E502F2AABD32DF9
5 changed files with 83 additions and 29 deletions

View file

@ -15,7 +15,14 @@
};
};
outputs = { nixpkgs, home-manager, disko, ... }: {
outputs =
{
nixpkgs,
home-manager,
disko,
...
}:
{
nixosConfigurations = {
plexy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";

View file

@ -1,7 +1,14 @@
{ config, lib, pkgs, ... }:
{
inputs,
pkgs,
...
}:
{
imports = [ ./hardware-configuration.nix ./disko-config.nix ];
imports = [
./hardware-configuration.nix
./disko-config.nix
];
nix = {
package = pkgs.nixVersions.stable;
@ -12,7 +19,10 @@
dates = "weekly";
options = "--delete-older-than 2w";
};
settings.experimental-features = [ "nix-command" "flakes" ];
settings.experimental-features = [
"nix-command"
"flakes"
];
extraOptions = ''
min-free = 512000000
@ -30,7 +40,10 @@
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [ intel-media-driver intel-vaapi-driver ];
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
];
};
time.timeZone = "Europe/Tallinn";
@ -39,7 +52,11 @@
hostName = "plexy";
networkmanager.enable = true;
nftables.enable = true;
firewall.allowedTCPPorts = [ 22 80 443 ];
firewall.allowedTCPPorts = [
22
80
443
];
};
services = {
@ -57,7 +74,10 @@
enable = true;
dates = "weekly";
randomizedDelaySec = "30min";
flags = [ "--all" "--volumes" ];
flags = [
"--all"
"--volumes"
];
};
};
};
@ -66,7 +86,11 @@
users.users.wekuz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ];
extraGroups = [
"wheel"
"networkmanager"
"docker"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBs3aPxyJpVGytuVSO3va2WybKNFMR241o8DCJQbBEWV"
];

View file

@ -24,16 +24,25 @@
extraArgs = [ "-f" ]; # Override existing partition
subvolumes = {
"/rootfs" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/";
};
"/home" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/home";
};
"/home/wekuz" = { };
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
# TODO: /log

View file

@ -1,10 +1,22 @@
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

View file

@ -45,7 +45,9 @@
};
};
programs.zsh = { enable = true; };
programs.zsh = {
enable = true;
};
home.stateVersion = "25.11";
}