flake/hosts/aristotle/default.nix
Guanran Wang 340f42cf17
treewide: update
I honestly have no idea how to commit this pile of stuff one by one...
2024-05-24 01:52:24 +08:00

71 lines
1.8 KiB
Nix

{
pkgs,
inputs,
config,
lib,
...
}: {
imports = [
# OS
../../nixos/profiles/laptop
../../nixos/profiles/common/opt-in/clash-meta-client
../../nixos/profiles/common/opt-in/gaming
# Hardware
./hardware-configuration.nix
./anti-feature.nix
../../nixos/profiles/common/opt-in/lanzaboote.nix
../../nixos/profiles/common/opt-in/impermanence.nix
../../nixos/profiles/common/opt-in/disko.nix
];
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "aristotle";
time.timeZone = "Asia/Shanghai";
_module.args.disks = ["/dev/nvme0n1"]; # Disko
system.stateVersion = "23.11";
services.tailscale = {
enable = true;
openFirewall = true;
};
# Stuff that I only want on my main machine
home-manager.users.guanranwang = {
imports = map (n: ../../home/applications/${n}) [
"spotify/spicetify.nix"
"thunderbird"
"ydict"
];
home.packages = with pkgs;
[
amberol
fractal
gnome.gnome-calculator
hyperfine
mousai
]
++ (with inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.scripts; [
lofi
]);
programs.obs-studio.enable = true;
};
# for udev rules
programs.adb.enable = true;
# fucking hell
programs.anime-game-launcher.enable = true;
# FIXME:
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "555.42.02";
sha256_64bit = "sha256-k7cI3ZDlKp4mT46jMkLaIrc2YUx1lh1wj/J4SVSHWyk=";
sha256_aarch64 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
openSha256 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
settingsSha256 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
persistencedSha256 = lib.fakeSha256;
};
}