This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -3,9 +3,11 @@
config,
pkgs,
...
}: let
}:
let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
in
{
users.users.cnst = {
isNormalUser = true;
shell = pkgs.fish;

View File

@@ -7,22 +7,23 @@
pkgs,
modulesPath,
...
}: {
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
boot.initrd.availableKernelModules = [ "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
swapDevices = [{device = "/swapfile";}];
swapDevices = [ { device = "/swapfile"; } ];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View File

@@ -3,8 +3,8 @@
boot = {
kernel = {
variant = "latest";
hardware = [];
extraKernelParams = [];
hardware = [ ];
extraKernelParams = [ ];
};
loader = {
default = {
@@ -21,7 +21,7 @@
};
graphics = {
enable = false;
vendors = [];
vendors = [ ];
};
logitech = {
enable = false;
@@ -30,8 +30,16 @@
enable = true;
interfaces = {
"enu1u1" = {
allowedTCPPorts = [22 80 443 8090];
allowedUDPPorts = [58846 6881];
allowedTCPPorts = [
22
80
443
8090
];
allowedUDPPorts = [
58846
6881
];
};
};
};

View File

@@ -1,4 +1,5 @@
{config, ...}: {
{ config, ... }:
{
server = {
enable = true;
email = "adam@cnst.dev";