Compare commits

...

2 Commits

Author SHA1 Message Date
53329b8d1c ♻️ [shared] Moved Hm configs to shared base 2025-05-22 20:10:48 +02:00
2b020958ed ♻️ [shared] Move gnome-keyring to base 2025-05-22 19:50:11 +02:00
22 changed files with 68 additions and 88 deletions

View File

@ -1,8 +1,4 @@
{
lib,
systemConfig,
...
}:
{ lib, ... }:
{
imports = with lib.custom; [
@ -11,6 +7,4 @@
./hardware.nix
./security
];
system.stateVersion = systemConfig.version;
}

View File

@ -1,33 +1,9 @@
{
lib,
inputs,
outputs,
systemConfig,
...
}:
{ lib, ... }:
{
imports = [
inputs.catppuccin.homeModules.catppuccin
(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")
imports = with lib.custom; [
(relativeToBase "home-manager")
];
home.stateVersion = systemConfig.version;
# 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;
};
programs.git.signing.key = "E3FA0E995C0D0E5E";
}

View File

@ -1,17 +1,8 @@
{ lib, ... }:
{
imports = with lib.custom; [
(relativeToRoot "shared/modules/security/ssh.nix")
imports = [
./firewall.nix
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services = {
pcscd.enable = true;
gnome.gnome-keyring.enable = true;
};
programs.gnupg.agent.enableSSHSupport = true;
services.pcscd.enable = true;
}

View File

@ -1,3 +1,12 @@
{ inputs, ... }:
{
imports = [ ./ssh.nix ];
imports = [
inputs.catppuccin.homeModules.catppuccin
./development
./shell
./gpg.nix
./home-manager.nix
./ssh.nix
];
}

View File

@ -0,0 +1,6 @@
{
imports = [
./git.nix
./helix.nix
];
}

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, common, ... }:
{
home.packages = with pkgs; [
@ -14,7 +14,7 @@
enable = true;
package = package;
userName = "Martin Berg Alstad";
userEmail = "git@martials.no";
userEmail = "git@${common.domain}";
aliases = {
amend = "commit --amend";

View 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;
}

View File

@ -0,0 +1,10 @@
{
imports = [
./btop.nix
./eza.nix
./fastfetch.nix
./fish.nix
./fzf.nix
./zoxide.nix
];
}

View File

@ -1,5 +1,6 @@
{
imports = [
./keyring.nix
./sops.nix
./ssh.nix
];

View File

@ -0,0 +1,3 @@
{
services.gnome.gnome-keyring.enable = true;
}

View File

@ -1,9 +1,6 @@
{
inputs,
outputs,
lib,
common,
systemConfig,
...
}:
let
@ -12,41 +9,23 @@ in
{
imports = [
(lib.custom.relativeToBase "home-manager")
inputs.catppuccin.homeModules.catppuccin
./development
./hyprland
./media
./rofi
./shell
./zen
./cursors.nix
./default-applications.nix
./development
./freetube.nix
./gtk.nix
./gpg.nix
./kitty.nix
./media
./nextcloud.nix
./rofi
./hyprland
./shell
./sioyek.nix
./spicetify.nix
./zen
];
home = {
username = systemConfig.username;
homeDirectory = dir.home;
sessionVariables = {
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;
home.sessionVariables = {
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
};
# 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;
}

View File

@ -1,7 +1,5 @@
{
imports = [
./git.nix
./helix.nix
./zed.nix
];
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path

View File

@ -1,12 +1,6 @@
{
imports = [
./btop.nix
./cava
./eza.nix
./fastfetch.nix
./fish.nix
./fzf.nix
./yazi
./zoxide.nix
];
}

View File

@ -21,7 +21,6 @@
programs.dconf.enable = true; # Required for some gnome applications
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Gnome Virtual File-system. Required for various things in nautilus
udev.packages = with pkgs; [ gnome-settings-daemon ];
};