fix hardcoded usernames

This commit is contained in:
krizej 2024-09-17 15:45:36 +02:00
parent d5c1600f3e
commit 79bad31c5d
3 changed files with 7 additions and 5 deletions

View file

@ -1,13 +1,14 @@
{ lib, pkgs, config, ... }: let
inherit (lib) mkIf mkEnableOption;
cfg = config.chuj.stuff.alacritty;
user = config.chuj.system.user;
in {
options.chuj.stuff.alacritty = {
enable = mkEnableOption "alacritty";
};
config = mkIf cfg.enable {
home-manager.users.krizej.programs.alacritty = {
home-manager.users.${user}.programs.alacritty = {
package = pkgs.alacritty-sixel;
enable = true;
settings = {

View file

@ -8,7 +8,7 @@ in {
};
config = mkIf cfg.enable {
home-manager.users.krizej.programs.firefox = {
home-manager.users.${user}.programs.firefox = {
enable = true;
policies = {
DisableTelemetry = true;
@ -52,7 +52,7 @@ in {
};
};
};
profiles.krizej = {
profiles.${user} = {
id = 0;
isDefault = true;
search = {

View file

@ -1,12 +1,13 @@
{ lib, pkgs, config, ...}: let
inherit (lib) mkIf mkEnableOption mkOption;
cfg = config.chuj.stuff.flameshot;
user = config.chuj.system.user;
in {
options.chuj.stuff.flameshot = {
enable = mkEnableOption "flameshot";
};
config = mkIf cfg.enable {
home-manager.users.krizej.services.flameshot = {
home-manager.users.${user}.services.flameshot = {
enable = true;
settings = {
General = {
@ -16,4 +17,4 @@ in {
};
};
};
}
}