Files
nix/profiles/luna/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2025-04-20 11:16:39 +08:00
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
let
inherit (inputs) home-manager hyprland;
in
{
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# outputs.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-ssd
# You can also split up your configuration and import pieces of it here:
# ./users.nix
# Import your generated (nixos-generate-config) hardware configuration
2025-04-21 11:46:08 +08:00
./hardware-configuration.nix
./networking.nix
2025-04-21 11:17:23 +08:00
"${self}/modules/nixos/core"
2025-04-21 11:46:08 +08:00
"${self}/modules/nixos/user.nix"
2025-04-20 11:16:39 +08:00
home-manager.nixosModules.home-manager
{
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
2025-04-21 11:17:23 +08:00
inherit inputs outputs hostname username hyprland sysversion;
2025-04-20 11:16:39 +08:00
};
2025-04-21 11:17:23 +08:00
home-manager.users."${username}" = import "${self}/home/desktop";
2025-04-20 11:16:39 +08:00
}
];
2025-04-21 11:17:23 +08:00
networking.hostName = "${hostname}";
2025-04-20 11:16:39 +08:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = sysversion;
}