mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 15:07:44 -05:00
More Cleaning Up Settings
This commit is contained in:
parent
aaf47f1d84
commit
3cf90819b3
5 changed files with 23 additions and 31 deletions
|
|
@ -1,30 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
systemd.user.services.pipewire-patching = {
|
|
||||||
enable = true;
|
|
||||||
description = "pipewire patches";
|
|
||||||
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
|
|
||||||
script = ''
|
|
||||||
${pkgs.pipewire}/bin/pw-link alsa_input.pci-0000_0e_00.4.analog-stereo:capture_FL alsa_output.pci-0000_0e_00.4.iec958-stereo:playback_FL
|
|
||||||
${pkgs.pipewire}/bin/pw-link alsa_input.pci-0000_0e_00.4.analog-stereo:capture_FR alsa_output.pci-0000_0e_00.4.iec958-stereo:playback_FR
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -13,7 +13,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./gui.nix
|
|
||||||
./audio.nix
|
./audio.nix
|
||||||
../../modules/common
|
../../modules/common
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
|
|
@ -55,6 +54,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
# Enable hardware features
|
# Enable hardware features
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
|
gui.enable = true;
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware
|
./hardware
|
||||||
|
./software
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
6
modules/nixos/software/default.nix
Normal file
6
modules/nixos/software/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./gui.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
15
modules/nixos/software/gui.nix
Normal file
15
modules/nixos/software/gui.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.gui.enable) {
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.xserver = {
|
||||||
|
desktopManager.plasma5.enable = true;
|
||||||
|
xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue