feat: stuff

This commit is contained in:
2026-08-26 09:04:34 +02:00
parent 754bd6bc06
commit 07c7c3b3f8
8 changed files with 133 additions and 10 deletions
+6
View File
@@ -196,6 +196,12 @@
ausweisapp
];
/*services.nfsclient = {
enable = true;
ip = "192.168.0.51";
exportedDirs = [ "shared" ];
};*/
networking = {
firewall = {
allowedTCPPorts = [
+9
View File
@@ -157,6 +157,15 @@
];
};
/*
services.nfshare = {
enable = true;
allowedIps = [ "192.168.0.84" ];
baseDir = "/export";
exportedDirs = [ "shared" ];
};
*/
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [
# Essential utils
@@ -2,6 +2,7 @@
pkgs,
lib,
osConfig,
username,
...
}:
let
@@ -57,7 +58,7 @@ in
decoration.border_part_of_window = false;
};
bind = [
(bind "SUPER + C" "hl.dsp.window.close()")
(bind (if username == "luci" then "SUPER + Q" else "SUPER + C") "hl.dsp.window.close()")
(bind "SUPER + P" ''
function()
hl.dsp.window.float()
+2
View File
@@ -36,6 +36,8 @@
./usecases/windows-vm.nix
./services/airprint.nix
./services/nfs.nix
./services/nfsclient.nix
./shell/dunst.nix
./shell/firefox-pip.nix
+67
View File
@@ -0,0 +1,67 @@
{
lib,
config,
...
}:
with lib;
let
cfg = config.services.nfshare;
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
in
{
options.services.nfshare = {
enable = mkEnableOption "Enable shared directory";
allowedIps = mkOption {
type = types.listOf types.str;
};
baseDir = mkOption {
type = types.str;
default = "/export";
};
exportedDirs = mkOption {
type = types.listOf types.str;
};
};
config = mkIf cfg.enable {
services.nfs.server = {
inherit lockdPort mountdPort statdPort;
enable = true;
exports = (
lib.concatStringsSep "\n" (
lib.concatMap (
ip:
[ "${cfg.baseDir} ${ip}(rw,fsid=0,no_subtree_check)" ]
++ (lib.map (
dir: "${cfg.baseDir}/${dir} ${ip}(rw,nohide,insecure,no_subtree_check)"
) cfg.exportedDirs)
) cfg.allowedIps
)
);
extraNfsdConfig = "";
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
111
2049
lockdPort
mountdPort
statdPort
20048
];
allowedUDPPorts = [
111
2049
lockdPort
mountdPort
statdPort
20048
];
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{
lib,
config,
...
}:
with lib;
let
cfg = config.services.nfsclient;
in
{
options.services.nfsclient = {
enable = mkEnableOption "Enable shared directory";
ip = mkOption {
type = types.str;
};
exportedDirs = mkOption {
type = types.listOf types.str;
};
};
config = mkIf cfg.enable {
boot.supportedFilesystems = [ "nfs" ];
fileSystems = builtins.listToAttrs (
lib.map (dir: {
name = "/mnt/${dir}";
value = {
device = "${cfg.ip}:/shared";
fsType = "nfs4";
options = [
"x-systemd.idle-timeout=600"
"x-systemd.automount"
"noauto"
];
};
}) cfg.exportedDirs
);
};
}
+1
View File
@@ -34,6 +34,7 @@ in
home-manager.users.${username} = {
home.packages = with pkgs; [
freecad
plasticity
orca-slicer
];
programs = {
+7 -9
View File
@@ -29,15 +29,13 @@ in
environment.systemPackages = with pkgs; [
oversteer
obs-studio
/*
(lutris.override {
extraLibraries =
pkgs: with pkgs; [
libgudev
libvdpau
];
})
*/
(lutris.override {
extraLibraries =
pkgs: with pkgs; [
libgudev
libvdpau
];
})
# rpcs3
# bottles
wineWow64Packages.stagingFull