moved mac imports to hosts

This commit is contained in:
Aleksandr Lebedev 2024-12-19 08:43:27 +01:00
parent 5e05a1e5c1
commit 87ef397bec
4 changed files with 15 additions and 19 deletions

12
flake.lock generated
View file

@ -524,11 +524,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1734563337,
"narHash": "sha256-0nOMDLi0aldc7VUfy/aBBL+4QLizccuSRG/MsBCrLQk=",
"lastModified": 1734573361,
"narHash": "sha256-OE3lMafu66zn71F90NFZPU7ejwdMC8JhRBjNB7wC7Tk=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "23e7d8f6a7d4e25c2dc6be33af07249570e66940",
"rev": "5b714f05f87831e3e930af04649f853d5efb9902",
"type": "github"
},
"original": {
@ -860,11 +860,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1734563049,
"narHash": "sha256-P/103iUx75XPXeX21M20kzttGaZJ6+c8xp9yo3fx3Zg=",
"lastModified": 1734567959,
"narHash": "sha256-ghNQlnI/r6cnknY58x60695sFrYnI6ZUMg65bmoNGqw=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "79a637d1962e725218ff46f5234cb3d5617ed36b",
"rev": "37608b462772e35220e02bfbd9045d0946564436",
"type": "github"
},
"original": {

View file

@ -113,9 +113,6 @@
inputs.impermanence.nixosModules.impermanence
./nixos/configuration.nix
./nixos/modules/impermanence
inputs.apple-silicon-support.nixosModules.default
./nixos/hosts/kylekrein-mac/mac-hardware-conf.nix
./nixos/hardware/macos/configuration.nix
] ++ general-modules;
};
};

View file

@ -1,14 +1,6 @@
{ config, pkgs, stylix, hwconfig, first-nixos-install, username, inputs, ... }:
let
#nur = import (builtins.fetchTarball {
# Get the revision by choosing a version from https://github.com/nix-community/NUR/commits/master
#url = "https://github.com/nix-community/NUR/archive/e7fee426abaf126e6bfb6c84f710f57f0e83491c.tar.gz";
# Get the hash by running `nix-prefetch-url --unpack <url>` on the above url
#sha256 = "01wx2il71dnsvviqphpdykr6h0hazf6x28ml7xrpr8fdkg1lvpjs";
#}) pkgs {};
# gruvboxPlus = import ./gruvbox-plus.nix {inherit pkgs;};
in
{
imports =
@ -17,7 +9,6 @@
./modules/nixvim
./modules/fastfetch
./homes/${username}
#"${if hostname != "nixosbtw" then ./macos/homemac.nix else ./empty.nix }"
] ++ (if hwconfig.useImpermanence then [ (import ./modules/impermanence/home.nix { inherit username; inherit inputs; } ) ] else []);
# Home Manager needs a bit of information about you and the paths it should
# manage.

View file

@ -1,6 +1,14 @@
{ pkgs, lib, hwconfig, ... }:
{ pkgs, lib, hwconfig, inputs, ... }:
{
imports = [
inputs.apple-silicon-support.nixosModules.default
./mac-hardware-conf.nix
../../hardware/macos/configuration.nix
../../users/kylekrein
];
facter.reportPath = lib.mkForce null; #fails to generate
}