why wont this workkk
This commit is contained in:
parent
fae1c28497
commit
0ec88d704c
2 changed files with 21 additions and 0 deletions
15
modules/dev/cpp.nix
Normal file
15
modules/dev/cpp.nix
Normal 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
6
modules/dev/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ config, pkgs, lib, ...}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./cpp.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue