user and homemanger
This commit is contained in:
parent
f6ffe0c7bb
commit
357187782f
|
@ -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"];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
11
modules/system/homemanger/default.nix
Normal file
11
modules/system/homemanger/default.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
7
modules/system/user/default.nix
Normal file
7
modules/system/user/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{...}: {
|
||||||
|
users.users.joy = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "joy";
|
||||||
|
extraGroups = ["wheel" "docker"];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue