copied proserpina configs to hosts/hades to fill space for now, updated 'README.me', updated 'Serenity OS' version num.
This commit is contained in:
parent
6a01f01265
commit
743cca2e06
6 changed files with 245 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ To Do:
|
||||||
|
|
||||||
- [ ] per host hardware configurations
|
- [ ] per host hardware configurations
|
||||||
- [ ] Hades
|
- [ ] Hades
|
||||||
|
- [ ] adjust Hades' configs
|
||||||
- [X] Proserpina
|
- [X] Proserpina
|
||||||
|
|
||||||
- [ ] per host themes
|
- [ ] per host themes
|
||||||
|
|
@ -30,6 +31,7 @@ WIP Flake Structure
|
||||||
│ └── packages
|
│ └── packages
|
||||||
├── flake
|
├── flake
|
||||||
├── home
|
├── home
|
||||||
|
│ ├── git
|
||||||
│ └── users
|
│ └── users
|
||||||
└── hosts
|
└── hosts
|
||||||
├── hades
|
├── hades
|
||||||
|
|
@ -44,6 +46,7 @@ WIP Flake Structure
|
||||||
├── flake.lock
|
├── flake.lock
|
||||||
├── flake.nix
|
├── flake.nix
|
||||||
├── home
|
├── home
|
||||||
|
│ ├── git.nix
|
||||||
│ ├── home.nix
|
│ ├── home.nix
|
||||||
│ └── users
|
│ └── users
|
||||||
│ ├── -coffee.nix
|
│ ├── -coffee.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "SerenityOS v0.3.61";
|
description = "SerenityOS v0.3.63";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
|
|
|
||||||
74
hosts/hades/configuration.nix
Normal file
74
hosts/hades/configuration.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
{ inputs, outputs, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
# "${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
|
||||||
|
./disko-config.nix
|
||||||
|
./network-configuration.nix
|
||||||
|
../../core/configuration.nix
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable swap on luks
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
configurationLimit = 5;
|
||||||
|
};
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
# efiSysMountPoint = "/boot/efi";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
initrd = {
|
||||||
|
systemd.enable = true;
|
||||||
|
secrets = {
|
||||||
|
# "crypto_keyfile.bin" = null;
|
||||||
|
};
|
||||||
|
luks = {
|
||||||
|
# devices."luks-DISK_UUID" = {
|
||||||
|
# device = "/dev/disk/by-uuid/DISK_UUID";
|
||||||
|
# keyfile = "/crypto_keyfile.bin";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
|
||||||
|
cpu.intel.updateMicrocode = true;
|
||||||
|
enableAllFirmware = false;
|
||||||
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
opengl = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
intel-compute-runtime
|
||||||
|
intel-media-driver
|
||||||
|
vaapiIntel
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
# settings = {
|
||||||
|
# };
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
|
options = "--delete-older-than 2d";
|
||||||
|
persistent = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
66
hosts/hades/disko-config.nix
Normal file
66
hosts/hades/disko-config.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
sda = {
|
||||||
|
type = "disk";
|
||||||
|
device = "/dev/sda";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
ESP = {
|
||||||
|
size = "512M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [
|
||||||
|
"defaults"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
luks = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "pomegranate";
|
||||||
|
# disable settings.keyFile if you want to use interactive password entry
|
||||||
|
#passwordFile = "/tmp/secret.key"; # Interactive
|
||||||
|
settings = {
|
||||||
|
allowDiscards = true;
|
||||||
|
#keyFile = "/tmp/secret.key";
|
||||||
|
};
|
||||||
|
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
|
||||||
|
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = [ "-f" ];
|
||||||
|
subvolumes = {
|
||||||
|
"/root" = {
|
||||||
|
mountpoint = "/";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/home" = {
|
||||||
|
mountpoint = "/home";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/nix" = {
|
||||||
|
mountpoint = "/nix";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
29
hosts/hades/hardware-configuration.nix
Normal file
29
hosts/hades/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# 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.sh
|
||||||
|
./disko-config.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
72
hosts/hades/network-configuration.nix
Normal file
72
hosts/hades/network-configuration.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
# ./file.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "proserpina";
|
||||||
|
wireless.enable = false;
|
||||||
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
# nameservers = [
|
||||||
|
# "1.1.1.1"
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# networking.proxy = {
|
||||||
|
# default = "https://user:password@proxy:port/";
|
||||||
|
# noProxy = "127.0.0.1, localhost, internal.comain";
|
||||||
|
# };
|
||||||
|
|
||||||
|
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 ]
|
||||||
|
};
|
||||||
|
|
||||||
|
services.syncthing = {
|
||||||
|
enable = false;
|
||||||
|
dataDir = "/home/serenity/";
|
||||||
|
configDir = "/home/serenity/.config/syncthing";
|
||||||
|
user = "serenity";
|
||||||
|
settings.devices = {
|
||||||
|
|
||||||
|
# hades.id = "DEVICE_ID";
|
||||||
|
# proserpina.id = "DEVICE_ID";
|
||||||
|
# hecate.id = "DEVICE_ID";
|
||||||
|
|
||||||
|
};
|
||||||
|
settings.folders = {
|
||||||
|
|
||||||
|
# "FOLDER_ID" = {
|
||||||
|
# path = "/home/serenity/Documents/Notes";
|
||||||
|
# devices = [ "hecate" "hades" "proserpina" ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
# "FOLDER_ID" = {
|
||||||
|
# path = "/home/serenity/Documents/Notes";
|
||||||
|
# devices = [ "hecate" "hades" "proserpina" ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
# "FOLDER_ID" = {
|
||||||
|
# path = "/home/serenity/Documents/Notes";
|
||||||
|
# devices = [ "hecate" "hades" "proserpina" ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue