mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 22:40:05 -05:00
Adding a VERY basic Python3 Config
This commit is contained in:
parent
c0cb948532
commit
e2dea1a7b4
2 changed files with 19 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nixpkgs-fmt.nix
|
./nixpkgs-fmt.nix
|
||||||
|
./python3.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
modules/common/programming/python.nix
Normal file
18
modules/common/programming/python.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
python3 = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable python3";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.python3.enable) {
|
||||||
|
home-manager.users.${config.user} = {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.python3
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue