user and homemanger

This commit is contained in:
joy 2024-08-31 17:43:40 +02:00
parent f6ffe0c7bb
commit 357187782f
3 changed files with 22 additions and 14 deletions

View file

@ -1,10 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
users.users.joy = {
isNormalUser = true;
description = "joy";
extraGroups = ["wheel" "docker"];
};
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
font-awesome font-awesome
(nerdfonts.override {fonts = ["FiraCode"];}) (nerdfonts.override {fonts = ["FiraCode"];})
@ -28,13 +22,9 @@
services.udisks2.enable = true; services.udisks2.enable = true;
services.gvfs.enable = true; services.gvfs.enable = true;
home-manager.users.joy.programs.home-manager.enable = true; imports = [
./user
./homemanger
];
home-manager.users.joy.xdg.mimeApps.defaultApplications = {
"text/plain" = ["helix.desktop"];
"image/*" = ["imv.desktop"];
"video/png" = ["mpv.desktop"];
"video/jpg" = ["mpv.desktop"];
"video/*" = ["mpv.desktop"];
};
} }

View file

@ -0,0 +1,11 @@
{...}: {
home-manager.users.joy.programs.home-manager.enable = true;
home-manager.users.joy.xdg.mimeApps.defaultApplications = {
"text/plain" = ["helix.desktop"];
"image/*" = ["imv.desktop"];
"video/png" = ["mpv.desktop"];
"video/jpg" = ["mpv.desktop"];
"video/*" = ["mpv.desktop"];
};
}

View file

@ -0,0 +1,7 @@
{...}: {
users.users.joy = {
isNormalUser = true;
description = "joy";
extraGroups = ["wheel" "docker"];
};
}