more tidying - commented most of hosts/hades

This commit is contained in:
serenity-F 2024-09-14 01:56:29 +10:00
parent b91d96a84c
commit 5ccd508676
No known key found for this signature in database
6 changed files with 141 additions and 148 deletions

View file

@ -2,25 +2,27 @@
{
imports = [
# Include the results of the hardware scan.
./hardware-config.nix
# "${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
./network-config.nix
## Include the results of the hardware scan.
./hardware.nix
#"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
./network.nix
../../config.nix
];
## trim to keep SSDs healthy-ish
services.fstrim.enable = true;
nix = {
# settings = {
# };
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 10d";
persistent = true;
};
#settings = {
#};
gc = {
## every day, automatically collect garbage older than 10 days
automatic = true;
dates = "daily";
options = "--delete-older-than 10d";
persistent = true;
};
};
}

View file

@ -27,7 +27,7 @@
content = {
type = "luks";
name = "pomegranate";
# disable settings.keyFile if you want to use interactive password entry
## disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;

View file

@ -1,12 +1,10 @@
# 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")
#./disko-config.nix
## commented out disko for now as I have broken it :D
#./disko.nix
];
fileSystems."/" =
@ -15,17 +13,9 @@
options = [ "subvol=@" ];
};
#fileSystems."/boot" =
#{ device = "/dev/disk/by-uuid/5cbed60c-33e3-4d69-a39e-c1d6d19406ea";
#fsType = "btrfs";
#options = [ "subvol=@" ];
#};
#boot.initrd.luks.devices."luks-3de671ef-22a3-4f28-9251-a0687ab44f96".device = "/dev/disk/by-uuid/3de671ef-22a3-4f28-9251-a0687ab44f96";
swapDevices = [ ];
# Enable swap on luks
## Enable swap on luks
boot = {
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
@ -46,44 +36,41 @@
loader = {
efi = {
canTouchEfiVariables = true;
#efiSysMountPoint = "/boot/efi";
};
#systemd-boot = {
#enable = false;
#configurationLimit = 10;
#};
};
## for some reason GPT/UEFI didn't work, so neither does systemd-boot
## stuck using MBR/DOS and GRUB instead
grub = {
enable = true;
#efiSupport = true;
#efiInstallAsRemovable = true;
device = "/dev/sda";
#useOSProber = true;
enableCryptodisk = true;
};
};
};
## trim to keep SSDs healthy-ish
services.fstrim.enable = true;
hardware = {
#cpu.intel.updateMicrocode = true;
## Pick either "true" OR "lib.mkDefault -"
#cpu.intel.updateMicrocode = true;
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
enableAllFirmware = true;
bluetooth.enable = false;
graphics = {
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
enableAllFirmware = true;
bluetooth.enable = false;
graphics = {
enable = true;
## packages for integrated graphics inside Hades
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
};
## some packages for managing the radeon GPU inside Hades
environment.systemPackages = with pkgs; [
umr
radeontop
@ -92,10 +79,10 @@
radeon-profile
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
## Enables DHCP on each ethernet and wireless interface. In case of scripted networking
## (the default) this is the recommended approach. When using systemd-networkd it's
## still possible to use this option, but it's recommended to use it in conjunction
## with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
#networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
#networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true;

View file

@ -3,59 +3,65 @@
{
imports = [
# ./file.nix
# ./file.nix
];
networking = {
## ooh, hostname - that one's important!
hostName = "hades";
wireless.enable = false;
networkmanager = {
enable = true;
};
# nameservers = [
# "1.1.1.1"
# ];
wireless.enable = false;
networkmanager = {
enable = true;
};
#nameservers = [
#"1.1.1.1"
#];
#proxy = {
#default = "https://user:password@proxy:port/";
#noProxy = "127.0.0.1, localhost, internal.domain";
#};
};
# networking.proxy = {
# default = "https://user:password@proxy:port/";
# noProxy = "127.0.0.1, localhost, internal.comain";
# };
## i knooooowwwwwww i need a firewall but im laaaazzyyyyyyyyyy
networking.firewall = {
enable = false;
# checkReversePath = "loose";
# allowedTCPPorts = [ 22000 21027 25565 ];
# allowedUDPPorts = [ 22000 21027 41641 51820 ];
# allowedTCPPortRanges = [
# { from = 9999; to = 9999; } # KDE COnnect
# { from = 9999; to = 9999; } # Nicotine+
# ];
# allowedUDPPortRanges = [
# { from = 9999; to = 9999; } # KDE COnnect
# ];
# interfaces."DEVICENAME".allowedTCPPorts = [ 22999 ]
enable = false;
#checkReversePath = "loose";
#allowedTCPPorts = [ 22000 21027 25565 ];
#allowedUDPPorts = [ 22000 21027 41641 51820 ];
#allowedTCPPortRanges = [
#{ from = 9999; to = 9999; } # KDE Connect
#{ from = 9999; to = 9999; } # Nicotine+
#];
#allowedUDPPortRanges = [
#{ from = 9999; to = 9999; } # KDE Connect
#];
#interfaces."DEVICENAME".allowedTCPPorts = [ 22999 ]
};
## syncthing for device <-> device filesharing and,,, syncing
## still not set up, grrrr
services.syncthing = {
enable = false;
dataDir = "/home/serenity/";
configDir = "/home/serenity/.config/syncthing";
user = "serenity";
## these 3 devices are pretty much my entire ecosystem for now
settings.devices = {
# hades.id = "DEVICE_ID";
# proserpina.id = "DEVICE_ID";
# hecate.id = "DEVICE_ID";
};
settings.folders = {
#hades.id = "DEVICE_ID";
#proserpina.id = "DEVICE_ID";
#hecate.id = "DEVICE_ID";
};
# "FOLDER_ID" = {
# path = "/home/serenity/Documents/Notes";
# devices = [ "hecate" "hades" "persephone" ];
# };
## plan to have this dir automatically committed and pushed to a git repo daily
settings.folders = {
#"FOLDER_ID" = {
#path = "/home/serenity/Documents/Notes";
#devices = [ "hecate" "hades" "persephone" ];
#};
};
};