small fixes
This commit is contained in:
parent
cbed702076
commit
60d0753c11
3
TODO.md
3
TODO.md
@ -1,10 +1,9 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
* grafana for all services
|
||||||
* move some profiles to modules (like vpn.nix)
|
* move some profiles to modules (like vpn.nix)
|
||||||
* use sops for all occurrences of hashedPassword
|
* use sops for all occurrences of hashedPassword
|
||||||
* auto-import gpg keys
|
* auto-import gpg keys
|
||||||
* wait headscale start until authentik
|
|
||||||
* auto-login to tailscale for hypervisor
|
|
||||||
* config qbittorrent
|
* config qbittorrent
|
||||||
* fix waybar config
|
* fix waybar config
|
||||||
* change writeShellScript and writeShellScriptBin to writeShellApplication
|
* change writeShellScript and writeShellScriptBin to writeShellApplication
|
||||||
|
@ -48,7 +48,7 @@ in
|
|||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
file in the format of an EnvironmentFile as described by systemd.exec(5).
|
File in the format of an EnvironmentFile as described by systemd.exec(5).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
adminpassFile = mkOption {
|
adminpassFile = mkOption {
|
||||||
|
@ -5,7 +5,6 @@ let
|
|||||||
fonts = config.lib.base16.theme.fonts;
|
fonts = config.lib.base16.theme.fonts;
|
||||||
profileName = config.mainuser;
|
profileName = config.mainuser;
|
||||||
homeDir = config.home-manager.users.${profileName}.home.homeDirectory;
|
homeDir = config.home-manager.users.${profileName}.home.homeDirectory;
|
||||||
profilePath = ".mozilla/firefox/${profileName}";
|
|
||||||
mkUserJs = { prefs ? {}, extraPrefs ? "" }: ''
|
mkUserJs = { prefs ? {}, extraPrefs ? "" }: ''
|
||||||
${extraPrefs}
|
${extraPrefs}
|
||||||
|
|
||||||
@ -14,9 +13,7 @@ let
|
|||||||
'') prefs)}
|
'') prefs)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
firefox-kpoxa = pkgs.writeShellScriptBin "firefox-kpoxa" ''
|
|
||||||
${pkgs.firefox}/bin/firefox -profile ${homeDir}/.mozilla/firefox/kpoxa
|
|
||||||
'';
|
|
||||||
in {
|
in {
|
||||||
services.dbus.packages = [ pkgs.firefox-wayland ];
|
services.dbus.packages = [ pkgs.firefox-wayland ];
|
||||||
|
|
||||||
@ -24,29 +21,35 @@ in {
|
|||||||
MOZ_USE_XINPUT2 = "1";
|
MOZ_USE_XINPUT2 = "1";
|
||||||
MOZ_DBUS_REMOTE = "1";
|
MOZ_DBUS_REMOTE = "1";
|
||||||
};
|
};
|
||||||
# programs.browserpass.enable = true;
|
|
||||||
|
|
||||||
defaultApplications.browser = {
|
defaultApplications.browser = {
|
||||||
cmd = "${pkgs.firefox}/bin/firefox";
|
cmd = "${pkgs.firefox}/bin/firefox";
|
||||||
desktop = "firefox";
|
desktop = "firefox";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = let
|
||||||
home.packages = [ firefox-kpoxa ];
|
firefoxFinal = config.home-manager.users.${config.mainuser}.programs.firefox.finalPackage;
|
||||||
# Mailvelope GnuPG integration
|
firefox-kpoxa = pkgs.writeShellScriptBin "firefox-kpoxa" ''
|
||||||
home.file.".mozilla/native-messaging-hosts/gpgmejson.json".text = ''
|
${firefoxFinal}/bin/firefox -profile ${homeDir}/.mozilla/firefox/kpoxa
|
||||||
{
|
|
||||||
"name": "gpgmejson",
|
|
||||||
"description": "JavaScript binding for GnuPG",
|
|
||||||
"path": "${pkgs.gpgme.dev}/bin/gpgme-json",
|
|
||||||
"type": "stdio",
|
|
||||||
"allowed_extensions": ["jid1-AQqSMBYb0a8ADg@jetpack"]
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
|
in {
|
||||||
|
home.packages = [ firefox-kpoxa ];
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox;
|
package = pkgs.firefox.override {
|
||||||
|
# Mailvelope GnuPG integration
|
||||||
|
nativeMessagingHosts = [
|
||||||
|
(pkgs.writeTextDir "lib/mozilla/native-messaging-hosts/gpgmejson.json" ''
|
||||||
|
{
|
||||||
|
"name": "gpgmejson",
|
||||||
|
"description": "JavaScript binding for GnuPG",
|
||||||
|
"path": "${pkgs.gpgme.dev}/bin/gpgme-json",
|
||||||
|
"type": "stdio",
|
||||||
|
"allowed_extensions": ["jid1-AQqSMBYb0a8ADg@jetpack"]
|
||||||
|
}
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
${config.mainuser} = {
|
${config.mainuser} = {
|
||||||
id = 0;
|
id = 0;
|
||||||
@ -99,7 +102,6 @@ in {
|
|||||||
"network.allow-experiments" = false;
|
"network.allow-experiments" = false;
|
||||||
|
|
||||||
"network.protocol-handler.external.element" = false;
|
"network.protocol-handler.external.element" = false;
|
||||||
# "identity.sync.tokenserver.uri" = "https://fsync.ataraxiadev.com/1.0/sync/1.5";
|
|
||||||
};
|
};
|
||||||
extraPrefs = "${fileContents "${pkgs.arkenfox-userjs}/share/user.js/user.js"}";
|
extraPrefs = "${fileContents "${pkgs.arkenfox-userjs}/share/user.js/user.js"}";
|
||||||
};
|
};
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
users.users.atticd = {
|
users.users.atticd = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "atticd";
|
group = "atticd";
|
||||||
hashedPassword = "$y$j9T$ZC44T3XYOPapB26cyPsA4.$8wlYEbwXFszC9nrg0vafqBZFLMPabXdhnzlT3DhUit6";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.atticd = {
|
systemd.services.atticd = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user