core: split to core-desktop.nix
This commit is contained in:
parent
0dfba79fd3
commit
22a7d47ace
3 changed files with 29 additions and 25 deletions
|
@ -7,6 +7,7 @@
|
||||||
# Include device-specific overrides
|
# Include device-specific overrides
|
||||||
(if builtins.pathExists /etc/nixos/device-configuration.nix then /etc/nixos/device-configuration.nix else null)
|
(if builtins.pathExists /etc/nixos/device-configuration.nix then /etc/nixos/device-configuration.nix else null)
|
||||||
../nix-os/core.nix
|
../nix-os/core.nix
|
||||||
|
../nix-os/core-desktop.nix
|
||||||
../nix-os/nvidia.nix
|
../nix-os/nvidia.nix
|
||||||
../nix-os/docker.nix
|
../nix-os/docker.nix
|
||||||
../nix-os/razer.nix
|
../nix-os/razer.nix
|
||||||
|
|
28
nix-os/core-desktop.nix
Normal file
28
nix-os/core-desktop.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
|
||||||
|
# Enable audio interfaces renaming
|
||||||
|
wireplumber.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
mpv
|
||||||
|
];
|
||||||
|
|
||||||
|
services.openssh.extraConfig = ''
|
||||||
|
X11Forwarding yes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -12,29 +12,8 @@
|
||||||
# kernel
|
# kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# X11 and desktop/display manager is enabled using imported files
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# 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;
|
|
||||||
|
|
||||||
# Enable audio interfaces renaming
|
|
||||||
wireplumber.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -46,7 +25,6 @@
|
||||||
git
|
git
|
||||||
ffmpeg
|
ffmpeg
|
||||||
yt-dlp
|
yt-dlp
|
||||||
mpv
|
|
||||||
htop
|
htop
|
||||||
btop
|
btop
|
||||||
fastfetch
|
fastfetch
|
||||||
|
@ -69,8 +47,5 @@
|
||||||
22
|
22
|
||||||
8022
|
8022
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
|
||||||
X11Forwarding yes
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue