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"
./hardware-configuration.nix
../../modules
inputs.home-manager.nixosModules.home-manager
];
myModules = {

View file

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

View file

@ -10,7 +10,6 @@
../../modules
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
inputs.nixos-hardware.nixosModules.raspberry-pi-5
inputs.home-manager.nixosModules.home-manager
];
myModules = {
@ -30,13 +29,6 @@
networking.hostName = "pochita";
# 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 = [
pkgs.raspberrypi-eeprom
];

View file

@ -7,7 +7,6 @@
imports = [
./hardware-configuration.nix
../../modules
inputs.home-manager.nixosModules.home-manager
];
myModules = {
@ -19,12 +18,6 @@
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;
users.extraGroups.vboxusers.members = ["osbm"];

View file

@ -7,7 +7,6 @@
imports = [
./hardware-configuration.nix
../../modules
inputs.home-manager.nixosModules.home-manager
];
myModules = {
@ -32,12 +31,6 @@
networking.hostName = "ymir"; # Define your hostname.
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
networking.networkmanager.enable = true;

View file

@ -9,6 +9,7 @@
./emulation.nix
./fonts.nix
./graphical-interface.nix
./home.nix
./i18n.nix
./minegrub.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";
};
}