bweh
This commit is contained in:
parent
09aa7681bd
commit
cb933d885d
1 changed files with 22 additions and 29 deletions
51
flake.nix
51
flake.nix
|
@ -46,6 +46,7 @@
|
|||
nixpkgs-stable,
|
||||
home-manager,
|
||||
stylix,
|
||||
darwin,
|
||||
blocklist-hosts,
|
||||
hyprland-plugins,
|
||||
zig,
|
||||
|
@ -58,7 +59,6 @@
|
|||
inputs.zig.overlays.default
|
||||
];
|
||||
pkgs = import nixpkgs {
|
||||
system = systemSettings.system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowUnfreePredicate = _: true;
|
||||
|
@ -67,7 +67,6 @@
|
|||
};
|
||||
|
||||
pkgs-stable = import nixpkgs-stable {
|
||||
system = systemSettings.system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowUnfreePredicate = _: true;
|
||||
|
@ -75,36 +74,30 @@
|
|||
overlays = [];
|
||||
};
|
||||
|
||||
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
nixos = lib.nixosSystem {
|
||||
system = systemSettings.system;
|
||||
modules = [
|
||||
nixos-cosmic.nixosModules.default
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nmarks = import ./hosts/desktop/home.nix;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit pkgs-stable;
|
||||
inherit systemSettings;
|
||||
inherit userSettings;
|
||||
inherit stylix;
|
||||
inherit hyprland-plugins;
|
||||
inherit zls;
|
||||
inherit ghostty;
|
||||
};
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nmarks = import ./hosts/desktop/home.nix;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit pkgs-stable;
|
||||
inherit stylix;
|
||||
inherit hyprland-plugins;
|
||||
inherit zls;
|
||||
inherit ghostty;
|
||||
};
|
||||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit pkgs-stable;
|
||||
inherit systemSettings;
|
||||
inherit userSettings;
|
||||
inherit stylix;
|
||||
inherit blocklist-hosts;
|
||||
};
|
||||
|
@ -112,18 +105,18 @@
|
|||
};
|
||||
darwinSystem = darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
./hosts/laptop/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nmarks = import ./hosts/laptop/home.nix;
|
||||
users.users.nmarks.home = "/Users/nmarks";
|
||||
};
|
||||
];
|
||||
specialArgs = { inherit nixpkgs; };
|
||||
};
|
||||
modules = [
|
||||
./hosts/laptop/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nmarks = import ./hosts/laptop/home.nix;
|
||||
users.users.nmarks.home = "/Users/nmarks";
|
||||
}
|
||||
];
|
||||
specialArgs = {inherit nixpkgs;};
|
||||
};
|
||||
# nixos = inputs.self.nixosConfigurations.nmarks;
|
||||
#
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue