homes: move shared modules to hosts

This commit is contained in:
Mateusz Słodkowicz 2024-10-23 11:35:54 +02:00
parent 1ab225b553
commit c2f4b59d90
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 9 additions and 6 deletions

View File

@ -34,6 +34,10 @@ let
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules = [
materusCfg.configInputs.plasma-manager.homeManagerModules.plasma-manager
materusCfg.configInputs.sops-nix.homeManagerModules.sops
];
home-manager.users = (builtins.foldl' (a: b: a // b) { } (builtins.map
(user: {
${user} = ({ ... }:

View File

@ -1,5 +1,8 @@
{ pkgs, materusArg, lib, ... }:
{
imports = [
./plasma.nix
];
home.stateVersion = "23.05";
home.homeDirectory = "/home/materus";
@ -81,7 +84,6 @@
};
home.packages = [
pkgs.papirus-icon-theme
materusArg.pkgs.ffmpeg_7-amf-full
(materusArg.pkgs.polymc-qt5.wrap { extraJDKs = [ pkgs.graalvm-ce ]; extraLibs = [ ]; })
pkgs.git-crypt
@ -106,8 +108,8 @@
};
home.file.".gradle/gradle.properties".text = ''
org.gradle.java.installations.fromEnv=JAVA_8_HOME,JAVA_17_HOME,JAVA_21_HOME
org.gradle.home=${pkgs.jdk21}
org.gradle.java.installations.fromEnv=JAVA_8_HOME,JAVA_17_HOME,JAVA_21_HOME
org.gradle.home=${pkgs.jdk21}
'';
xdg.desktopEntries.brave-browser =

View File

@ -19,9 +19,6 @@ let
(materusFlake.selfPath + "/configurations/shared/home/${username}")
(materusFlake.selfPath + "/configurations/host/${host}/home/${username}")
profiles.homeProfile
materusFlake.nixosConfigurations.${host}.materusCfg.configInputs.sops-nix.homeManagerModules.sops
materusFlake.nixosConfigurations.${host}.materusCfg.configInputs.plasma-manager.homeManagerModules.plasma-manager
];
};
}]