feat: many changes
This commit is contained in:
@@ -21,6 +21,7 @@ in {
|
||||
./modules/appimage.nix
|
||||
./modules/desktop
|
||||
./modules/development
|
||||
./modules/printer.nix
|
||||
# ./modules/cyberghost.nix
|
||||
./utils/modules/autoupgrade.nix
|
||||
./modules/puppeteer.nix
|
||||
|
||||
@@ -1,9 +1,42 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
polkitAgent = pkgs.lxqt.lxqt-policykit;
|
||||
in
|
||||
{
|
||||
#### Fingerprint stack #######################################################
|
||||
services.fprintd.enable = true;
|
||||
services.fprintd.tod.enable = true;
|
||||
# Change the driver if your sensor isn’t Goodix.
|
||||
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||
|
||||
#### Polkit (needed for Bitwarden’s “system authentication” prompt) ###########
|
||||
security.polkit.enable = true;
|
||||
services.dbus.enable = true;
|
||||
|
||||
systemd.user.services.polkit-agent = {
|
||||
description = "Polkit authentication agent";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig.ExecStart = "${polkitAgent}/bin/lxqt-policykit-agent";
|
||||
serviceConfig.Restart = "on-failure";
|
||||
};
|
||||
|
||||
#### Autostart Bitwarden desktop in your user session ########################
|
||||
systemd.user.services.bitwarden = {
|
||||
description = "Bitwarden Desktop";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.bitwarden}/bin/bitwarden";
|
||||
serviceConfig.Restart = "on-abort";
|
||||
};
|
||||
|
||||
#### Handy tools #############################################################
|
||||
environment.systemPackages = with pkgs; [
|
||||
goldwarden
|
||||
bitwarden
|
||||
bitwarden-cli
|
||||
fprintd
|
||||
lxqt.lxqt-policykit
|
||||
];
|
||||
|
||||
environment.shellAliases = {
|
||||
@@ -14,4 +47,43 @@
|
||||
environment.shellInit = ''
|
||||
mkdir -p ~/.config/bitwarden-cli-epicenter ~/.config/bitwarden-cli-cloonar
|
||||
'';
|
||||
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# bitwarden
|
||||
# bitwarden-cli
|
||||
# (runCommand "bitwarden-polkit-policy" {} ''
|
||||
# mkdir -p $out/share/polkit-1/actions
|
||||
# cat > $out/share/polkit-1/actions/com.bitwarden.Bitwarden.policy <<'EOF'
|
||||
# <?xml version="1.0" encoding="UTF-8"?>
|
||||
# <!DOCTYPE policyconfig PUBLIC
|
||||
# "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
# "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
|
||||
# <policyconfig>
|
||||
# <action id="com.bitwarden.Bitwarden.unlock">
|
||||
# <description>Unlock Bitwarden</description>
|
||||
# <message>Authenticate to unlock Bitwarden</message>
|
||||
# <defaults>
|
||||
# <allow_any>no</allow_any>
|
||||
# <allow_inactive>no</allow_inactive>
|
||||
# <allow_active>auth_self</allow_active>
|
||||
# </defaults>
|
||||
# </action>
|
||||
# </policyconfig>
|
||||
# EOF
|
||||
# '')
|
||||
# ];
|
||||
|
||||
# systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||
# description = "polkit-gnome-authentication-agent-1";
|
||||
# wantedBy = [ "graphical-session.target" ];
|
||||
# wants = [ "graphical-session.target" ];
|
||||
# after = [ "graphical-session.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
# Restart = "on-failure";
|
||||
# RestartSec = 1;
|
||||
# TimeoutStopSec = 10;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ in {
|
||||
freecad
|
||||
firefox
|
||||
openscad
|
||||
orca-slicer
|
||||
|
||||
(where-is-my-sddm-theme.override {
|
||||
themeConfig.General = {
|
||||
|
||||
@@ -21,7 +21,11 @@ in {
|
||||
git
|
||||
git-filter-repo
|
||||
glib
|
||||
gnumake
|
||||
|
||||
air
|
||||
go
|
||||
|
||||
jq
|
||||
mkcert
|
||||
mqttui
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
printerFix = pkgs.writeShellApplication {
|
||||
name = "printer-fix";
|
||||
runtimeInputs = [ pkgs.cups ];
|
||||
text = ''
|
||||
lpadmin -p 'Cloonar' -E \
|
||||
-v 'ipp://brn30055c566237.cloonar.multimedia/ipp/print' \
|
||||
-m 'everywhere'
|
||||
|
||||
lpadmin -d 'epicenter.works'
|
||||
'';
|
||||
};
|
||||
|
||||
printerFixDesktopItem = pkgs.makeDesktopItem {
|
||||
name = "printer-fix";
|
||||
desktopName = "Printer Fix";
|
||||
exec = "printer-fix";
|
||||
};
|
||||
in {
|
||||
services.printing.enable = true;
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
/home/dominik/projects/cloonar/updns
|
||||
/home/dominik/projects/cloonar/mcp-servers-nix
|
||||
/home/dominik/projects/cloonar/ldap2vcard
|
||||
/home/dominik/projects/accessowl/ao-domainscraping
|
||||
|
||||
/home/dominik/projects/cloonar/flow/flow-docs
|
||||
/home/dominik/projects/cloonar/flow/flow-user-service
|
||||
|
||||
@@ -607,6 +607,7 @@ in
|
||||
git clone gitea@git.cloonar.com:Cloonar/updns.git ${persistHome}/projects/cloonar/updns 2>/dev/null
|
||||
git clone git@github.com:dpolakovics/mcp-servers-nix.git ${persistHome}/cloonar/mcp-servers-nix 2>/dev/null
|
||||
git clone gitea@git.cloonar.com:Cloonar/ldap2vcard.git ${persistHome}/projects/cloonar/ldap2vcard 2>/dev/null
|
||||
git clone gitea@git.cloonar.com:AccessOwl/ao-domainscraping.git ${persistHome}/projects/accessowl/ao-domainscraping 2>/dev/null
|
||||
|
||||
git clone gitea@git.cloonar.com:Cloonar/flow-docs.git ${persistHome}/projects/cloonar/flow/flow-docs 2>/dev/null
|
||||
git clone gitea@git.cloonar.com:Cloonar/flow-user-service.git ${persistHome}/projects/cloonar/flow/flow-user-service 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user