♻️ [shared] Moved Hm configs to shared base
This commit is contained in:
@ -1,33 +1,9 @@
|
|||||||
{
|
{ lib, ... }:
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
systemConfig,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = with lib.custom; [
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
(relativeToBase "home-manager")
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/development/git.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/development/helix.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/shell/btop.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/shell/eza.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/shell/fastfetch.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/shell/fish.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/shell/zoxide.nix")
|
|
||||||
(lib.custom.relativeToRoot "shared/desktop/home-manager/gpg.nix")
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = systemConfig.version;
|
programs.git.signing.key = "E3FA0E995C0D0E5E";
|
||||||
|
|
||||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
|
||||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
git.signing.key = "E3FA0E995C0D0E5E";
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
home-manager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./ssh.nix ];
|
imports = [
|
||||||
|
inputs.catppuccin.homeModules.catppuccin
|
||||||
|
./development
|
||||||
|
./shell
|
||||||
|
./gpg.nix
|
||||||
|
./home-manager.nix
|
||||||
|
./ssh.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
6
shared/base/home-manager/development/default.nix
Normal file
6
shared/base/home-manager/development/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./git.nix
|
||||||
|
./helix.nix
|
||||||
|
];
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, common, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@ -14,7 +14,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = package;
|
package = package;
|
||||||
userName = "Martin Berg Alstad";
|
userName = "Martin Berg Alstad";
|
||||||
userEmail = "git@martials.no";
|
userEmail = "git@${common.domain}";
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
amend = "commit --amend";
|
amend = "commit --amend";
|
20
shared/base/home-manager/home-manager.nix
Normal file
20
shared/base/home-manager/home-manager.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
outputs,
|
||||||
|
systemConfig,
|
||||||
|
common,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
home = {
|
||||||
|
username = systemConfig.username;
|
||||||
|
homeDirectory = common.dir.home;
|
||||||
|
stateVersion = systemConfig.version;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
||||||
|
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
10
shared/base/home-manager/shell/default.nix
Normal file
10
shared/base/home-manager/shell/default.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./btop.nix
|
||||||
|
./eza.nix
|
||||||
|
./fastfetch.nix
|
||||||
|
./fish.nix
|
||||||
|
./fzf.nix
|
||||||
|
./zoxide.nix
|
||||||
|
];
|
||||||
|
}
|
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
lib,
|
lib,
|
||||||
common,
|
common,
|
||||||
systemConfig,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -12,41 +9,23 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(lib.custom.relativeToBase "home-manager")
|
(lib.custom.relativeToBase "home-manager")
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
./development
|
||||||
|
./hyprland
|
||||||
|
./media
|
||||||
|
./rofi
|
||||||
|
./shell
|
||||||
|
./zen
|
||||||
./cursors.nix
|
./cursors.nix
|
||||||
./default-applications.nix
|
./default-applications.nix
|
||||||
./development
|
|
||||||
./freetube.nix
|
./freetube.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./gpg.nix
|
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./media
|
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./rofi
|
|
||||||
./hyprland
|
|
||||||
./shell
|
|
||||||
./sioyek.nix
|
./sioyek.nix
|
||||||
./spicetify.nix
|
./spicetify.nix
|
||||||
./zen
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home.sessionVariables = {
|
||||||
username = systemConfig.username;
|
|
||||||
homeDirectory = dir.home;
|
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
||||||
};
|
};
|
||||||
|
|
||||||
# You can update Home Manager without changing this value. See
|
|
||||||
# the Home Manager release notes for a list of state version
|
|
||||||
# changes in each release.
|
|
||||||
stateVersion = systemConfig.version;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
|
||||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
|
||||||
./helix.nix
|
|
||||||
./zed.nix
|
./zed.nix
|
||||||
];
|
];
|
||||||
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path
|
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./btop.nix
|
|
||||||
./cava
|
./cava
|
||||||
./eza.nix
|
|
||||||
./fastfetch.nix
|
|
||||||
./fish.nix
|
|
||||||
./fzf.nix
|
|
||||||
./yazi
|
./yazi
|
||||||
./zoxide.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user