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 = {
"luna@hummingbird" = lib.homeManagerConfiguration {
"luna" = lib.homeManagerConfiguration {
pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs;};
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-manager.enable = true;
};
home = {
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,
...
}: {
imports = [
./common
];
@ -14,7 +13,7 @@
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [
nixd # Nix LSP
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 = [
../common
# Include the results of the hardware scan.
./hardware-configuration.nix
#inputs.home-manager.nixosModules.default
];
# Bootloader.
@ -19,7 +19,6 @@
boot.loader.efi.canTouchEfiVariables = true;
# mask dev-tpmrm0.device
#systemd.services.dev-tpmrm0.wantedBy = lib.mkForce [];
systemd.units."dev-tpmrm0.device".enable = false;
networking.hostName = "hummingbird"; # Define your hostname.

View file

@ -1,2 +1,2 @@
{
}
}