This commit is contained in:
Ingolf Wagner 2023-07-05 20:43:59 +02:00
parent 4816145c14
commit dadd3ef367
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
9 changed files with 121 additions and 70 deletions

View file

@ -4,25 +4,6 @@ let
name = "lock";
# desktop file
# ------------
# makes it possible to be used by other programs
desktopFile = pkgs.writeTextFile {
name = "${name}.desktop";
destination = "/share/applications/${name}.desktop";
text = ''
[Desktop Entry]
Categories=Application;Utility;
Comment=Screen Saver
Encoding=UTF-8
Exec=${lockProgram}/bin/${name}
Icon=gnome-lockscreen
Name=${name}
Terminal=false
Type=Application
'';
};
# the lock program
lockProgram = pkgs.writeShellScriptBin "${name}" ''
${pkgs.xlockmore}/bin/xlock -mode life1d -size 1
@ -31,6 +12,14 @@ let
in
{
config = mkIf config.components.gui.enable {
environment.systemPackages = [ lockProgram desktopFile ];
environment.systemPackages = [
lockProgram
(pkgs.makeDesktopItem {
name = "lock";
desktopName = "lock";
exec = "${lockProgram}/bin/lock";
terminal = false;
})
];
};
}

View file

@ -11,6 +11,7 @@
./network-wireguard.nix
./network-tinc.nix
# ./network-tinc-retiolum.nix # make sure no service is open for this vpn!
./hass.nix
./hass-zigbee2mqtt.nix

View file

@ -0,0 +1,13 @@
{ config, ... }:
{
sops.secrets.tinc_retiolum_ed25519_key = { };
sops.secrets.tinc_retiolum_rsa_key = { };
networking.retiolum.port = 720;
networking.retiolum.nodename = "centari";
services.tinc.networks.retiolum = {
ed25519PrivateKeyFile = config.sops.secrets.tinc_retiolum_ed25519_key.path;
rsaPrivateKeyFile = config.sops.secrets.tinc_retiolum_rsa_key.path;
};
}

View file

@ -8,6 +8,7 @@
./hardware-configuration.nix
./packages.nix
./packages-development.nix
./syncthing.nix
./cups.nix
./tinc.nix

View file

@ -0,0 +1,57 @@
{ pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; let
# to make copilot work
# jetbrains.pycharm-professional
fhsPyCharm = pkgs.buildFHSUserEnv {
name = "pycharm";
targetPkgs = pkgs: (with pkgs; [
black
isort
jetbrains.pycharm-professional
python311
pipenv
zlib # needed for NumPy
nodejs
]);
runScript = "pycharm-professional";
};
# jetbrains.datagrip
fhsDataGrip = pkgs.buildFHSUserEnv {
name = "datagrip";
targetPkgs = pkgs: (with pkgs; [
jetbrains.datagrip
]);
runScript = "datagrip";
};
in
[
# rust development environment
rustup
jetbrains.clion
# general
jetbrains.idea-ultimate
#vscode
fhsDataGrip
fhsPyCharm
(pkgs.makeDesktopItem {
name = "pycharm";
desktopName = "Python IDE";
exec = "${fhsPyCharm}/bin/pycharm";
terminal = false;
})
# python
python3Full
pipenv
];
}

View file

@ -73,19 +73,6 @@ in
-t "#"
'')
# rust development environment
rustup
jetbrains.clion
# general
jetbrains.idea-ultimate
#vscode
# python
python3Full
jetbrains.pycharm-professional
jetbrains.datagrip
# matrix clients
# --------------
#element-desktop
@ -106,6 +93,7 @@ in
# };
#}))
sops
steam-run

View file

@ -35,6 +35,7 @@ in
createHome = true;
extraGroups = [ "audio" "input" "video" "pipewire" ];
group = "steam";
shell = pkgs.bashInteractive;
};
users.groups.steam = { };