mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-09-08 07:54:40 +00:00
Compare commits
2
Commits
40660a57eb
...
07c7c3b3f8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07c7c3b3f8
|
||
|
|
754bd6bc06
|
@@ -196,6 +196,12 @@
|
||||
ausweisapp
|
||||
];
|
||||
|
||||
/*services.nfsclient = {
|
||||
enable = true;
|
||||
ip = "192.168.0.51";
|
||||
exportedDirs = [ "shared" ];
|
||||
};*/
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
|
||||
@@ -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
|
||||
@@ -50,14 +51,14 @@ in
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
vrr = lib.mkDefault 2;
|
||||
enable_swallow = true;
|
||||
enable_swallow = false;
|
||||
swallow_regex = "^kitty$";
|
||||
};
|
||||
binds.scroll_event_delay = 0;
|
||||
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()
|
||||
@@ -86,8 +87,8 @@ in
|
||||
(bind "SUPER + LEFT" "hl.dsp.layout('focus l')")
|
||||
(bind "SUPER + RIGHT" "hl.dsp.layout('focus r')")
|
||||
|
||||
(bind "SUPER + mouse_up" "hl.dsp.layout('focus r')")
|
||||
(bind "SUPER + mouse_down" "hl.dsp.layout('focus l')")
|
||||
(bind "SUPER + mouse_up" "hl.dsp.layout('focus l')")
|
||||
(bind "SUPER + mouse_down" "hl.dsp.layout('focus r')")
|
||||
]
|
||||
else
|
||||
[
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
lib,
|
||||
osConfig,
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -192,7 +193,7 @@ in
|
||||
pkgs.sunwait
|
||||
];
|
||||
runtimeEnv = {
|
||||
STATE = "/home/theaninova/.local/state/md3-evo";
|
||||
STATE = "/home/${username}/.local/state/md3-evo";
|
||||
THEME_SERVICE_PATH = "${config.xdg.configHome}/systemd/user/theme-init.timer";
|
||||
FLAVOUR = toString cfg.flavour;
|
||||
LAT = "${toString cfg.auto-dark.lat}N";
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
./usecases/windows-vm.nix
|
||||
|
||||
./services/airprint.nix
|
||||
./services/nfs.nix
|
||||
./services/nfsclient.nix
|
||||
|
||||
./shell/dunst.nix
|
||||
./shell/firefox-pip.nix
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
@@ -22,9 +22,19 @@ in
|
||||
dfu-util
|
||||
];
|
||||
# Bambu Network Plugin
|
||||
networking.firewall.allowedUDPPorts = [ 2021 ];
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [
|
||||
2021 # Discovery
|
||||
];
|
||||
allowedTCPPorts = [
|
||||
8883 # MQTT
|
||||
6000 # MPEG over TLS
|
||||
];
|
||||
};
|
||||
home-manager.users.${username} = {
|
||||
home.packages = with pkgs; [
|
||||
freecad
|
||||
plasticity
|
||||
orca-slicer
|
||||
];
|
||||
programs = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user