system: Add PC profile

This commit is contained in:
NullBite 2024-02-16 17:06:13 +01:00
parent 91462a3a15
commit 97ba42af46
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
4 changed files with 13 additions and 1 deletions

View File

@ -32,6 +32,7 @@
./nvidia-optimus.nix
];
nixfiles = {
profile.pc.enable = true;
common.remoteAccess.enable = true;
hardware.opengl.enable = true;
packageSets = {

View File

@ -17,7 +17,6 @@ in
# Enable system Nix configuration
nix.enable = lib.mkDefault true;
};
nixfiles.binfmt.enable = lib.mkDefault true;
# locale settings
i18n = {

View File

@ -2,5 +2,6 @@
{
imports = [
./base.nix
./pc.nix
];
}

11
system/profile/pc.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs, config, lib, ... }:
let
cfg = config.nixfiles.profile.desktop;
in
{
options.nixfiles.profile.pc.enable = lib.mkEnableOption "the personal computer profile";
config = lib.mkIf cfg.enable {
nixfiles.profile.base.enable = lib.mkDefault true;
nixfiles.binfmt.enable = lib.mkDefault true;
};
}