mv cad software to modules
All checks were successful
nix flake show / show-flake (push) Successful in 26s
All checks were successful
nix flake show / show-flake (push) Successful in 26s
This commit is contained in:
parent
c44c480e61
commit
7868336d5b
@ -20,10 +20,8 @@
|
|||||||
home-manager
|
home-manager
|
||||||
tor
|
tor
|
||||||
tshark
|
tshark
|
||||||
freecad-wayland
|
|
||||||
aegisub
|
aegisub
|
||||||
mpv
|
mpv
|
||||||
fritzing
|
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
7
modules/nix/cad/default.nix
Normal file
7
modules/nix/cad/default.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./fritzing.nix
|
||||||
|
./freecad.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
15
modules/nix/cad/freecad.nix
Normal file
15
modules/nix/cad/freecad.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.freecad.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "enable freecad";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.freecad.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ freecad-wayland ];
|
||||||
|
};
|
||||||
|
}
|
||||||
15
modules/nix/cad/fritzing.nix
Normal file
15
modules/nix/cad/fritzing.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.fritzing.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "enable fritzing";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.fritzing.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ fritzing ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -20,6 +20,7 @@
|
|||||||
./flatpak
|
./flatpak
|
||||||
./ide
|
./ide
|
||||||
./ebook
|
./ebook
|
||||||
|
./cad
|
||||||
];
|
];
|
||||||
|
|
||||||
# Timzone and locales (same for all machines so I put it here)
|
# Timzone and locales (same for all machines so I put it here)
|
||||||
|
|||||||
@ -41,6 +41,8 @@ in
|
|||||||
};
|
};
|
||||||
arduino.enable = true;
|
arduino.enable = true;
|
||||||
calibre.enable = true;
|
calibre.enable = true;
|
||||||
|
freecad.enable = true;
|
||||||
|
fritzing.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,6 +39,8 @@ in
|
|||||||
};
|
};
|
||||||
arduino.enable = true;
|
arduino.enable = true;
|
||||||
calibre.enable = true;
|
calibre.enable = true;
|
||||||
|
freecad.enable = true;
|
||||||
|
fritzing.enable = true;
|
||||||
};
|
};
|
||||||
services.logind.lidSwitch = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user