Compare commits

2 Commits
Author SHA1 Message Date
John Lancaster f22e8cb1d5 moved programs to desktop feature 2026-06-30 23:00:55 -05:00
John Lancaster bb06b848be audio module 2026-06-30 23:00:37 -05:00
4 changed files with 28 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
{ self, inputs, ... }: {
flake.modules.nixos.audio = { config, pkgs, lib, ... }: {
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true; # PulseAudio server uses this to acquire realtime priority.
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
# media-session.enable = true;
};
}
}
+3
View File
@@ -10,6 +10,9 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
mangohud mangohud
sublime4 sublime4
proton-vpn
joplin-desktop
discord
]; ];
}; };
} }
+4
View File
@@ -1,5 +1,9 @@
{ self, inputs, ... }: { { self, inputs, ... }: {
flake.modules.nixos.base = { config, pkgs, lib, ... }: { flake.modules.nixos.base = { config, pkgs, lib, ... }: {
imports = [
self.modules.nixos.audio
];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config = { nixpkgs.config = {
permittedInsecurePackages = [ "openssl-1.1.1w" ]; permittedInsecurePackages = [ "openssl-1.1.1w" ];
+2 -6
View File
@@ -44,6 +44,8 @@
services.libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager). services.libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager).
services.fprintd.enable = true; # Enables fingerprint sensor services.fprintd.enable = true; # Enables fingerprint sensor
home-manager.users.root = { home-manager.users.root = {
imports = with inputs.self.modules.homeManager; [ imports = with inputs.self.modules.homeManager; [
rebuild rebuild
@@ -59,12 +61,6 @@
my-vscode.enable = true; my-vscode.enable = true;
mysops.hostSecretFile = "${flakeDir}/modules/hosts/john-p14s/secrets.yaml"; mysops.hostSecretFile = "${flakeDir}/modules/hosts/john-p14s/secrets.yaml";
homeManagerFlakeDir = "${flakeDir}"; homeManagerFlakeDir = "${flakeDir}";
home.packages = with pkgs; [
bash
discord
proton-vpn
joplin-desktop
];
ssh.certificates.enable = true; ssh.certificates.enable = true;
ssh.matchSets = { ssh.matchSets = {
appdaemon = true; appdaemon = true;