lots of stuff idk

This commit is contained in:
xunuwu 2024-04-04 19:43:43 +02:00
parent a18ceb4f2e
commit 4e5f0a6e0b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
39 changed files with 439 additions and 81 deletions

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = [pkgs.steam-run];
#environment.systemPackages = [pkgs.steam-run];
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
@ -55,6 +55,4 @@
xorg.libxshmfence
zlib
];
# symlinks binaries to /bin, fixes hard coded shebangs
services.envfs.enable = true;
}

3
system/core/gvfs.nix Normal file
View file

@ -0,0 +1,3 @@
{
services.gvfs.enable = true;
}

View file

@ -5,7 +5,10 @@
shell = pkgs.zsh;
extraGroups = [
"wheel"
"input"
"video"
"render"
"audio"
];
};
}

View file

@ -2,9 +2,12 @@ let
desktop = [
./core
./core/boot.nix
./core/gvfs.nix
./hardware/opengl.nix
./hardware/steam-hardware.nix
./hardware/bluetooth.nix
./hardware/qmk.nix
./network/networkd.nix
./network/avahi.nix
@ -12,6 +15,8 @@ let
./desktop
./desktop/awesome.nix
./desktop/sway.nix
./desktop/hyprland.nix
./programs

View file

@ -1,14 +1 @@
{pkgs, ...}: {
xdg = {
portal = {
enable = true;
config = {
common.default = ["gtk"];
};
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};
}
{}

View file

@ -0,0 +1,5 @@
{
programs.hyprland = {
enable = true;
};
}

9
system/desktop/sway.nix Normal file
View file

@ -0,0 +1,9 @@
{
programs.sway = {
enable = true;
wrapperFeatures = {
base = true;
gtk = true;
};
};
}

View file

@ -8,5 +8,6 @@
domain = true;
userServices = true;
};
openFirewall = true;
};
}

View file

@ -6,7 +6,22 @@
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extest.enable = true;
gamescopeSession.enable = true;
## Fixes gamescope
package = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
}

View file

@ -6,6 +6,34 @@
imports = [
#./statistics
];
services.samba = {
enable = true;
package = pkgs.samba4Full;
openFirewall = true;
shares."torrent-downloads" = {
path = "/media/downloads/complete";
browseable = "yes";
"read only" = "yes";
"guest ok" = "no";
};
#shares."decky-cloud-save" = {
# path = "/media/gamesaves";
# browseable = "yes";
# "read only" = "no";
# "guest ok" = "no";
#};
extraConfig = ''
server smb encrypt = required
server min protocol = SMB3_00
'';
};
services.samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
};
#virtualisation.docker = {
# enable = true;
# enableOnBoot = true;

View file

@ -0,0 +1,10 @@
{
services.ollama = {
enable = true;
environmentVariables = {
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
};
acceleration = "rocm";
listenAddress = "127.0.0.1:11434";
};
}

View file

@ -1,4 +1,4 @@
{
{config, ...}: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
@ -11,11 +11,11 @@
settings = {
devices = {
"nixdesk" = {
id = "2WCEQPF-2J4U7IK-XRT25FV-NFT2JEM-AVOMDEK-FIJNZ24-7WCBZC2-57CX2AP";
id = "DZEIXRH-WBIEUUW-FFP2SLJ-BTIUPBE-YURLPN7-MUFOR6L-HS27D6G-I25XHQ3";
autoAcceptFolders = true;
};
"redmi-note-10-pro" = {
id = "U6YYTHR-2ZXIEXQ-RNDERSF-CTVSP67-W24VK4Y-5EQRIV5-T7JJW2N-33L7XQV";
id = "MRAHIKH-TNHAKEG-OHMEFXI-BO54SXR-6IL2Y3B-3HVOWZF-ZGTS2OX-YSWTPQF";
autoAcceptFolders = true;
};
"hopper" = {
@ -25,13 +25,13 @@
};
folders = {
"~/secrets" = {
devices = [
"nixdesk"
"redmi-note-10-pro"
"hopper"
];
devices = builtins.attrNames config.services.syncthing.settings.devices;
id = "sfw9y-yusup";
};
"~/docs/xun-megavault" = {
devices = builtins.attrNames config.services.syncthing.settings.devices;
id = "1zkf-wf5r";
};
};
};

View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [distrobox];
}

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [docker-compose];
virtualisation.docker = {
enable = true;
};
}

View file

@ -0,0 +1,7 @@
{
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerSocket.enable = true;
};
}

View file

@ -0,0 +1,3 @@
{
virtualisation.waydroid.enable = true;
}