fix hardcoded usernames
This commit is contained in:
parent
d5c1600f3e
commit
79bad31c5d
3 changed files with 7 additions and 5 deletions
|
@ -1,13 +1,14 @@
|
||||||
{ lib, pkgs, config, ... }: let
|
{ lib, pkgs, config, ... }: let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.chuj.stuff.alacritty;
|
cfg = config.chuj.stuff.alacritty;
|
||||||
|
user = config.chuj.system.user;
|
||||||
in {
|
in {
|
||||||
options.chuj.stuff.alacritty = {
|
options.chuj.stuff.alacritty = {
|
||||||
enable = mkEnableOption "alacritty";
|
enable = mkEnableOption "alacritty";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.krizej.programs.alacritty = {
|
home-manager.users.${user}.programs.alacritty = {
|
||||||
package = pkgs.alacritty-sixel;
|
package = pkgs.alacritty-sixel;
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -8,7 +8,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.krizej.programs.firefox = {
|
home-manager.users.${user}.programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
policies = {
|
policies = {
|
||||||
DisableTelemetry = true;
|
DisableTelemetry = true;
|
||||||
|
@ -52,7 +52,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
profiles.krizej = {
|
profiles.${user} = {
|
||||||
id = 0;
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
search = {
|
search = {
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
{ lib, pkgs, config, ...}: let
|
{ lib, pkgs, config, ...}: let
|
||||||
inherit (lib) mkIf mkEnableOption mkOption;
|
inherit (lib) mkIf mkEnableOption mkOption;
|
||||||
cfg = config.chuj.stuff.flameshot;
|
cfg = config.chuj.stuff.flameshot;
|
||||||
|
user = config.chuj.system.user;
|
||||||
in {
|
in {
|
||||||
options.chuj.stuff.flameshot = {
|
options.chuj.stuff.flameshot = {
|
||||||
enable = mkEnableOption "flameshot";
|
enable = mkEnableOption "flameshot";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.krizej.services.flameshot = {
|
home-manager.users.${user}.services.flameshot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
|
|
Loading…
Reference in a new issue