mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-13 05:17:00 -05:00
FreeCAD
This commit is contained in:
parent
49403e9078
commit
14b172fa24
5 changed files with 34 additions and 32 deletions
|
|
@ -64,9 +64,11 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
# Apps
|
# Apps
|
||||||
|
bambu-studio.enable = true;
|
||||||
discord.enable = true;
|
discord.enable = true;
|
||||||
element.enable = true;
|
element.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
freecad.enable = true;
|
||||||
kcalc.enable = true;
|
kcalc.enable = true;
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
# netbird.enable = true; See netbird.nix (I can't access the sops stuff from here?)
|
# netbird.enable = true; See netbird.nix (I can't access the sops stuff from here?)
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
options = {
|
|
||||||
bambu-studio = {
|
|
||||||
enable = lib.mkEnableOption {
|
|
||||||
description = "Enable Bambu Studio";
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config = lib.mkIf (config.gui.enable && config.bambu-studio.enable) {
|
|
||||||
home-manager.users.${config.user} = {
|
|
||||||
home.packages = [
|
|
||||||
pkgs.bambu-studio
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -4,13 +4,14 @@
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./element.nix
|
./element.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
|
./freecad.nix
|
||||||
./kcalc.nix
|
./kcalc.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
./netbird.nix
|
./netbird.nix
|
||||||
./obsidian.nix
|
./obsidian.nix
|
||||||
./openrgb.nix
|
./openrgb.nix
|
||||||
./prusa-slicer.nix
|
./slicers.nix
|
||||||
./spotifyd.nix
|
./spotifyd.nix
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
16
modules/common/applications/freecad.nix
Normal file
16
modules/common/applications/freecad.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
freecad = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable FreeCAD";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.gui.enable && config.freecad.enable) {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.freecad
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -14,18 +14,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf (config.gui.enable && config.prusa-slicer.enable) {
|
config = lib.mkIf (config.gui.enable) {
|
||||||
home-manager.users.${config.user} = {
|
home-manager.users.${config.user} = lib.mkMerge [
|
||||||
home.packages = [
|
{}
|
||||||
pkgs.prusa-slicer
|
(lib.mkIf (config.prusa-slicer.enable) {
|
||||||
];
|
home.packages = [
|
||||||
};
|
pkgs.prusa-slicer
|
||||||
};
|
];
|
||||||
config = lib.mkIf (config.gui.enable && config.bambu-studio.enable) {
|
})
|
||||||
home-manager.users.${config.user} = {
|
(lib.mkIf (config.bambu-studio.enable) {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.bambu-studio
|
pkgs.bambu-studio
|
||||||
];
|
];
|
||||||
};
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue