316 current 1970-01-01 01:00:00 23.11.20240514.9ddcaff 6.1.90 *

This commit is contained in:
Max Känner 2024-05-18 23:05:04 +02:00
parent 1e0e83b934
commit e5a70822ad
4 changed files with 27 additions and 9 deletions

View File

@ -10,14 +10,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
# script for rebuilding nixos ../../modules/nixos
../../modules/nixos/rebuild.nix
../../modules/nixos/wifi.nix
../../modules/nixos/sops.nix
# greetd login manager
../../modules/nixos/greetd.nix
# sway as window manager
../../modules/nixos/sway.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
]; ];

View File

@ -0,0 +1,7 @@
{...}: {
imports = [./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix];
config = {
music.enable = true;
};
}

18
modules/nixos/music.nix Normal file
View File

@ -0,0 +1,18 @@
{
lib,
config,
...
}: let
cfg = config.music;
in {
options = {
music.enable = lib.mkEnableOption "sound system";
};
config = lib.mkIf cfg.enable {
musnix = {
enable = true;
rtcqs.enable = true;
};
};
}

View File

@ -1,7 +1,7 @@
{ {
lib,
config, config,
pkgs, pkgs,
lib,
... ...
}: { }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [