Add Solvespace and emacs

This commit is contained in:
Erwin Boskma 2022-02-03 22:57:53 +01:00
parent ea3de70a5a
commit f0fe297151
Signed by: erwin
GPG key ID: 270B20D17394F7E5
6 changed files with 54 additions and 11 deletions

View file

@ -0,0 +1,14 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.eboskma.programs.emacs;
in
{
options.eboskma.programs.emacs = { enable = mkEnableOption "activate emacs"; };
config = mkIf (cfg.enable) {
programs.emacs = {
enable = true;
};
};
}

View file

@ -16,7 +16,6 @@ let
"security.tls.enable_0rtt_data" = false;
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
# "network.http.http3.enabled" = false; # Temporary workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1749908
};
nonDefaultDesktop = pkgs.makeDesktopItem {

View file

@ -0,0 +1,14 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.eboskma.programs.solvespace;
in
{
options.eboskma.programs.solvespace = { enable = mkEnableOption "activate solvespace"; };
config = mkIf (cfg.enable) {
home.packages = with pkgs; [
solvespace
];
};
}

View file

@ -4,6 +4,7 @@ let
cfg = config.eboskma.programs.sway;
mod = "Mod4";
swaylockcmd = "${pkgs.swaylock-effects}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --clock --image ~/.wallpapers/river-2560.png --fade-in 0.5 --scaling fill";
# swaylockcmd = "${pkgs.swaylock}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --image ~/.wallpapers/river-2560.png --scaling fill";
rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ./powermenu.sh);
in
{
@ -266,8 +267,8 @@ in
packages = with pkgs; [
dunst
swayidle
swaylock-effects
# swayidle
# swaylock-effects
];
};

View file

@ -91,6 +91,7 @@ in
# TODO: package as nix thingy
"custom/now_playing" = {
exec = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token";
exec-on-event = true;
format = " {}";
interval = 2;
on-click = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token play-pause";

View file

@ -43,6 +43,7 @@ in
bat.enable = true;
dropbox.enable = true;
dunst.enable = true;
emacs.enable = true;
electron = {
enable = true;
wayland = true;
@ -64,6 +65,7 @@ in
obs-studio.enable = true;
rofi.enable = true;
vscode.enable = true;
solvespace.enable = true;
ssh.enable = true;
sway.enable = true;
tmux.enable = true;
@ -134,10 +136,10 @@ in
};
};
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-m17n fcitx5-gtk fcitx5-configtool ];
};
# i18n.inputMethod = {
# enabled = "fcitx5";
# fcitx5.addons = with pkgs; [ fcitx5-m17n fcitx5-gtk fcitx5-configtool ];
# };
gtk = {
enable = true;
@ -174,6 +176,7 @@ in
../../home-manager/modules/bat
../../home-manager/modules/dropbox
../../home-manager/modules/dunst
../../home-manager/modules/emacs
../../home-manager/modules/electron
../../home-manager/modules/firefox
../../home-manager/modules/fish
@ -184,6 +187,7 @@ in
../../home-manager/modules/obs-studio
../../home-manager/modules/rofi
../../home-manager/modules/vscode
../../home-manager/modules/solvespace
../../home-manager/modules/ssh
../../home-manager/modules/sway
../../home-manager/modules/tmux
@ -204,7 +208,11 @@ in
gtk = true;
base = true;
};
extraPackages = with pkgs; [ swaylock-effects swayidle ];
extraPackages = with pkgs; [
swaylock-effects
# swaylock
swayidle
];
};
};
@ -230,9 +238,15 @@ in
security = {
pam.services.swaylock = {
text = ''
auth include login
'';
# text = ''
# auth include login
# '';
unixAuth = true;
setLoginUid = true;
enableGnomeKeyring = true;
allowNullPassword = true;
updateWtmp = true;
startSession = true;
};
pki.certificates = [ (builtins.readFile ./horus-ca.pem) ];
};