centralize home manager

This commit is contained in:
Osman Faruk Bayram 2025-04-24 21:59:07 +03:00
parent ea887fb764
commit 88f7cd6ec0
7 changed files with 9 additions and 24 deletions

View file

@ -8,7 +8,6 @@
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" "${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
inputs.home-manager.nixosModules.home-manager
]; ];
myModules = { myModules = {

View file

@ -6,7 +6,6 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
inputs.home-manager.nixosModules.home-manager
]; ];
myModules = { myModules = {

View file

@ -10,7 +10,6 @@
../../modules ../../modules
inputs.raspberry-pi-nix.nixosModules.raspberry-pi inputs.raspberry-pi-nix.nixosModules.raspberry-pi
inputs.nixos-hardware.nixosModules.raspberry-pi-5 inputs.nixos-hardware.nixosModules.raspberry-pi-5
inputs.home-manager.nixosModules.home-manager
]; ];
myModules = { myModules = {
@ -30,13 +29,6 @@
networking.hostName = "pochita"; networking.hostName = "pochita";
# log of shame: osbm blamed nix when he wrote "hostname" instead of "hostName" # log of shame: osbm blamed nix when he wrote "hostname" instead of "hostName"
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.osbm = import ../../home/home.nix {
inherit config pkgs;
backupFileExtension = "hmbak";
};
environment.systemPackages = [ environment.systemPackages = [
pkgs.raspberrypi-eeprom pkgs.raspberrypi-eeprom
]; ];

View file

@ -7,7 +7,6 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
inputs.home-manager.nixosModules.home-manager
]; ];
myModules = { myModules = {
@ -19,12 +18,6 @@
enableSound = true; enableSound = true;
}; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.osbm = import ../../home/home.nix {
inherit config pkgs;
backupFileExtension = "hmbak";
};
virtualisation.virtualbox.host.enable = true; virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = ["osbm"]; users.extraGroups.vboxusers.members = ["osbm"];

View file

@ -7,7 +7,6 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
inputs.home-manager.nixosModules.home-manager
]; ];
myModules = { myModules = {
@ -32,12 +31,6 @@
networking.hostName = "ymir"; # Define your hostname. networking.hostName = "ymir"; # Define your hostname.
networking.firewall.allowedTCPPorts = [8889 8000]; networking.firewall.allowedTCPPorts = [8889 8000];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.osbm = import ../../home/home.nix {
inherit config pkgs;
backupFileExtension = "hmbak";
};
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -9,6 +9,7 @@
./emulation.nix ./emulation.nix
./fonts.nix ./fonts.nix
./graphical-interface.nix ./graphical-interface.nix
./home.nix
./i18n.nix ./i18n.nix
./minegrub.nix ./minegrub.nix
./nix-settings.nix ./nix-settings.nix

8
modules/home.nix Normal file
View file

@ -0,0 +1,8 @@
{config, pkgs, ...}:{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.osbm = import ../home/home.nix {
inherit config pkgs;
backupFileExtension = "hmbak";
};
}