why wont this workkk

This commit is contained in:
Sakooooo 2023-07-06 18:28:21 +03:00
parent fae1c28497
commit 0ec88d704c
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 21 additions and 0 deletions

15
modules/dev/cpp.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.dev.cpp;
in {
options.modules.dev.cpp = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
cmake
gcc
];
};
}

6
modules/dev/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, pkgs, lib, ...}:
{
imports = [
./cpp.nix
];
}