refactor(flake): split NixOS Home Manager configs
Create a NixOS-specific Home Manager configuration and a reusable shared configuration that can be imported and also used by other configurations, such as WSL2.
This commit is contained in:
parent
994341071a
commit
3b890d9ee5
11 changed files with 729 additions and 729 deletions
system/nixos
|
@ -1,50 +1,33 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{ inputs, desktop, username, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
desktop-config = import ./home-manager-desktop.nix { inherit config inputs pkgs; };
|
||||
shared-config = import ../shared/home-manager.nix { inherit inputs pkgs username; };
|
||||
shared-packages = import ../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../home-manager/modules/common.nix
|
||||
../../home-manager/modules/git.nix
|
||||
../../home-manager/modules/home-manager.nix
|
||||
../../home-manager/modules/tmux.nix
|
||||
../../home-manager/modules/zsh.nix
|
||||
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.pass
|
||||
pkgs.pinentry
|
||||
pkgs.postman
|
||||
pkgs.slack
|
||||
pkgs.teams
|
||||
pkgs.vlc
|
||||
pkgs.wofi
|
||||
pkgs.xcape
|
||||
pkgs.zoom-us
|
||||
];
|
||||
|
||||
home.stateVersion = "22.05";
|
||||
|
||||
home.username = "opdavies";
|
||||
home.homeDirectory = "/home/opdavies";
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-devedition;
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
LANG = "en_GB.UTF-8";
|
||||
LC_ALL = "en_GB.UTF-8";
|
||||
LC_CTYPE = "en_GB.UTF-8";
|
||||
PULUMI_SKIP_UPDATE_CHECK = "true";
|
||||
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
|
||||
};
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
window.opacity = 0.9;
|
||||
|
||||
window.padding = {
|
||||
x = 15;
|
||||
y = 15;
|
||||
};
|
||||
|
||||
font = {
|
||||
size = 12.0;
|
||||
|
||||
normal.family = "JetBrainsMono Nerd Font Mono";
|
||||
italic.style = "Regular";
|
||||
bolditalic.style = "Regular";
|
||||
bold.style = "Regular";
|
||||
|
||||
offset.y = 12;
|
||||
glyph_offset.y = 6;
|
||||
};
|
||||
|
||||
shell = { program = "zsh"; };
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ discord meslo-lg slack teams vlc wofi xcape zoom-us ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue