system: Add PC profile
This commit is contained in:
parent
91462a3a15
commit
97ba42af46
@ -32,6 +32,7 @@
|
||||
./nvidia-optimus.nix
|
||||
];
|
||||
nixfiles = {
|
||||
profile.pc.enable = true;
|
||||
common.remoteAccess.enable = true;
|
||||
hardware.opengl.enable = true;
|
||||
packageSets = {
|
||||
|
@ -17,7 +17,6 @@ in
|
||||
# Enable system Nix configuration
|
||||
nix.enable = lib.mkDefault true;
|
||||
};
|
||||
nixfiles.binfmt.enable = lib.mkDefault true;
|
||||
|
||||
# locale settings
|
||||
i18n = {
|
||||
|
@ -2,5 +2,6 @@
|
||||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
./pc.nix
|
||||
];
|
||||
}
|
||||
|
11
system/profile/pc.nix
Normal file
11
system/profile/pc.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user