split everything into modules and update nixpkgs

This commit is contained in:
aditya
2026-05-14 00:29:17 +05:30
parent 0e2136c3a0
commit cc2380eec1
18 changed files with 270 additions and 81 deletions
+16
View File
@@ -0,0 +1,16 @@
{
services.cloudflared = {
enable = true;
tunnels = {
"thinkpad" = {
credentialsFile = "/home/aditya/.cloudflared/a3a0512b-6c48-44f9-b760-15d6cf7d1232.json";
default = "http_status:404";
ingress = {
"thinkpad.aditya.stream" = {
service = "http://localhost:3000";
};
};
};
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
services.printing.enable = true;
services.printing.cups-pdf.enable = true;
services.printing.drivers = with pkgs; [ hplip ];
}
+21
View File
@@ -0,0 +1,21 @@
{
imports = [
./cloudflared.nix
./cups.nix
./pipewire.nix
];
services.xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
};
};
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.flatpak.enable = true;
services.gnome.gnome-keyring.enable = true;
}
+12
View File
@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
extraLadspaPackages = [ pkgs.rnnoise-plugin.ladspa ];
};
services.pulseaudio.enable = false;
}