forked from jan-leila/nix-config
added home manager configurations to output
This commit is contained in:
parent
90f0c114b3
commit
3fdee879c7
9 changed files with 45 additions and 32 deletions
|
@ -4,7 +4,7 @@
|
|||
osConfig,
|
||||
...
|
||||
}: let
|
||||
cfg = osConfig.host.users.ester;
|
||||
userConfig = osConfig.host.users.ester;
|
||||
in {
|
||||
imports = [
|
||||
../../home-modules
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
|
||||
config = {
|
||||
home = {
|
||||
username = "ester";
|
||||
username = userConfig.name;
|
||||
homeDirectory = osConfig.users.users.ester.home;
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
|
@ -58,7 +58,7 @@ in {
|
|||
# EDITOR = "emacs";
|
||||
};
|
||||
|
||||
packages = lib.lists.optionals cfg.isDesktopUser (
|
||||
packages = lib.lists.optionals userConfig.isDesktopUser (
|
||||
with pkgs; [
|
||||
# helvetica font
|
||||
aileron
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
osConfig,
|
||||
...
|
||||
}: let
|
||||
cfg = osConfig.host.users.eve;
|
||||
userConfig = osConfig.host.users.eve;
|
||||
in {
|
||||
imports = [
|
||||
../../home-modules
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
|
||||
config = {
|
||||
home = {
|
||||
username = "eve";
|
||||
username = userConfig.name;
|
||||
homeDirectory = osConfig.users.users.eve.home;
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
|
@ -58,7 +58,7 @@ in {
|
|||
# EDITOR = "emacs";
|
||||
};
|
||||
|
||||
packages = lib.lists.optionals cfg.isDesktopUser (
|
||||
packages = lib.lists.optionals userConfig.isDesktopUser (
|
||||
with pkgs; [
|
||||
firefox
|
||||
bitwarden
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./packages.nix
|
||||
../../home-modules
|
||||
|
@ -8,8 +12,8 @@
|
|||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home = {
|
||||
username = "leyla";
|
||||
# homeDirectory = osConfig.users.users.leyla.home;
|
||||
username = osConfig.host.users.leyla.name;
|
||||
homeDirectory = osConfig.users.users.leyla.home;
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
osConfig,
|
||||
# buildFirefoxXpiAddon,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = osConfig.host.users.leyla;
|
||||
userConifg = osConfig.host.users.leyla;
|
||||
hardware = osConfig.host.hardware;
|
||||
in {
|
||||
imports = [
|
||||
|
@ -14,7 +14,7 @@ in {
|
|||
|
||||
home = {
|
||||
packages =
|
||||
lib.lists.optionals cfg.isTerminalUser (
|
||||
lib.lists.optionals userConifg.isTerminalUser (
|
||||
with pkgs; [
|
||||
# comand line tools
|
||||
yt-dlp
|
||||
|
@ -23,7 +23,7 @@ in {
|
|||
]
|
||||
)
|
||||
++ (
|
||||
lib.lists.optionals cfg.isDesktopUser (
|
||||
lib.lists.optionals userConifg.isDesktopUser (
|
||||
with pkgs; [
|
||||
# helvetica font
|
||||
aileron
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
osConfig,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
|
@ -77,8 +75,6 @@
|
|||
|
||||
# misc extensions
|
||||
bungcip.better-toml
|
||||
|
||||
# lib.mkIf open-vsx."10nates".ollama-autocoder
|
||||
]
|
||||
++ (
|
||||
with vscode-marketplace; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue