Compare commits
4 commits
323820f797
...
bce8012209
Author | SHA1 | Date | |
---|---|---|---|
bce8012209 | |||
cf0916ca4b | |||
7f5baabb23 | |||
5f9ab890c6 |
14 changed files with 94 additions and 129 deletions
48
flake.lock
generated
48
flake.lock
generated
|
@ -8,11 +8,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754337839,
|
"lastModified": 1754433428,
|
||||||
"narHash": "sha256-fEc2/4YsJwtnLU7HCFMRckb0u9UNnDZmwGhXT5U5NTw=",
|
"narHash": "sha256-NA/FT2hVhKDftbHSwVnoRTFhes62+7dxZbxj5Gxvghs=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
"rev": "856df6f6922845abd4fd958ce21febc07ca2fa45",
|
"rev": "9edb1787864c4f59ae5074ad498b6272b3ec308d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -32,11 +32,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752094135,
|
"lastModified": 1754492276,
|
||||||
"narHash": "sha256-kd5/x5SshFVFHWUf/7rRqXQ06aUaD6VJdUYRCDUHHo0=",
|
"narHash": "sha256-cCtleJZQY5eWPYRGl5x63BZ2rfOik4pLveCveH+tmvM=",
|
||||||
"owner": "oddlama",
|
"owner": "oddlama",
|
||||||
"repo": "agenix-rekey",
|
"repo": "agenix-rekey",
|
||||||
"rev": "395cdb1631e9715e37d0e859a2b1da63f0ae333b",
|
"rev": "69ed7833c0e4e6a677a20894d8f12876b9e2bedb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -427,11 +427,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753592768,
|
"lastModified": 1756245065,
|
||||||
"narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
|
"narHash": "sha256-aAZNbGcWrVRZgWgkQbkabSGcDVRDMgON4BipMy69gvI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "fc3add429f21450359369af74c2375cb34a2d204",
|
"rev": "54b2879ce622d44415e727905925e21b8f833a98",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -515,11 +515,11 @@
|
||||||
"systems": "systems_3"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754124544,
|
"lastModified": 1756535359,
|
||||||
"narHash": "sha256-hHU5smvvnTcSY+J5XeYfxKlUYtorazCt/hDWYbkCOBQ=",
|
"narHash": "sha256-XNhW99b7aG+HpT2pIokbU68k911Ok/qUKCaWAB2UUfY=",
|
||||||
"owner": "theCapypara",
|
"owner": "theCapypara",
|
||||||
"repo": "nix-jetbrains-plugins",
|
"repo": "nix-jetbrains-plugins",
|
||||||
"rev": "a07bdf445e77f51240c0850b587f69576f5b55aa",
|
"rev": "ef476a789cadeac91dec6e7965d873c0d9905ba6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -535,11 +535,11 @@
|
||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754360791,
|
"lastModified": 1756518625,
|
||||||
"narHash": "sha256-Nn2f13jY3M3v79uGscM3qZW0bqCF1EmOk+8ruaH5Drg=",
|
"narHash": "sha256-Mxh2wumeSsb968dSDksblubQqHTTdRTC5lH0gmhq9jI=",
|
||||||
"owner": "Infinidoge",
|
"owner": "Infinidoge",
|
||||||
"repo": "nix-minecraft",
|
"repo": "nix-minecraft",
|
||||||
"rev": "9b109c7db8379df8ae33317c10c29099de91b942",
|
"rev": "92654796f8f6c3279e4b7d409a3e5b43b0539a19",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -596,11 +596,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754214453,
|
"lastModified": 1756542300,
|
||||||
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
|
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
|
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -675,11 +675,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754292888,
|
"lastModified": 1756469547,
|
||||||
"narHash": "sha256-1ziydHSiDuSnaiPzCQh1mRFBsM2d2yRX9I+5OPGEmIE=",
|
"narHash": "sha256-YvtD2E7MYsQ3r7K9K2G7nCslCKMPShoSEAtbjHLtH0k=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ce01daebf8489ba97bd1609d185ea276efdeb121",
|
"rev": "41d292bfc37309790f70f4c120b79280ce40af16",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -869,11 +869,11 @@
|
||||||
"poetry2nix": "poetry2nix"
|
"poetry2nix": "poetry2nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752248822,
|
"lastModified": 1756139495,
|
||||||
"narHash": "sha256-5f3cVs2T68jkQELTjMqrgkO3J2qa8l6bFI9b+ghYClY=",
|
"narHash": "sha256-xzA5q5Ae3wtcCItHQtcM88DbX2hJ9SRuG7hAFTQvfpU=",
|
||||||
"owner": "Scrybbling-together",
|
"owner": "Scrybbling-together",
|
||||||
"repo": "remarks",
|
"repo": "remarks",
|
||||||
"rev": "737ddccba55407390bdfc693acdbc6046e053948",
|
"rev": "6f7e782ac4d4560417da54da6f4d5dd5c553b63f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
[
|
[
|
||||||
mum
|
mum
|
||||||
btop
|
btop
|
||||||
pulsemixer
|
|
||||||
unstable.qmk
|
unstable.qmk
|
||||||
unstable.rmapi
|
unstable.rmapi
|
||||||
]
|
]
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./cava
|
./cava
|
||||||
|
./dunst
|
||||||
./mpv
|
./mpv
|
||||||
|
./obs
|
||||||
./picom
|
./picom
|
||||||
./wezterm
|
./wezterm
|
||||||
];
|
];
|
||||||
|
@ -16,6 +18,9 @@
|
||||||
gimp
|
gimp
|
||||||
piper
|
piper
|
||||||
zathura
|
zathura
|
||||||
|
|
||||||
|
# KDE Packages
|
||||||
|
kdePackages.kdenlive
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
31
home-manager/sajenim/features/desktop/dunst/default.nix
Normal file
31
home-manager/sajenim/features/desktop/dunst/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{...}: {
|
||||||
|
services.dunst = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
width = 300;
|
||||||
|
height = 300;
|
||||||
|
origin = "top-right";
|
||||||
|
offset = "20x20";
|
||||||
|
frame_width = 5;
|
||||||
|
frame_color = "#32302f";
|
||||||
|
corner_radius = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_low = {
|
||||||
|
background = "#282828";
|
||||||
|
foreground = "#d4be98";
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_normal = {
|
||||||
|
background = "#282828";
|
||||||
|
foreground = "#d4be98";
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_critical = {
|
||||||
|
background = "#282828";
|
||||||
|
foreground = "#d4be98";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
9
home-manager/sajenim/features/desktop/obs/default.nix
Normal file
9
home-manager/sajenim/features/desktop/obs/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
|
obs-vaapi # AMD hardware acceleration
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -20,7 +20,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Linux kernel used by NixOS.
|
# Linux kernel used by NixOS.
|
||||||
kernelPackages = pkgs.unstable.linuxPackages;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
# Parameters added to the kernel command line.
|
# Parameters added to the kernel command line.
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
# Enable amdgpu driver sysfs API that allows fine grain control of GPU
|
# Enable amdgpu driver sysfs API that allows fine grain control of GPU
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
./flatpak
|
./flatpak
|
||||||
./libinput
|
./libinput
|
||||||
./ollama
|
./ollama
|
||||||
|
./pipewire
|
||||||
./printing
|
./printing
|
||||||
./udev
|
./udev
|
||||||
./xserver
|
./xserver
|
||||||
|
|
19
nixos/fuchsia/services/pipewire/default.nix
Normal file
19
nixos/fuchsia/services/pipewire/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
# Realtime scheduler
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
# Sound server
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Enable components
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Sound mixer
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pulsemixer
|
||||||
|
];
|
||||||
|
}
|
|
@ -20,7 +20,10 @@
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "viridian";
|
hostName = "viridian";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall = {
|
};
|
||||||
|
|
||||||
|
# Firewall configuration
|
||||||
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
@ -29,7 +32,6 @@
|
||||||
6600 # mpd
|
6600 # mpd
|
||||||
6667 # inspircd
|
6667 # inspircd
|
||||||
];
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure programs
|
# Configure programs
|
||||||
|
|
|
@ -63,12 +63,6 @@
|
||||||
options = ["subvol=containers" "compress=zstd"];
|
options = ["subvol=containers" "compress=zstd"];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/srv/shares" = {
|
|
||||||
device = "/dev/disk/by-label/data";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = ["subvol=shares" "compress=zstd"];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "/swap/swapfile";
|
device = "/swap/swapfile";
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
paths = [
|
paths = [
|
||||||
# Websites
|
# Websites
|
||||||
"/srv/www/sajenim.dev"
|
"/srv/www/sajenim.dev"
|
||||||
# File shares
|
|
||||||
"/srv/shares/sajenim"
|
|
||||||
# Services
|
# Services
|
||||||
"/var/lib/crowdsec"
|
"/var/lib/crowdsec"
|
||||||
"/var/lib/forgejo"
|
"/var/lib/forgejo"
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
./mpd
|
./mpd
|
||||||
./murmur
|
./murmur
|
||||||
./opengist
|
./opengist
|
||||||
./projectsend
|
|
||||||
./traefik
|
./traefik
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
{config, ...}: {
|
|
||||||
# Environment variables for ProjectSend
|
|
||||||
age.secrets.projectsend = {
|
|
||||||
rekeyFile = ./environment.age;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Setup for ProjectSend, a file sharing application
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
projectsend = {
|
|
||||||
image = "linuxserver/projectsend:version-r1720";
|
|
||||||
ports = [
|
|
||||||
"9684:80"
|
|
||||||
];
|
|
||||||
volumes = [
|
|
||||||
"/var/lib/projectsend/config:/config"
|
|
||||||
"/var/lib/projectsend/data:/data"
|
|
||||||
];
|
|
||||||
environment = {
|
|
||||||
PUID = "1000";
|
|
||||||
PGID = "100";
|
|
||||||
};
|
|
||||||
extraOptions = [
|
|
||||||
"--network=projectsend"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# MariaDB container for ProjectSend
|
|
||||||
projectsend-mariadb = {
|
|
||||||
image = "mariadb:lts-noble";
|
|
||||||
volumes = [
|
|
||||||
"/var/lib/projectsend/mysql:/var/lib/mysql"
|
|
||||||
];
|
|
||||||
environmentFiles = [
|
|
||||||
config.age.secrets.projectsend.path
|
|
||||||
];
|
|
||||||
extraOptions = [
|
|
||||||
"--network=projectsend"
|
|
||||||
];
|
|
||||||
# Override the default user and group for MariaDB
|
|
||||||
user = "1000:100";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Network for ProjectSend containers
|
|
||||||
services.traefik.dynamicConfigOptions.http = {
|
|
||||||
routers.projectsend = {
|
|
||||||
rule = "Host(`drop.ps7e.xyz`)";
|
|
||||||
entryPoints = [
|
|
||||||
"websecure"
|
|
||||||
];
|
|
||||||
service = "projectsend";
|
|
||||||
};
|
|
||||||
services.projectsend = {
|
|
||||||
loadBalancer.servers = [
|
|
||||||
{url = "http://127.0.0.1:9684";}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Persistence configuration for ProjectSend
|
|
||||||
environment.persistence."/persist" = {
|
|
||||||
directories = [
|
|
||||||
{
|
|
||||||
directory = "/var/lib/projectsend/config";
|
|
||||||
user = "sajenim";
|
|
||||||
group = "users";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
directory = "/var/lib/projectsend/data";
|
|
||||||
user = "sajenim";
|
|
||||||
group = "users";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
directory = "/var/lib/projectsend/mysql";
|
|
||||||
user = "sajenim";
|
|
||||||
group = "users";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
age-encryption.org/v1
|
|
||||||
-> piv-p256 hdSnGw ArF/5zoX1WGrrBvli8JN/BU/zhX+uuSvHUZOr8xWT1jE
|
|
||||||
AVLiFe7B8jpeqy3twUGoOcuA4XKGv4wT9gKMNIipmuc
|
|
||||||
-> }S39,Y-grease Y`7mW
|
|
||||||
bOcAO2gpCv5yHpJyHI2omMPzeRjiTTagCwQfMZST5+D6A1mPk86C99e2bDNv
|
|
||||||
--- KbkF7enRjL7hkgek9CO5UcIOVZ087ji1oDMGViaThPI
|
|
||||||
<09>'4[n7ôY0YZõ͉¦þ®ã±k‘±žzÕ´p]v{_sÛ;
|
|
||||||
±ôÚf¾A
|
|
||||||
!.ò¦Û±±¢ý줮EWw²lÊÔS¶
ÚyˆÁ¶s8lmOlžÝ J˜bjÜå–Ý®ù®n:¡q.8®d<EFBFBD>d_à³3
|
|
||||||
™æp‰ÂÞN´´ÅÁY)×<>È›ÿ÷Y³YÂ
|
|
Loading…
Add table
Add a link
Reference in a new issue