Compare commits

..

3 Commits

Author SHA1 Message Date
ebb043b589 format code 2025-12-06 11:24:15 +01:00
fcfc9f6450 hm: make it backup conflicting files 2025-12-06 11:24:08 +01:00
fe3cd057cd fix regreet with hyprland 2025-12-06 11:23:41 +01:00
7 changed files with 24 additions and 32 deletions

View File

@@ -9,7 +9,7 @@
clippy clippy
cntr # nix debugger cntr # nix debugger
conda conda
micromamba # a better, faster conda # micromamba # a better, faster conda
devcontainer # development container devcontainer # development container
devenv # devbox alternative devenv # devbox alternative
dbeaver-bin dbeaver-bin

View File

@@ -9,7 +9,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
exiftool exiftool
unar # extract archives unar # extract archives
dragon-drop# dragndrop dragon-drop # dragndrop
poppler-utils # pdf preview poppler-utils # pdf preview
fd fd
ripgrep ripgrep

View File

@@ -1,6 +1,5 @@
# Only apply this to home-manager standalone # Only apply this to home-manager standalone
{ outputs, ... }: {outputs, ...}: {
{
# Apply overlays # Apply overlays
nixpkgs = { nixpkgs = {
overlays = builtins.attrValues outputs.overlays; overlays = builtins.attrValues outputs.overlays;

View File

@@ -42,6 +42,7 @@
}; };
}; };
programs.hyprland.enable = true;
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.blueman.enable = true; services.blueman.enable = true;

View File

@@ -41,8 +41,9 @@
"8.8.8.8" "8.8.8.8"
]; ];
# HM # HM module
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true; # hm module uses the pkgs of the nixos config
home-manager.backupFileExtension = "hm-backup"; # backup conflicting files. So hm activation never fails
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs outputs; inherit inputs outputs;
}; };

View File

@@ -2,8 +2,7 @@
lib, lib,
outputs, outputs,
... ...
}: }: {
{
# Apply overlays # Apply overlays
nixpkgs = { nixpkgs = {
# TODO: apply this to hm and nixos without duplicate code # TODO: apply this to hm and nixos without duplicate code
@@ -37,7 +36,7 @@
}; };
nix.optimise = { nix.optimise = {
automatic = true; automatic = true;
dates = [ "weekly" ]; # Optional; allows customizing optimisation schedule dates = ["weekly"]; # Optional; allows customizing optimisation schedule
}; };
programs.nix-ld.enable = true; programs.nix-ld.enable = true;

View File

@@ -1,26 +1,9 @@
{ {config, ...}: let
pkgs,
lib,
config,
...
}: let
homeCfgs = config.home-manager.users; homeCfgs = config.home-manager.users;
homeSharePaths = lib.mapAttrsToList (_: v: "${v.home.path}/share") homeCfgs;
vars = ''XDG_DATA_DIRS="$XDG_DATA_DIRS:${lib.concatStringsSep ":" homeSharePaths}" GTK_USE_PORTAL=0'';
julianCfg = homeCfgs.julian; julianCfg = homeCfgs.julian;
sway-kiosk = command: "${lib.getExe pkgs.sway} --unsupported-gpu --config ${pkgs.writeText "kiosk.config" ''
output * bg #000000 solid_color
xwayland disable
input "type:touchpad" {
tap enabled
}
exec '${vars} ${command}; ${pkgs.sway}/bin/swaymsg exit'
''}";
in { in {
users.extraUsers.greeter = { users.extraUsers.greeter = {
# For caching and such # For caching
home = "/tmp/greeter-home"; home = "/tmp/greeter-home";
createHome = true; createHome = true;
}; };
@@ -33,13 +16,22 @@ in {
cursorTheme = { cursorTheme = {
inherit (julianCfg.gtk.cursorTheme) name package; inherit (julianCfg.gtk.cursorTheme) name package;
}; };
cageArgs = [
"-s"
"-m"
"last"
]; # multimonitor use last monitor
# settings.background = { # settings.background = {
# path = julianCfg.wallpaper; # path = julianCfg.wallpaper;
# fit = "Cover"; # fit = "Cover";
# }; # TODO: fix # }; # TODO: fix
};
services.greetd = { # TODO: setting keyboard language does not work
enable = true; # settings = {
settings.default_session.command = sway-kiosk (lib.getExe config.programs.regreet.package); # env = {
# XKB_DEFAULT_LAYOUT = "de";
# # XKB_DEFAULT_VARIANT = "altgr-intl";
# };
# };
}; };
} }