updated nix + added user home settings
This commit is contained in:
1 parent
57156da98e
commit
026cf2e0c1
4 files changed
+55
-7
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
systemStateVersion ? "23.05",
|
systemStateVersion ? "23.11",
|
||||||
hostName,
|
hostName,
|
||||||
user,
|
user,
|
||||||
}:
|
}:
|
||||||
|
|||||||
+16
-1
@@ -1,5 +1,5 @@
|
|||||||
{ hostName }:
|
{ hostName }:
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -16,4 +16,19 @@
|
|||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_CA.UTF-8";
|
i18n.defaultLocale = "en_CA.UTF-8";
|
||||||
|
|
||||||
|
# Fonts
|
||||||
|
# fonts = {
|
||||||
|
# packages = with pkgs; [
|
||||||
|
# (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# fontconfig = {
|
||||||
|
# enable = true;
|
||||||
|
# defaultFonts = {
|
||||||
|
# serif = [ "FiraCode" "DroidSansMono" ];
|
||||||
|
# sansSerif = [ "FiraCode" "DroidSansMono" ];
|
||||||
|
# monospace = [ "FiraCode" ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
@@ -8,5 +8,10 @@
|
|||||||
userName = "root";
|
userName = "root";
|
||||||
userEmail = "root@${hostName}";
|
userEmail = "root@${hostName}";
|
||||||
};
|
};
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
};
|
||||||
|
programs.zsh.oh-my-zsh.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+33
-5
@@ -2,6 +2,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
users.users.${user.name} = {
|
users.users.${user.name} = {
|
||||||
|
# shell = pkgs.zsh;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = user.name;
|
description = user.name;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
@@ -14,11 +15,38 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
home-manager.users.${user.name} = {
|
home-manager.users.${user.name} = {
|
||||||
home.stateVersion = systemStateVersion;
|
home = {
|
||||||
programs.git = {
|
stateVersion = systemStateVersion;
|
||||||
enable = true;
|
shellAliases = {
|
||||||
userName = user.fullName;
|
cat = "bat";
|
||||||
userEmail = user.email;
|
};
|
||||||
|
packages = [
|
||||||
|
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
bat.enable = true;
|
||||||
|
lsd = {
|
||||||
|
enable = true;
|
||||||
|
enableAliases = true;
|
||||||
|
};
|
||||||
|
git = {
|
||||||
|
enable = true;
|
||||||
|
userName = user.fullName;
|
||||||
|
userEmail = user.email;
|
||||||
|
};
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
};
|
||||||
|
zsh.oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"sudo"
|
||||||
|
];
|
||||||
|
theme = "robbyrussell";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user