[nix] Cleans up warnings about options and reduces duplication
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./audio.nix
|
./audio.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./nix.nix
|
|
||||||
./rofi/rofi.nix
|
./rofi/rofi.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
../apps/element.nix
|
../apps/element.nix
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
# Enable flakes and nix-commnands.
|
|
||||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
|
||||||
|
|
||||||
# Allow unfree code
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
PATH=$PATH:$HOME/.local/bin
|
PATH=$PATH:$HOME/.local/bin
|
||||||
GITHUB_USERNAME=periodic
|
GITHUB_USERNAME=periodic
|
||||||
'';
|
'';
|
||||||
initExtra = ''
|
initContent = ''
|
||||||
# Make ^U work like it does in Bash
|
# Make ^U work like it does in Bash
|
||||||
bindkey "^U" backward-kill-line
|
bindkey "^U" backward-kill-line
|
||||||
|
|
||||||
|
|||||||
16
system/features/audio.nix
Normal file
16
system/features/audio.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ ... }: {
|
||||||
|
# RealtimeKit hands out realtime scheduling priority to user processes on
|
||||||
|
# demand, e.g. audio
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
services.pulseaudio.enable = false;
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -88,11 +88,6 @@
|
|||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.xserver.libinput.enable = true;
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./qmk.nix
|
./qmk.nix
|
||||||
../../authorized-keys.nix
|
../../authorized-keys.nix
|
||||||
|
../../features/audio.nix
|
||||||
../../features/gc.nix
|
../../features/gc.nix
|
||||||
../../features/gui.nix
|
../../features/gui.nix
|
||||||
../../features/container-dev.nix
|
../../features/container-dev.nix
|
||||||
|
|||||||
@@ -57,22 +57,6 @@
|
|||||||
# Enable a secret manager
|
# Enable a secret manager
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.xserver.libinput.enable = true;
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../authorized-keys.nix
|
../../authorized-keys.nix
|
||||||
|
../../features/audio.nix
|
||||||
../../features/gc.nix
|
../../features/gc.nix
|
||||||
../../features/gui.nix
|
../../features/gui.nix
|
||||||
../../features/container-dev.nix
|
../../features/container-dev.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user