Watch
1
0
Fork
You've already forked chitin
0
This commit is contained in:
asnev 2026-10-25 11:41:10 +07:00
commit 82a8c33133
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
39 changed files with 1079 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{
flake.modules.nixos.phostron = {
config,
lib,
...
}: {
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}

View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.base = {
hardware.bluetooth.enable = true;
};
}

View file

@ -0,0 +1,21 @@
{
flake.modules.nixos.phostron = {
boot = {
initrd = {
availableKernelModules = [
"nvme"
"ehci_pci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
kernelModules = [];
};
kernelModules = ["kvm-amd"];
extraModulePackages = [];
};
};
}

View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.kdePlasma = {
services.displayManager.sddm.settings.Theme.CursorSize = 18;
};
}

View file

@ -0,0 +1,28 @@
{
self,
inputs,
...
}: let
stateVersion = "26.05"; # i don't read comments!
in {
flake.modules.nixos.phostron = {lib, ...}: {
system = {inherit stateVersion;};
networking.hostName = "phostron";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
};
flake.modules.homeManager.coyote = {
home = {inherit stateVersion;};
};
flake.nixosConfigurations.phostron = inputs.nixpkgs.lib.nixosSystem {
modules = with self.modules.nixos; [
base
phostron
kdePlasma
homeManagerModule
coyote
];
};
}

View file

@ -0,0 +1,19 @@
{
flake.modules.nixos.phostron = {
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/24fb172c-c29f-40c3-ae4d-ff652358563a";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/DFC9-994A";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
};
swapDevices = [{device = "/dev/disk/by-uuid/91d96247-85c3-4e0a-93a2-5632b96179b6";}];
zramSwap.enable = true;
};
}

View file

@ -0,0 +1,9 @@
{
flake.modules.nixos.phostron = {
hardware = {
graphics.enable = true;
graphics.enable32Bit = true;
enableRedistributableFirmware = true;
};
};
}

View file

@ -0,0 +1,8 @@
{
flake.modules.nixos.phostron = {
networking = {
networkmanager.enable = true;
firewall.enable = true;
};
};
}

View file

@ -0,0 +1,13 @@
{
flake.modules.nixos.phostron = {pkgs, ...}: {
services.printing.enable = true;
services.printing.drivers = with pkgs; [
epson-escpr
];
hardware.sane.enable = true;
hardware.sane.extraBackends = with pkgs; [
epsonscan2
];
};
}

View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.phostron = {
services.fstrim.enable = true;
};
}