host/home: add 3d printing, add extra module for jan, disable nas user

This commit is contained in:
Dmitriy Pleshevskiy 2023-11-13 18:26:20 +03:00
parent 0e86974b3a
commit 25ebee1ed0
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
5 changed files with 40 additions and 10 deletions

View file

@ -1,4 +1,11 @@
{ config, pkgs, lib, inputs, extraHomeModule ? null, ... }: { config
, pkgs
, lib
, inputs
, extraHomeModule ? null
, extraJanHomeModule ? null
, ...
}:
let let
@ -34,6 +41,7 @@ in
inputs.wired.homeManagerModules.default inputs.wired.homeManagerModules.default
./home.nix ./home.nix
extraHomeModule extraHomeModule
extraJanHomeModule
]; ];
home.stateVersion = config.system.stateVersion; home.stateVersion = config.system.stateVersion;

View file

@ -45,8 +45,6 @@
hunspellDicts.ru_RU hunspellDicts.ru_RU
hunspellDicts.en_US hunspellDicts.en_US
kicad-small
procs procs
bottom bottom
asciinema # record the terminal asciinema # record the terminal
@ -56,14 +54,12 @@
# browsers # browsers
# a fork of firefox, focused on privacy, security and freedom # a fork of firefox, focused on privacy, security and freedom
(librewolf.override { (librewolf.override {
extraNativeMessagingHosts = [ passff-host ]; nativeMessagingHosts = [ passff-host ];
}) })
# ungoogled-chromium # ungoogled-chromium
tor-browser-bundle-bin tor-browser-bundle-bin
woodpecker-cli woodpecker-cli
unciv
]; ];
home.file = { home.file = {

View file

@ -1,4 +1,10 @@
{ config, pkgs, lib, inputs, extraHomeModule ? null, ... }: { config
, pkgs
, lib
, inputs
, extraHomeModule ? null
, ...
}:
{ {
nixpkgs.overlays = lib.mkAfter [ nixpkgs.overlays = lib.mkAfter [

View file

@ -14,13 +14,26 @@ in
../modules/nix.nix ../modules/nix.nix
../modules/wireguard-client.nix ../modules/wireguard-client.nix
../../home/users/jan ../../home/users/jan
../../home/users/nas # ../../home/users/nas
]; ];
extraHomeModule = { ... }: { extraHomeModule = { lib, pkgs, ... }: {
local.polybar.wifiDevice = "wlp3s0"; local.polybar.wifiDevice = "wlp3s0";
# local.alacritty.fontSize = 8.0; # local.alacritty.fontSize = 8.0;
local.wezterm.fontSize = 10.0; local.wezterm.fontSize = 10.0;
};
specialArgs = {
extraJanHomeModule = { lib, pkgs, ... }: {
home.packages = lib.mkAfter (with pkgs.unstable; [
# 3d programs
blender
cura
# electronics
kicad-small
]);
};
}; };
}; };
@ -32,7 +45,7 @@ in
../modules/nix.nix ../modules/nix.nix
../modules/wireguard-client.nix ../modules/wireguard-client.nix
../../home/users/jan ../../home/users/jan
../../home/users/nas # ../../home/users/nas
]; ];
extraHomeModule = { ... }: { extraHomeModule = { ... }: {

View file

@ -114,4 +114,11 @@
}; };
services.transmission.enable = true; services.transmission.enable = true;
# 3D printing
services.octoprint = {
enable = true;
port = 33002;
plugins = ps: [ ps.stlviewer ];
};
} }