push
This commit is contained in:
28
modules/core/audio/audio.nix
Normal file
28
modules/core/audio/audio.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
den.aspects.audio = {
|
||||
nixos = {
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services = {
|
||||
pulseaudio.enable = false;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
|
||||
wireplumber.enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
|
||||
pulse.enable = true;
|
||||
|
||||
#lowLatency.enable = false;
|
||||
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
39
modules/core/audio/mpd.nix
Normal file
39
modules/core/audio/mpd.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
den.aspects.mpd = {
|
||||
nixos = {
|
||||
services = {
|
||||
mpd = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
music_directory = "/home/bug/Music";
|
||||
|
||||
decoder = [
|
||||
{
|
||||
plugin = "ffmpeg";
|
||||
enabled = "yes";
|
||||
}
|
||||
{
|
||||
plugin = "opus";
|
||||
enabled = "no";
|
||||
}
|
||||
];
|
||||
|
||||
audio_output = [{
|
||||
type = "pipewire";
|
||||
name = "PipeWire Sound Server";
|
||||
}];
|
||||
};
|
||||
|
||||
user = "bug";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
mpd.environment = {
|
||||
XDG_RUNTIME_DIR = "/run/user/1000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/core/dendritic.nix
Normal file
15
modules/core/dendritic.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ inputs, ... }: {
|
||||
imports = [
|
||||
(inputs.flake-file.flakeModules.dendritic or {})
|
||||
(inputs.den.flakeModules.dendritic or {})
|
||||
];
|
||||
|
||||
flake-file.inputs = {
|
||||
den.url = "github:vic/den";
|
||||
flake-file.url = "github:vic/flake-file";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
}
|
||||
75
modules/core/desktop/cosmic.nix
Normal file
75
modules/core/desktop/cosmic.nix
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
den.aspects.cosmic = {
|
||||
nixos = { pkgs, ... }: {
|
||||
services = {
|
||||
greetd.enable = true;
|
||||
|
||||
system76-scheduler.enable = true;
|
||||
|
||||
displayManager = {
|
||||
cosmic-greeter.enable = true;
|
||||
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "bug";
|
||||
};
|
||||
};
|
||||
|
||||
desktopManager.cosmic.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cosmic-applets
|
||||
cosmic-edit
|
||||
cosmic-ext-calculator
|
||||
cosmic-ext-tweaks
|
||||
cosmic-screenshot
|
||||
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-cosmic
|
||||
];
|
||||
|
||||
environment.sessionVariables = {
|
||||
COSMIC_DATA_CONTROL_ENABLED = 1;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
|
||||
config.common.default = ["gtk"];
|
||||
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-cosmic];
|
||||
};
|
||||
|
||||
mime = {
|
||||
enable = true;
|
||||
|
||||
defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
"application/pdf" = "firefox.desktop";
|
||||
|
||||
"inode/directory" = "com.system76.CosmicFiles.desktop";
|
||||
|
||||
"text/plain" = "com.system76.CosmicEdit.desktop";
|
||||
"text/markdown" = "com.system76.CosmicEdit.desktop";
|
||||
|
||||
"application/zip" = "org.gnome.FileRoller.desktop";
|
||||
"application/x-7z-compressed" = "org.gnome.FileRoller.desktop";
|
||||
"application/x-tar" = "org.gnome.FileRoller.desktop";
|
||||
"application/gzip" = "org.gnome.FileRoller.desktop";
|
||||
"application/x-xz" = "org.gnome.FileRoller.desktop";
|
||||
"application/x-zip-compressed" = "org.gnome.FileRoller.desktop";
|
||||
|
||||
"application/x-ms-dos-executable" = "wine.desktop";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/core/graphics/amdgpu.nix
Normal file
10
modules/core/graphics/amdgpu.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
den.aspects.amdgpu = {
|
||||
nixos = {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
45
modules/core/graphics/nvidia.nix
Normal file
45
modules/core/graphics/nvidia.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
den.aspects.nvidia = {
|
||||
nixos = { pkgs, config, ... }: {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
libva-vdpau-driver
|
||||
libvdpau
|
||||
libvdpau-va-gl
|
||||
vdpauinfo
|
||||
libva
|
||||
libva-utils
|
||||
libglvnd
|
||||
mesa
|
||||
nvidia-vaapi-driver
|
||||
];
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["nvidia"];
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
|
||||
open = false;
|
||||
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
cudaSupport = true;
|
||||
nvidia.acceptLicense = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/core/network/cloudflare-warp.nix
Normal file
9
modules/core/network/cloudflare-warp.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
den.aspects.cloudflare-warp = {
|
||||
nixos = {
|
||||
services.cloudflare-warp = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
1
modules/core/network/crab-hole.nix
Normal file
1
modules/core/network/crab-hole.nix
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
11
modules/core/network/dns.nix
Normal file
11
modules/core/network/dns.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
den.aspects.dns = {
|
||||
nixos = {
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
|
||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/core/network/openssh.nix
Normal file
15
modules/core/network/openssh.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
den.aspects.openssh = {
|
||||
nixos = {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
PrintMotd = true;
|
||||
X11Forwarding = true;
|
||||
AllowTcpForwarding = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
19
modules/core/swap.nix
Normal file
19
modules/core/swap.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
den.aspects.swap = {
|
||||
nixos = {
|
||||
boot.kernel.sysctl = {
|
||||
"fs.file-max" = 524288;
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 8 * 1024;
|
||||
}];
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryMax = 64 * 1024 * 1024 * 1024;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
modules/core/virtualisation.nix
Normal file
11
modules/core/virtualisation.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
den.aspects.virtualisation = {
|
||||
nixos = {
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user