mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
36 lines
882 B
Nix
36 lines
882 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
model = { type = "desktop"; private = true; };
|
|
system =
|
|
{
|
|
fileSystems =
|
|
{
|
|
mount =
|
|
{
|
|
vfat."/dev/disk/by-partlabel/one-boot" = "/boot";
|
|
btrfs."/dev/mapper/root" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
|
};
|
|
luks.auto."/dev/disk/by-partlabel/one-root" = { mapper = "root"; ssd = true; };
|
|
swap = [ "/nix/swap/swap" ];
|
|
resume = { device = "/dev/mapper/root"; offset = 4728064; };
|
|
rollingRootfs = {};
|
|
};
|
|
nixpkgs.march = "tigerlake";
|
|
};
|
|
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };
|
|
services =
|
|
{
|
|
xray.client.enable = true;
|
|
beesd."/".hashTableSizeMB = 64;
|
|
sshd = {};
|
|
kvm = {};
|
|
};
|
|
bugs = [ "xmunet" ];
|
|
};
|
|
};
|
|
}
|