rename tunyon to inkvine and free tunyon name

This commit is contained in:
twoneis 2024-07-23 00:16:58 +02:00
parent 058d8d16df
commit fc4ee40323
7 changed files with 31 additions and 130 deletions

View file

@ -1,7 +1,9 @@
{ pkgs, config, ... }: { { lib, config, pkgs, ... }: let
inherit (lib) mkDefault;
in {
imports = [ imports = [
./options.nix
./disks.nix ./disks.nix
./options.nix
]; ];
nixpkgs = { nixpkgs = {
@ -14,17 +16,18 @@
boot = { boot = {
initrd = { initrd = {
availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
luks.devices.root.device = "/dev/disk/by-uuid/${config.disks.crypt}"; luks.devices.root.device = "/dev/disk/by-uuid/${config.disks.crypt}";
}; };
kernelModules = [ "kvm-amd" ];
kernelModules = [ "kvm-intel" ];
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
loader = { loader = {
systemd-boot = { systemd-boot = {
enable = true; enable = mkDefault true;
editor = false;
}; };
timeout = 1;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
}; };
@ -43,6 +46,13 @@
device = "/dev/disk/by-uuid/${config.disks.root}"; device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ]; options = [ "subvol=nix" "compress=zstd" "noatime" ];
neededForBoot = true;
};
"/persist" = {
device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" "noatime" ];
neededForBoot = true;
}; };
"/swap" = { "/swap" = {
device = "/dev/disk/by-uuid/${config.disks.root}"; device = "/dev/disk/by-uuid/${config.disks.root}";
@ -53,14 +63,14 @@
swapDevices = [ { device = "/swap/swapfile"; } ]; swapDevices = [ { device = "/swap/swapfile"; } ];
services = { services = {
thermald.enable = true; fwupd.enable = true;
upower.enable = true; power-profiles-daemon.enable = true;
}; };
hardware = { hardware = {
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
enableAllFirmware = true; enableAllFirmware = true;
cpu.intel.updateMicrocode = true; cpu.amd.updateMicrocode = true;
graphics = { graphics = {
enable = true; enable = true;

View file

@ -1,7 +1,7 @@
{ ... }: { { ... }: {
disks = { disks = {
crypt = "747ae319-f189-44f5-9737-a42672e2c02d"; boot = "BC3B-2104";
boot = "4672-C1A9"; crypt = "8c2e23a2-301a-483d-9331-afc982082c8a";
root = "04255623-c061-4cf0-89fa-b3d8eb239d59"; root = "aae3c9f7-579a-48b8-bf20-5c4ae84a7a4a";
}; };
} }

View file

@ -5,7 +5,9 @@
withGames = true; withGames = true;
hwmonPath = "/sys/class/hwmon/hwmon4/temp1_input"; withVM = true;
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
stateVersion = "24.05"; stateVersion = "24.05";
hmStateVersion = "24.11"; hmStateVersion = "24.11";

View file

@ -1,80 +0,0 @@
{ lib, config, pkgs, ... }: let
inherit (lib) mkDefault;
in {
imports = [
./disks.nix
./options.nix
];
nixpkgs = {
hostPlatform = "x86_64-linux";
};
networking = {
hostName = "tunyon";
};
boot = {
initrd = {
availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
luks.devices.root.device = "/dev/disk/by-uuid/${config.disks.crypt}";
};
kernelModules = [ "kvm-amd" ];
kernelPackages = pkgs.linuxPackages_zen;
loader = {
systemd-boot = {
enable = mkDefault true;
editor = false;
};
timeout = 1;
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/${config.disks.boot}";
fsType = "vfat";
};
"/" = {
device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "noatime" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ];
neededForBoot = true;
};
"/persist" = {
device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" "noatime" ];
neededForBoot = true;
};
"/swap" = {
device = "/dev/disk/by-uuid/${config.disks.root}";
fsType = "btrfs";
options = [ "subvol=swap" "noatime" ];
};
};
swapDevices = [ { device = "/swap/swapfile"; } ];
services = {
fwupd.enable = true;
power-profiles-daemon.enable = true;
};
hardware = {
enableRedistributableFirmware = true;
enableAllFirmware = true;
cpu.amd.updateMicrocode = true;
graphics = {
enable = true;
enable32Bit = true;
};
};
}

View file

@ -1,7 +0,0 @@
{ ... }: {
disks = {
boot = "BC3B-2104";
crypt = "8c2e23a2-301a-483d-9331-afc982082c8a";
root = "aae3c9f7-579a-48b8-bf20-5c4ae84a7a4a";
};
}

View file

@ -1,14 +0,0 @@
{ ... }: {
full = true;
withNiri = true;
withGames = true;
withVM = true;
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
stateVersion = "24.05";
hmStateVersion = "24.11";
}

View file

@ -38,9 +38,10 @@ in {
] ++ modules; ] ++ modules;
}; };
# Lenovo Thinkpad T540p # Framework Laptop 13
# Intel i7-4710MQ # AMD Ryzen 5 7640U
# 8GB RAM # AMD Radeon 760M
# 16GB RAM
inkvine = nixpkgs.lib.nixosSystem { inkvine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
@ -51,18 +52,7 @@ in {
] ++ modules; ] ++ modules;
}; };
# Framework Laptop 13 # VM for luks-on-sleep
# AMD Ryzen 5 7640U
# AMD Radeon 760M
# 16GB RAM
tunyon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
./devices/tunyon
] ++ modules;
};
}; };
} }