Compare commits
3 Commits
9b0b088ecc
...
85f0b82334
| Author | SHA1 | Date | |
|---|---|---|---|
| 85f0b82334 | |||
| 763cd548f4 | |||
| b100324fba |
@ -18,9 +18,6 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
lf
|
||||
arduino-ide
|
||||
calibre
|
||||
tor
|
||||
tshark
|
||||
freecad-wayland
|
||||
|
||||
@ -19,6 +19,7 @@ in
|
||||
file
|
||||
vim
|
||||
fastfetch
|
||||
lf
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
./vpn
|
||||
./utilities
|
||||
./flatpak
|
||||
./ide
|
||||
./ebook
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
15
modules/nix/ebook/calibre.nix
Normal file
15
modules/nix/ebook/calibre.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.calibre.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable calibre";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.calibre.enable {
|
||||
environment.systemPackages = with pkgs; [ calibre ];
|
||||
};
|
||||
}
|
||||
6
modules/nix/ebook/default.nix
Normal file
6
modules/nix/ebook/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./calibre.nix
|
||||
];
|
||||
}
|
||||
@ -39,6 +39,8 @@ in
|
||||
dev.enable = true;
|
||||
gaming.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
calibre.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -37,6 +37,8 @@ in
|
||||
dev.enable = true;
|
||||
media.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
calibre.enable = true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
15
modules/nix/ide/arduino.nix
Normal file
15
modules/nix/ide/arduino.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.arduino.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "arduino ide";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.arduino.enable {
|
||||
environment.systemPackages = with pkgs; [ arduino-ide ];
|
||||
};
|
||||
}
|
||||
6
modules/nix/ide/default.nix
Normal file
6
modules/nix/ide/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./arduino.nix
|
||||
];
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user