init commit

This commit is contained in:
Yan Lin 2026-02-12 07:29:04 +01:00
commit 180e80181b
15 changed files with 1018 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "fmask=0077" "dmask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.kernelModules = [ "kvm-amd" ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
imports = [
../home-default.nix
];
}

View file

@ -0,0 +1,49 @@
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
../system-default.nix
];
boot.loader = {
systemd-boot.enable = true;
systemd-boot.configurationLimit = 10;
efi.canTouchEfiVariables = true;
timeout = 3;
};
jovian.devices.steamdeck.enable = true;
jovian.steam = {
enable = true;
autoStart = true;
user = "yanlin";
};
jovian.steamos.useSteamOSConfig = true;
jovian.hardware.has.amd.gpu = true;
hardware.enableRedistributableFirmware = true;
security.rtkit.enable = true;
networking = {
hostName = "deck";
networkmanager.enable = true;
firewall.enable = false;
};
users.users.yanlin = {
extraGroups = [ "networkmanager" "wheel" "video" "audio" "input" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGmKZ0FbXhYRHVkVTeSmpPrvuG8sC8La3Yx2gWb4ncuc yanlin@imac"
];
};
environment.systemPackages = with pkgs; [
pciutils
usbutils
];
}