feat: add ideapad host

This commit is contained in:
toast 2026-04-30 22:50:41 +09:00
parent bf7e249d5b
commit 7cfc801165
10 changed files with 152 additions and 5 deletions

View file

@ -0,0 +1,35 @@
{ inputs, ... }:
{
imports =
[
inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote
./hardware-configuration.nix
] ++ [
../../modules/core/packages.nix
../../modules/core/time.nix
../../modules/core/sops.nix
../../modules/graphical/environment.nix
../../modules/graphical/greetd.nix
../../modules/graphical/hyprland.nix
../../modules/graphical/thunar.nix
../../modules/graphical/xfconf.nix
../../modules/graphical/xserver.nix
../../modules/programs/nh.nix
../../modules/programs/nix-ld.nix
../../modules/programs/ssh.nix
../../modules/programs/ydotool.nix
../../modules/programs/zsh.nix
../../modules/services/tailscale.nix
../../modules/services/udisks2.nix
../../modules/services/zerotierone.nix
../../modules/services/openssh.nix
./modules/boot.nix
./modules/network.nix
./modules/users.nix
];
system.stateVersion = "25.11";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}

View file

@ -0,0 +1,34 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/da94d155-0fae-4f33-bca3-cdc55aabe718";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8EC8-E915";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/3d1e5589-d677-4c37-803e-45e2866d59b4"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
{
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "ntfs" ];
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
}

View file

@ -0,0 +1,5 @@
{
networking.hostName = "ideapad";
networking.networkmanager.enable = true;
networking.firewall.enable = false;
}

View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
users.users.toast = {
isNormalUser = true;
description = "toast";
extraGroups = [ "networkmanager" "wheel" "ydotool" ];
packages = with pkgs; [];
shell = pkgs.zsh;
};
}