refactor(nixos): extract Home Manager modules
This commit is contained in:
parent
2968f5396d
commit
ec23fb1431
5 changed files with 110 additions and 101 deletions
39
system/nixos/home-manager/default.nix
Normal file
39
system/nixos/home-manager/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ config, desktop, inputs, pkgs, self, username, ... }:
|
||||
|
||||
let
|
||||
desktop-config = import ./desktop.nix { inherit config inputs pkgs; };
|
||||
shared-config = import ../../shared/home-manager.nix { inherit inputs pkgs self username; };
|
||||
shared-packages = import ../../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
||||
in
|
||||
{
|
||||
imports = if desktop then [ desktop-config shared-config ] else [ shared-config ];
|
||||
|
||||
home.packages = shared-packages ++ pkgs.lib.optionals desktop [
|
||||
pkgs.discord
|
||||
pkgs.meslo-lg
|
||||
pkgs.okular
|
||||
pkgs.pamixer
|
||||
pkgs.pass
|
||||
pkgs.pinentry
|
||||
pkgs.slack
|
||||
pkgs.via
|
||||
pkgs.vial
|
||||
pkgs.vlc
|
||||
pkgs.wl-mirror
|
||||
pkgs.wob
|
||||
pkgs.wofi
|
||||
pkgs.xcape
|
||||
pkgs.zoom-us
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
EXA_COLORS = "uu=38;5;255:gu=38;5;255:ur=38;5;255:uw=38;5;255:ue=38;5;255:wx=38;5;255:gr=38;5;250:gw=38;5;250:gx=38;5;250:tr=38;5;255:tw=38;5;255:tx=38;5;255:da=38;5;250:sn=32:sb=0:di=38;5;105";
|
||||
LANG = "en_GB.UTF-8";
|
||||
LC_ALL = "en_GB.UTF-8";
|
||||
LC_CTYPE = "en_GB.UTF-8";
|
||||
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
|
||||
PULUMI_SKIP_UPDATE_CHECK = "true";
|
||||
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue