Reviewed-on: https://codeberg.org/serenity-F/nixdots/pulls/5
Co-authored-by: Serenity-F <serenity-amalgam@protonmail.com>
Co-committed-by: Serenity-F <serenity-amalgam@protonmail.com>
This commit is contained in:
Serenity-F 2024-04-08 13:15:48 +00:00 • committed by Serenity
parent d80bb11377
commit c72fa779fc
33 changed files with 458 additions and 1361 deletions

View file

@ -1,21 +1,23 @@
{ inputs, outputs, config, pkgs, lib, ... }:
{ inputs, outputs, config, lib, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
./disko-config.nix
./hardware-configuration.nix
../../configuration.nix
];
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
./../../modules/core
];
# Enable swap on luks
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 5;
configurationLimit = 5;
};
efi = {
canTouchEfiVariables = true;
@ -70,34 +72,4 @@
};
};
networking = {
hostName = "proserpina"; # Define your hostname
};
services = {
syncthing = {
enable = true;
dataDir = "/home/serenity/";
configDir = "/home/serenity/.config/syncthing";
user = "serenity";
settings = {
devices = {
# hades.id = "$DEVICE_ID";
# hecate.id = "$DEVICE_ID";
# proserpina.id = "$DEVICE_ID";
};
folders = {
# "$FOLDER_ID" = {
# path = "/home/serenity/Documents/Notes";
# devices = [ "hecate" "hades" ];
# };
};
};
};
};
}

View file

@ -1,4 +1,5 @@
{
disko.devices = {
disk = {
sda = {
@ -19,6 +20,7 @@
];
};
};
luks = {
size = "100%";
content = {
@ -31,6 +33,7 @@
#keyFile = "/tmp/secret.key";
};
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
content = {
type = "btrfs";
extraArgs = [ "-f" ];
@ -49,11 +52,15 @@
};
};
};
};
};
};
};
};
};
};
}

View file

@ -5,7 +5,10 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
# ./disko-config.sh
./disko-config.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];

View file

@ -1,14 +0,0 @@
let
gnomeProfile = import ../../desktops/gnome/profiles/gnome-profile.nix;
in
{
imports = [
../../home.nix
];
dconf.settings = {
"org/gnome/shell" = {
enabled-extensions = gnomeProfile.extensions.laptop;
# favorite-apps = gnomeProfile.pinnedApps.laptop;
};
};
}

View 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" ];
# };
};
};
}