mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: vicinae, update servers
This commit is contained in:
parent
0e91b2184d
commit
edd507c0ec
20 changed files with 188 additions and 187 deletions
|
|
@ -69,7 +69,6 @@ _: let
|
|||
};
|
||||
"localhost" = vHost;
|
||||
};
|
||||
security.acme.defaults.email = "acme@inskip.me";
|
||||
system.stateVersion = "23.11";
|
||||
};
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -1,157 +0,0 @@
|
|||
_: let
|
||||
hostConfig = {
|
||||
tree,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.attrsets) nameValuePair listToAttrs;
|
||||
datasets = [
|
||||
"root"
|
||||
"nix"
|
||||
"games"
|
||||
"home"
|
||||
"var"
|
||||
];
|
||||
datasetEntry = dataset:
|
||||
nameValuePair (
|
||||
if dataset == "root"
|
||||
then "/"
|
||||
else "/${dataset}"
|
||||
) {
|
||||
device = "zpool/${dataset}";
|
||||
fsType = "zfs";
|
||||
options = ["zfsutil"];
|
||||
};
|
||||
datasetEntries = listToAttrs (map datasetEntry datasets);
|
||||
|
||||
drives = {
|
||||
boot = rec {
|
||||
raw = "/dev/disk/by-uuid/BEDB-489E";
|
||||
result = {
|
||||
device = raw;
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
swap = rec {
|
||||
raw = "/dev/disk/by-partuuid/cba02f4a-a90d-44e3-81a8-46bb4500112e";
|
||||
result = {
|
||||
device = raw;
|
||||
randomEncryption = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
imports =
|
||||
(with tree.nixos.hardware; [
|
||||
])
|
||||
++ (with tree.nixos.profiles; [
|
||||
graphical
|
||||
])
|
||||
++ (with tree.nixos.environments; [
|
||||
niri
|
||||
]);
|
||||
config = {
|
||||
home-manager.users.kat = {
|
||||
programs = {
|
||||
konawall-py.settings = {
|
||||
source = "konachan";
|
||||
tags = [
|
||||
"rating:s"
|
||||
];
|
||||
};
|
||||
};
|
||||
imports =
|
||||
(with tree.home.profiles; [
|
||||
graphical
|
||||
])
|
||||
++ (with tree.home.environments; [
|
||||
niri
|
||||
]);
|
||||
};
|
||||
|
||||
fileSystems =
|
||||
datasetEntries
|
||||
// {
|
||||
"/boot" = drives.boot.result;
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
drives.swap.result
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
grub.useOSProber = true;
|
||||
systemd-boot.enable = lib.mkForce false;
|
||||
};
|
||||
extraModprobeConfig = "options snd_hda_intel power_save=0";
|
||||
extraModulePackages = [config.boot.kernelPackages.v4l2loopback.out];
|
||||
};
|
||||
|
||||
services.scx = {
|
||||
enable = true;
|
||||
package = pkgs.scx_git.full;
|
||||
scheduler = "scx_lavd";
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
|
||||
programs.ssh.extraConfig = ''
|
||||
Host daiyousei-build
|
||||
HostName 140.238.156.121
|
||||
User root
|
||||
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
|
||||
'';
|
||||
|
||||
nix = {
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "daiyousei-build";
|
||||
system = "aarch64-linux";
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 100;
|
||||
speedFactor = 1;
|
||||
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
|
||||
mandatoryFeatures = [];
|
||||
}
|
||||
];
|
||||
distributedBuilds = true;
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
};
|
||||
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
services = {
|
||||
printing.enable = true;
|
||||
syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
user = "kat";
|
||||
dataDir = "/home/kat";
|
||||
};
|
||||
hardware.bolt.enable = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
supportedFilesystems = ["ntfs" "xfs"];
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostId = "9ef75c48";
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
};
|
||||
in {
|
||||
arch = "x86_64";
|
||||
ci.enable = false; # Closure too large
|
||||
type = "NixOS";
|
||||
modules = [
|
||||
hostConfig
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue