This commit is contained in:
Daylin Morgan 2024-01-25 12:23:32 -06:00
parent eb15a5aabb
commit b47ff20d80
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
13 changed files with 26 additions and 36 deletions

View file

@ -8,8 +8,8 @@
];
languages = {
nim.enable = true;
python.enable = true;
nim= true;
python= true;
};
cli.enable = true;

View file

@ -11,14 +11,6 @@
gui
nix-ld
virtualization
];
environment.systemPackages = with pkgs; [
(vivaldi.override {
proprietaryCodecs = true;
# enableWidevine = true;
})
];
users = {

View file

@ -9,8 +9,7 @@
# hyprland
nix-ld
virtualization
virtualbox
restic
];
programs.hyprland.enable = true;
@ -18,11 +17,11 @@
services.vpn.enable = true;
languages = {
misc.enable = true;
python.enable = true;
nim.enable = true;
tex.enable = true;
node.enable = true;
misc = true;
python = true;
nim = true;
tex = true;
node = true;
};
cli.enable = true;

View file

@ -5,10 +5,10 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.misc;
cfg = config.languages;
in {
options.languages.misc.enable = mkEnableOption "go + rustup";
config = mkIf cfg.enable {
options.languages.misc = mkEnableOption "go + rustup";
config = mkIf cfg.misc {
environment.systemPackages = with pkgs; [
go
rustup

View file

@ -6,10 +6,10 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.nim;
cfg = config.languages;
in {
options.languages.nim.enable = mkEnableOption "nim";
config = mkIf cfg.enable {
options.languages.nim = mkEnableOption "nim";
config = mkIf cfg.nim {
nixpkgs.overlays = [
(import ../../overlays/nim {})
(import ../../overlays/nimlsp {})

View file

@ -5,10 +5,10 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.node;
cfg = config.languages;
in {
options.languages.node.enable = mkEnableOption "node";
config = mkIf cfg.enable {
options.languages.node = mkEnableOption "node";
config = mkIf cfg.node {
environment.systemPackages = with pkgs; [
nodejs
nodePackages.pnpm

View file

@ -5,10 +5,10 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.python;
cfg = config.languages ;
in {
options.languages.python.enable = mkEnableOption "python";
config = mkIf cfg.enable {
options.languages.python = mkEnableOption "python";
config = mkIf cfg.python {
environment.systemPackages = with pkgs; [
# https://github.com/Mic92/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld
(pkgs.writeShellScriptBin "python" ''

View file

@ -5,10 +5,10 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.tex;
cfg = config.languages;
in {
options.languages.tex.enable = mkEnableOption "tex";
config = mkIf cfg.enable {
options.languages.tex = mkEnableOption "tex";
config = mkIf cfg.tex {
environment.systemPackages = with pkgs; [
texlive.combined.scheme-full
];

View file

@ -1,17 +1,16 @@
{
input,
inputs,
pkgs,
...
}: {
imports = [
./lock
imports = with inputs.self.nixosModules; [
lock
];
# Enable the X11 windowing system.
services.xserver = {
enable = true;
displayManager.startx.enable = true;
desktopManager.plasma5.enable = true;
windowManager.qtile.enable = true;
};