many changes this one forgot
This commit is contained in:
parent
67c2117563
commit
44307a3f6f
22 changed files with 1081 additions and 437 deletions
21
instances/ds9/configuration.nix
Normal file
21
instances/ds9/configuration.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
services.tailscale.enable = true;
|
||||
services.tailscale.useRoutingFeatures = "client";
|
||||
xyno.presets.cli.enable = true;
|
||||
xyno.presets.home-manager.enable = true;
|
||||
xyno.system.user.enable = true;
|
||||
xyno.networking.networkd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
5
instances/ds9/default.nix
Normal file
5
instances/ds9/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
modules = [ ./configuration.nix ];
|
||||
system = "x86_64-linux";
|
||||
hostName = "ds9";
|
||||
}
|
||||
51
instances/ds9/hardware-configuration.nix
Normal file
51
instances/ds9/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# 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 = [ "r8169" "ahci" "vfio-pci" "xhci_pci" "ehci_pci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
nix.settings.max-jobs = lib.mkDefault 12;
|
||||
powerManagement.powertop.enable = true;
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
powerManagement.scsiLinkPolicy = "min_power";
|
||||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
|
||||
services.sanoid.datasets."rpool/content/safe/data/media" = { };
|
||||
services.sanoid.enable = true;
|
||||
services.sanoid.interval = "0/8:00:00";
|
||||
|
||||
swapDevices = [{ device = "/dev/disk/by-id/nvme-eui.000000000000000100a075202c247839-part1"; randomEncryption = true; }];
|
||||
fileSystems."/boot".device = "/dev/disk/by-uuid/149F-23AA";
|
||||
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "spool/safe/persist";
|
||||
fsType = "zfs";
|
||||
};
|
||||
fileSystems."/nix" = {
|
||||
device = "spool/local/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
fileSystems."/var/log" = {
|
||||
device = "spool/local/journal";
|
||||
fsType = "zfs";
|
||||
};
|
||||
fileSystems."/data" = {
|
||||
device = "rpool/content/safe/data";
|
||||
fsType = "zfs";
|
||||
};
|
||||
fileSystems."/data/media" = {
|
||||
device = "rpool/content/safe/data/media";
|
||||
fsType = "zfs";
|
||||
};
|
||||
fileSystems."/backups" = {
|
||||
device = "rpool/content/local/backups";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
|
@ -11,7 +12,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
xyno.git.enable = true;
|
||||
home.packages = [ # work
|
||||
home.packages = [
|
||||
# work
|
||||
pkgs.jetbrains.rider
|
||||
(pkgs.firefox-devedition.overrideAttrs (super: self: { meta.priority = 1; }))
|
||||
];
|
||||
|
|
@ -20,7 +22,7 @@
|
|||
enable = true;
|
||||
packages = [
|
||||
"com.unicornsonlsd.finamp"
|
||||
"io.github.softfever.OrcaSlicer"
|
||||
# "io.github.softfever.OrcaSlicer"
|
||||
"io.anytype.anytype"
|
||||
"org.bionus.Grabber"
|
||||
"org.getmonero.Monero"
|
||||
|
|
@ -34,6 +36,14 @@
|
|||
};
|
||||
}
|
||||
);
|
||||
environment.systemPackages = with pkgs; [
|
||||
aerc
|
||||
jabref
|
||||
inputs.iamb.packages.${pkgs.system}.default
|
||||
(pkgs.writeShellScriptBin "sudo" "run0 $@")
|
||||
];
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
services.tailscale.enable = true;
|
||||
services.tailscale.useRoutingFeatures = "client";
|
||||
|
|
@ -43,10 +53,15 @@
|
|||
xyno.presets.gui.enable = true;
|
||||
xyno.presets.home-manager.enable = true;
|
||||
xyno.system.user.enable = true;
|
||||
xyno.user-services.syncthing = {
|
||||
enable = true;
|
||||
tray = true;
|
||||
};
|
||||
xyno.networking.networkd = {
|
||||
enable = true;
|
||||
enableWifi = true;
|
||||
};
|
||||
xyno.desktop.fcitx5.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
|
@ -54,4 +69,5 @@
|
|||
services.flatpak.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
programs.nh.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,12 @@
|
|||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
boot.initrd.luks.devices.cryptroot.device =
|
||||
"/dev/disk/by-uuid/4cd8dbb3-8eea-48ff-87b1-92945be291ac";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue