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,21 +15,28 @@
}; };
}; };
outputs = { nixpkgs, home-manager, disko, ... }: { outputs =
nixosConfigurations = { {
plexy = nixpkgs.lib.nixosSystem { nixpkgs,
system = "x86_64-linux"; home-manager,
modules = [ disko,
./hosts/plexy ...
home-manager.nixosModules.home-manager }:
{ {
home-manager.useGlobalPkgs = true; nixosConfigurations = {
home-manager.useUserPackages = true; plexy = nixpkgs.lib.nixosSystem {
home-manager.users.wekuz = import ./hosts/plexy/home.nix; system = "x86_64-linux";
} modules = [
disko.nixosModules.disko ./hosts/plexy
]; home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wekuz = import ./hosts/plexy/home.nix;
}
disko.nixosModules.disko
];
};
}; };
}; };
};
} }

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

View file

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

View file

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

View file

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