This commit is contained in:
LunarAkai 2025-03-14 21:15:05 +01:00
commit c7b296b96f
6 changed files with 36 additions and 19 deletions

View file

@ -51,7 +51,7 @@
}; };
homeConfigurations = { homeConfigurations = {
"luna@hummingbird" = lib.homeManagerConfiguration { "luna" = lib.homeManagerConfiguration {
pkgs = pkgsFor.x86_64-linux; pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs;}; extraSpecialArgs = {inherit inputs outputs;};
modules = [ modules = [

View file

@ -1,17 +1,21 @@
{ {
inputs, lib, pkgs, config, outputs, ... inputs,
lib,
pkgs,
config,
outputs,
...
}: { }: {
imports = [ imports = [
];
]; programs = {
home-manager.enable = true;
};
programs = { home = {
home-manager.enable = true; username = lib.mkDefault "luna";
}; homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = "24.11";
home = { };
username = lib.mkDefault "luna";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = "24.11";
}
} }

View file

@ -6,7 +6,6 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [ imports = [
./common ./common
]; ];
@ -14,7 +13,7 @@
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.
home.packages = [ home.packages = [
nixd # Nix LSP
alejandra # formatter alejandra # formatter
fd-find
]; ];
} }

15
hosts/common/default.nix Normal file
View file

@ -0,0 +1,15 @@
{
inputs,
outputs,
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
];
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs;
};
}

View file

@ -9,9 +9,9 @@
... ...
}: { }: {
imports = [ imports = [
../common
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
#inputs.home-manager.nixosModules.default
]; ];
# Bootloader. # Bootloader.
@ -19,7 +19,6 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# mask dev-tpmrm0.device # mask dev-tpmrm0.device
#systemd.services.dev-tpmrm0.wantedBy = lib.mkForce [];
systemd.units."dev-tpmrm0.device".enable = false; systemd.units."dev-tpmrm0.device".enable = false;
networking.hostName = "hummingbird"; # Define your hostname. networking.hostName = "hummingbird"; # Define your hostname.