refactor: code style

This commit is contained in:
Daniel Langbein 2025-02-09 21:35:44 +01:00
parent e604600dbc
commit 16566f25e3
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
53 changed files with 74 additions and 74 deletions

View File

@ -391,7 +391,7 @@ journalctl --user --follow
While I was on a bike tour I did some config changes to update my NixOS servers using only my smartphone and Nitrokey (GPG smartcard): While I was on a bike tour I did some config changes to update my NixOS servers using only my smartphone and Nitrokey (GPG smartcard):
- `home-manager.users.yoda.programs.git.signing.signByDefault = false;` - `home-manager.users."yoda".programs.git.signing.signByDefault = false;`
- Import `../../modules/git.nix` in `hosts/yodaNas/configuration.nix` - Import `../../modules/git.nix` in `hosts/yodaNas/configuration.nix`
- Import `./../modules/docker-pushrm.nix` in `hosts/yodaNas/configuration.nix` - Import `./../modules/docker-pushrm.nix` in `hosts/yodaNas/configuration.nix`
- In `hieve.nix`, set `allowLocalDeployment` to `true` for `yodaNas` and `yodaHedgehog` - In `hieve.nix`, set `allowLocalDeployment` to `true` for `yodaNas` and `yodaHedgehog`

View File

@ -56,7 +56,7 @@
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
users.users.root.openssh.authorizedKeys.keys = [ users.users."root".openssh.authorizedKeys.keys = [
(builtins.readFile ./assets/ssh/nitrokey.pub) (builtins.readFile ./assets/ssh/nitrokey.pub)
]; ];

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home-manager.users.root = { osConfig, config, pkgs, ... }: { home-manager.users."root" = { osConfig, config, pkgs, ... }: {
# SSH client configuration. # SSH client configuration.
programs.ssh = { programs.ssh = {

View File

@ -13,7 +13,7 @@
]; ];
# Download BikeTripPlanner Git repository. # Download BikeTripPlanner Git repository.
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
home.file."readonly-git/BikeTripPlanner".source = (builtins.fetchGit { home.file."readonly-git/BikeTripPlanner".source = (builtins.fetchGit {
url = "https://github.com/langbein-daniel/BikeTripPlanner"; url = "https://github.com/langbein-daniel/BikeTripPlanner";
#rev = "6d4daf18235189825b0c314901b1617ece6d8641"; #rev = "6d4daf18235189825b0c314901b1617ece6d8641";

View File

@ -34,7 +34,7 @@
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
users.users.root.openssh.authorizedKeys.keys = [ users.users."root".openssh.authorizedKeys.keys = [
(builtins.readFile ./assets/ssh/nitrokey.pub) (builtins.readFile ./assets/ssh/nitrokey.pub)
]; ];
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;

View File

@ -4,7 +4,7 @@
# https://nixos.wiki/wiki/Android#adb_setup # https://nixos.wiki/wiki/Android#adb_setup
programs.adb.enable = true; programs.adb.enable = true;
users.users.yoda.extraGroups = [ "adbusers" "plugdev" ]; users.users."yoda".extraGroups = [ "adbusers" "plugdev" ];
# plugdev group: https://developer.android.com/studio/run/device # plugdev group: https://developer.android.com/studio/run/device
# How to add user to new group: https://superuser.com/a/1352988 # How to add user to new group: https://superuser.com/a/1352988

View File

@ -36,7 +36,7 @@ in
"unrar" "unrar"
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
ark-with-unrar # Archive manager: Compress and decompress ark-with-unrar # Archive manager: Compress and decompress
]; ];

View File

@ -3,7 +3,7 @@
# See also: # See also:
# Temporary workaround until https://github.com/nix-community/home-manager/issues/3447 is merged. # Temporary workaround until https://github.com/nix-community/home-manager/issues/3447 is merged.
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
home.file."keepassxc" = { home.file."keepassxc" = {
target = ".config/autostart/org.keepassxc.KeePassXC.desktop"; target = ".config/autostart/org.keepassxc.KeePassXC.desktop";
source = (pkgs.keepassxc + "/share/applications/org.keepassxc.KeePassXC.desktop"); source = (pkgs.keepassxc + "/share/applications/org.keepassxc.KeePassXC.desktop");

View File

@ -51,7 +51,7 @@
# Define a user account. # Define a user account.
# Don't forget to set a password with `passwd`. # Don't forget to set a password with `passwd`.
users.users.yoda = { users.users."yoda" = {
isNormalUser = true; isNormalUser = true;
description = "Yoda"; description = "Yoda";
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
@ -74,7 +74,7 @@
# Options only for build.system.vm - they wont get applied when building build.system.toplevel aka the normal system config. # Options only for build.system.vm - they wont get applied when building build.system.toplevel aka the normal system config.
# https://discourse.nixos.org/t/wayland-compositors-an-build-vm-not-working/46486/2 # https://discourse.nixos.org/t/wayland-compositors-an-build-vm-not-working/46486/2
virtualisation.vmVariant = { virtualisation.vmVariant = {
users.users.yoda.initialPassword = "asdf"; users.users."yoda".initialPassword = "asdf";
virtualisation.qemu.options = [ virtualisation.qemu.options = [
"-device virtio-vga-gl" "-device virtio-vga-gl"
"-display sdl,gl=on,show-cursor=off" "-display sdl,gl=on,show-cursor=off"

View File

@ -32,7 +32,7 @@
# Enable networking. # Enable networking.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# #
users.users.yoda = { users.users."yoda" = {
extraGroups = [ "networkmanager" ]; extraGroups = [ "networkmanager" ];
}; };

View File

@ -18,10 +18,10 @@ in
# Required by home-manager programs.bash.enableCompletion # Required by home-manager programs.bash.enableCompletion
environment.pathsToLink = [ "/share/bash-completion" ]; environment.pathsToLink = [ "/share/bash-completion" ];
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
programs.bash = bash-config; programs.bash = bash-config;
}; };
home-manager.users.root = { osConfig, config, pkgs, ... }: { home-manager.users."root" = { osConfig, config, pkgs, ... }: {
programs.bash = bash-config; programs.bash = bash-config;
}; };
} }

View File

@ -3,7 +3,7 @@
# A direct integration in Nautilus is still in progress: https://gitlab.gnome.org/raggesilver/blackbox/-/issues/20 # A direct integration in Nautilus is still in progress: https://gitlab.gnome.org/raggesilver/blackbox/-/issues/20
# Thus, we use nautilus-open-any-terminal. # Thus, we use nautilus-open-any-terminal.
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
blackbox-terminal # Terminal emulator. Can show notifications for commands finished in the background. blackbox-terminal # Terminal emulator. Can show notifications for commands finished in the background.
nautilus-open-any-terminal # For Nautilus (GNOME files) integration nautilus-open-any-terminal # For Nautilus (GNOME files) integration
@ -11,7 +11,7 @@
}; };
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
# For Nautilus (GNOME files) integration # For Nautilus (GNOME files) integration
"com/github/stunkymonkey/nautilus-open-any-terminal" = { "com/github/stunkymonkey/nautilus-open-any-terminal" = {

View File

@ -7,7 +7,7 @@
# Open issue: HiDPI support. https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/635 # Open issue: HiDPI support. https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/635
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
gnome-boxes # Virtual machines gnome-boxes # Virtual machines
]; ];
@ -16,7 +16,7 @@
# libvirt is a dependency of GNOME Boxes # libvirt is a dependency of GNOME Boxes
# https://nixos.wiki/wiki/Libvirt # https://nixos.wiki/wiki/Libvirt
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
users.users.yoda.extraGroups = [ "libvirtd" ]; users.users."yoda".extraGroups = [ "libvirtd" ];
# Required for USB redirection to work, see # Required for USB redirection to work, see
# https://github.com/NixOS/nixpkgs/issues/39129#issuecomment-382569032 # https://github.com/NixOS/nixpkgs/issues/39129#issuecomment-382569032

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# TODO: Temporary fix until exiftool fix is landed in NixOS stable # TODO: Temporary fix until exiftool fix is landed in NixOS stable
# https://github.com/NixOS/nixpkgs/issues/332561 # https://github.com/NixOS/nixpkgs/issues/332561

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
dosbox-x # Virtual machines with DOS-based Windows such as Windows 3.x and Windows 9x dosbox-x # Virtual machines with DOS-based Windows such as Windows 3.x and Windows 9x
]; ];

View File

@ -18,7 +18,7 @@
# Workaround: Use Flatpak version ... # Workaround: Use Flatpak version ...
# Discussion on GitHub: https://github.com/NixOS/nixpkgs/issues/343806 AMD GPUs and NixOS - 'Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)' # Discussion on GitHub: https://github.com/NixOS/nixpkgs/issues/343806 AMD GPUs and NixOS - 'Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)'
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# Matrix chat client. # Matrix chat client.
element-desktop element-desktop

View File

@ -1,6 +1,6 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
file-roller # Archive manager: Compress and decompress file-roller # Archive manager: Compress and decompress
lz4 # Add support to extract lz4 archives lz4 # Add support to extract lz4 archives

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
firefox # Web browser firefox # Web browser
]; ];
@ -14,7 +14,7 @@
# Required for dconf.settings # Required for dconf.settings
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = ["firefox.desktop"]; favorite-apps = ["firefox.desktop"];

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
unstable.freetube # YouTube client. unstable.freetube # YouTube client.
]; ];

View File

@ -3,7 +3,7 @@
# Enable firmware update daemon # Enable firmware update daemon
services.fwupd.enable = true; services.fwupd.enable = true;
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# Install firmware on devices supported by fwupd. # Install firmware on devices supported by fwupd.
gnome-firmware gnome-firmware

View File

@ -17,19 +17,19 @@ let
}; };
in in
{ {
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
programs.fzf = fzf-config; programs.fzf = fzf-config;
}; };
home-manager.users.root = { osConfig, config, pkgs, ... }: { home-manager.users."root" = { osConfig, config, pkgs, ... }: {
programs.fzf = fzf-config; programs.fzf = fzf-config;
}; };
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
fd fd
]; ];
}; };
users.users.root = { users.users."root" = {
packages = with pkgs; [ packages = with pkgs; [
fd fd
]; ];

View File

@ -42,7 +42,7 @@
"dotnet-sdk-6.0.428" "dotnet-sdk-6.0.428"
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# #
# Sandbox # Sandbox

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
libsForQt5.ghostwriter # Markdown editor libsForQt5.ghostwriter # Markdown editor
]; ];
@ -9,7 +9,7 @@
# This fixes blurry fonts with fractional scaling on Wayland. # This fixes blurry fonts with fractional scaling on Wayland.
environment.sessionVariables.QT_QPA_PLATFORM = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "wayland"; environment.sessionVariables.QT_QPA_PLATFORM = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "wayland";
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
home.file.".config/kde.org/ghostwriter.conf" = { home.file.".config/kde.org/ghostwriter.conf" = {
text = '' text = ''
[Application] [Application]

View File

@ -1,12 +1,12 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
git git
]; ];
}; };
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Daniel Langbein"; userName = "Daniel Langbein";

View File

@ -23,7 +23,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, lib, ... }: {
home.file = { home.file = {
# Templates to create new Files with Nautilus. # Templates to create new Files with Nautilus.
# It is also possible to group them by category # It is also possible to group them by category

View File

@ -11,7 +11,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
users.users.yoda = { users.users."yoda" = {
packages = with pkgs.gnomeExtensions; [ packages = with pkgs.gnomeExtensions; [
caffeine caffeine
#openweather #openweather
@ -26,7 +26,7 @@
# If on X11: Enable dependency of "x11-gestures". # If on X11: Enable dependency of "x11-gestures".
services.touchegg.enable = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) true; services.touchegg.enable = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
# TODO: Alternative # TODO: Alternative
# home.packages = with pkgs.gnomeExtensions; [ # home.packages = with pkgs.gnomeExtensions; [
# caffeine # caffeine

View File

@ -22,7 +22,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/mutter" = { "org/gnome/mutter" = {
experimental-features = ["scale-monitor-framebuffer" "xwayland-native-scaling"]; experimental-features = ["scale-monitor-framebuffer" "xwayland-native-scaling"];

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
#gnome.gnome-terminal # Terminal emulator #gnome.gnome-terminal # Terminal emulator
nautilus-open-any-terminal # For Nautilus (GNOME files) integration nautilus-open-any-terminal # For Nautilus (GNOME files) integration
@ -10,7 +10,7 @@
# For Nautilus (GNOME files) integration # For Nautilus (GNOME files) integration
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
# For Nautilus (GNOME files) integration # For Nautilus (GNOME files) integration
"com/github/stunkymonkey/nautilus-open-any-terminal" = { "com/github/stunkymonkey/nautilus-open-any-terminal" = {

View File

@ -4,7 +4,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/background" = { "org/gnome/desktop/background" = {
"picture-uri" = "/home/yoda/.config/background"; "picture-uri" = "/home/yoda/.config/background";

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
#zenith # Terminal resource monitor / task manager #zenith # Terminal resource monitor / task manager
btop # Terminal resource monitor / task manager btop # Terminal resource monitor / task manager

View File

@ -19,12 +19,12 @@ in
# https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module # https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files. # Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files.
home.stateVersion = "24.11"; home.stateVersion = "24.11";
}; };
home-manager.users.root = { osConfig, config, pkgs, ... }: { home-manager.users."root" = { osConfig, config, pkgs, ... }: {
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files. # Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files.
home.stateVersion = "24.11"; home.stateVersion = "24.11";

View File

@ -41,14 +41,14 @@ in
# TODO: Currently markdown previews are broken anyways because of issues with the sandboxed webbrowser on NixOS # TODO: Currently markdown previews are broken anyways because of issues with the sandboxed webbrowser on NixOS
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
jetbrains."${version}" jetbrains."${version}"
]; ];
}; };
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, lib, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = ["${version}.desktop"]; favorite-apps = ["${version}.desktop"];

View File

@ -3,7 +3,7 @@
# TODO: Only if display scaling != 1 # TODO: Only if display scaling != 1
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1"; environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1";
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
joplin-desktop # Markdown notes joplin-desktop # Markdown notes
]; ];

View File

@ -121,7 +121,7 @@
# pinentry-gnome # pinentry-gnome
#]; #];
#users.users.yoda = { #users.users."yoda" = {
# packages = with pkgs; [ # packages = with pkgs; [
# #pinentry-curses # #pinentry-curses
# pinentry-gnome # pinentry-gnome
@ -146,7 +146,7 @@
# Smartcard daemon. # Smartcard daemon.
services.pcscd.enable = true; services.pcscd.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
# Disable GNOME Keyring. See comment above. # Disable GNOME Keyring. See comment above.
# #

View File

@ -10,14 +10,14 @@
"obsidian" "obsidian"
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
obsidian # Markdown notes obsidian # Markdown notes
]; ];
}; };
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, lib, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = ["obsidian.desktop"]; favorite-apps = ["obsidian.desktop"];

View File

@ -58,7 +58,7 @@
extraBackends = [ pkgs.hplip ]; extraBackends = [ pkgs.hplip ];
}; };
users.users.yoda = { users.users."yoda" = {
extraGroups = [ "scanner" "lp" ]; extraGroups = [ "scanner" "lp" ];
packages = with pkgs; [ packages = with pkgs; [
simple-scan # GNOME Document Scanner simple-scan # GNOME Document Scanner

View File

@ -6,7 +6,7 @@
./signal-desktop.nix ./signal-desktop.nix
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
#zenith # Terminal resource monitor / task manager #zenith # Terminal resource monitor / task manager
btop # Terminal resource monitor / task manager btop # Terminal resource monitor / task manager

View File

@ -7,7 +7,7 @@
./blackbox.nix # Terminal emulator. ./blackbox.nix # Terminal emulator.
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
gnome-tweaks gnome-tweaks
dconf-editor dconf-editor

View File

@ -11,7 +11,7 @@
"dotnet-runtime-6.0.36" "dotnet-runtime-6.0.36"
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# Preinstalled # Preinstalled
# kdePackages.ark # Archive manager # kdePackages.ark # Archive manager

View File

@ -4,7 +4,7 @@
./thunderbird.nix # email ./thunderbird.nix # email
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
# #
# CLI apps # CLI apps

View File

@ -1,13 +1,13 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
unstable.rnote # Handwritten notes unstable.rnote # Handwritten notes
]; ];
}; };
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, lib, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = lib.mkIf (osConfig.networking.hostName == "yodaTab") ["com.github.flxzt.rnote.desktop"]; favorite-apps = lib.mkIf (osConfig.networking.hostName == "yodaTab") ["com.github.flxzt.rnote.desktop"];

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
signal-desktop # Signal client signal-desktop # Signal client
]; ];
@ -23,7 +23,7 @@
}) })
]; ];
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = ["signal-desktop.desktop"]; favorite-apps = ["signal-desktop.desktop"];

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
spaceFM spaceFM
]; ];

View File

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
# SSH client configuration. # SSH client configuration.
programs.ssh = { programs.ssh = {

View File

@ -14,7 +14,7 @@
# }; # };
# We run Syncthing as user service. # We run Syncthing as user service.
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
services.syncthing = { services.syncthing = {
enable = true; enable = true;
}; };

View File

@ -8,7 +8,7 @@ in
# https://github.com/dr460nf1r3/dr460nixed/blob/main/home-manager/email.nix # https://github.com/dr460nf1r3/dr460nixed/blob/main/home-manager/email.nix
# https://github.com/yurrriq/dotfiles/blob/main/machines/nixps/home.nix # https://github.com/yurrriq/dotfiles/blob/main/machines/nixps/home.nix
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
accounts.email.accounts = { accounts.email.accounts = {
"personal" = { "personal" = {
address = "daniel@systemli.org"; address = "daniel@systemli.org";

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
tor-browser-bundle-bin # Tor web browser. tor-browser-bundle-bin # Tor web browser.
]; ];

View File

@ -9,7 +9,7 @@
./t-telesec.nix ./t-telesec.nix
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
networkmanager-openconnect # Openconnect VPN networkmanager-openconnect # Openconnect VPN
]; ];

View File

@ -11,7 +11,7 @@
"veracrypt" "veracrypt"
]; ];
users.users.yoda = { users.users."yoda" = {
packages = with pkgs; [ packages = with pkgs; [
veracrypt # Encrypted filesystem veracrypt # Encrypted filesystem
]; ];

View File

@ -5,7 +5,7 @@
# libvirt is a dependency of Virt-manager # libvirt is a dependency of Virt-manager
# https://nixos.wiki/wiki/Libvirt # https://nixos.wiki/wiki/Libvirt
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
users.users.yoda.extraGroups = [ "libvirtd" ]; users.users."yoda".extraGroups = [ "libvirtd" ];
# Required for USB redirection to work with GNOME boxes. Maybe this is also required for virt-Manager? # Required for USB redirection to work with GNOME boxes. Maybe this is also required for virt-Manager?
# See # See
@ -18,7 +18,7 @@
# TODO: nixpkgs virtio-win # TODO: nixpkgs virtio-win
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"]; autoconnect = ["qemu:///system"];

View File

@ -44,7 +44,7 @@ let
vlc = pkgs.vlc.override { inherit libbluray; }; vlc = pkgs.vlc.override { inherit libbluray; };
in in
{ {
users.users.yoda = { users.users."yoda" = {
packages = [ packages = [
vlc # Video (DVD, Blu-ray) and audio player vlc # Video (DVD, Blu-ray) and audio player
pkgs.dvdbackup # Create ackups of personal DVDs pkgs.dvdbackup # Create ackups of personal DVDs

View File

@ -7,7 +7,7 @@
# # Inside the following Home Manager configuration block, # # Inside the following Home Manager configuration block,
# # `config` refers to Home Manager configuration. # # `config` refers to Home Manager configuration.
# home-manager.users.yoda = { osConfig, config, pkgs, ... }: { # home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
# xdg = { # xdg = {
# enable = true; # enable = true;
# # This updates the desktop database. https://github.com/nix-community/home-manager/blob/0e0e9669547e45ea6cca2de4044c1a384fd0fe55/modules/misc/xdg-mime.nix#L45-L58 # # This updates the desktop database. https://github.com/nix-community/home-manager/blob/0e0e9669547e45ea6cca2de4044c1a384fd0fe55/modules/misc/xdg-mime.nix#L45-L58

View File

@ -57,14 +57,14 @@ in
# Inside the following Home Manager configuration block, # Inside the following Home Manager configuration block,
# `config` refers to Home Manager configuration. # `config` refers to Home Manager configuration.
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
programs.zsh = zsh-config // { programs.zsh = zsh-config // {
# nix-repl: config.home-manager.users.yoda.programs.zsh.history.path # nix-repl: config.home-manager.users."yoda".programs.zsh.history.path
# -> ~/.local/share/.histfile # -> ~/.local/share/.histfile
history.path = "${config.xdg.dataHome}/.histfile"; history.path = "${config.xdg.dataHome}/.histfile";
}; };
}; };
home-manager.users.root = { osConfig, config, pkgs, ... }: { home-manager.users."root" = { osConfig, config, pkgs, ... }: {
programs.zsh = zsh-config // { programs.zsh = zsh-config // {
history.path = "${config.xdg.dataHome}/.histfile"; history.path = "${config.xdg.dataHome}/.histfile";
}; };