refactor: rework NixOS desktop module
This commit is contained in:
parent
b9d5f79703
commit
70b39e5e7f
4 changed files with 51 additions and 23 deletions
|
@ -1,28 +1,19 @@
|
|||
{ pkgs, lib, stateVersion, hostname, username, hostConfig, ... }:
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
../hosts/${hostname}/hardware-configuration.nix
|
||||
../hosts/${hostname}/nixos-config.nix
|
||||
../modules/nixos
|
||||
./includes/hardware/bootloader.nix
|
||||
./includes/system/locales.nix
|
||||
./includes/system/flakes.nix
|
||||
./includes/system/user.nix
|
||||
./includes/system/udisks2.nix
|
||||
./includes/system/lvm.nix
|
||||
./includes/system/doas.nix
|
||||
./includes/system/neovim.nix
|
||||
./includes/system/overlay.nix
|
||||
] ++ (
|
||||
if hostConfig.desktop then
|
||||
[
|
||||
./includes/desktop/swaylock.nix
|
||||
./includes/desktop/pipewire.nix
|
||||
./includes/desktop/xdg-portal.nix
|
||||
]
|
||||
else []
|
||||
);
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
../hosts/${hostname}/hardware-configuration.nix
|
||||
../hosts/${hostname}/nixos-config.nix
|
||||
../modules/nixos
|
||||
./includes/hardware/bootloader.nix
|
||||
./includes/system/locales.nix
|
||||
./includes/system/flakes.nix
|
||||
./includes/system/user.nix
|
||||
./includes/system/udisks2.nix
|
||||
./includes/system/lvm.nix
|
||||
./includes/system/doas.nix
|
||||
./includes/system/neovim.nix
|
||||
./includes/system/overlay.nix
|
||||
];
|
||||
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue