centralize home manager
This commit is contained in:
parent
ea887fb764
commit
88f7cd6ec0
7 changed files with 9 additions and 24 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules
|
../../modules
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
];
|
||||||
|
|
||||||
myModules = {
|
myModules = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -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"];
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
8
modules/home.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue