getting stuff ready for flake to see

This commit is contained in:
2024-04-24 03:51:38 +00:00
parent 48d0d64349
commit 822bc0394e
7 changed files with 87 additions and 22 deletions

View File

@@ -1,7 +1,10 @@
{ lib, inputs, nixpkgs, nixpkgs-23-11, homeManager, homeManager-23-11, NixOS-WSL, ... }:
{ lib, inputs, nixpkgs-23-11, homeManager, homeManager-23-11, NixOS-WSL, customPackageOverlay, ... }:
{
"maxos" = lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit customPackageOverlay;
};
modules = [
./maxos/configuration.nix
homeManager.nixosModules.home-manager {
@@ -19,6 +22,9 @@
"nixosWSL" = nixpkgs-23-11.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit customPackageOverlay;
};
modules = [
./nixosWSL/configuration.nix
homeManager-23-11.nixosModules.home-manager {

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ pkgs, ... }:
{ pkgs, customPackageOverlay, ... }:
let
custom-fonts = import ../../fonts { inherit pkgs; };
@@ -109,6 +109,9 @@ in
programs.zsh.enable = true;
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
customPackageOverlay.overlay
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View File

@@ -1,4 +1,4 @@
{ pkgs, modulesPath, ... }:
{ pkgs, customPackageOverlay, modulesPath, ... }:
let
custom-fonts = import ../../fonts { inherit pkgs; };
@@ -34,6 +34,10 @@ in
experimental-features = nix-command flakes
'';
nixpkgs.overlays = [
customPackageOverlay.overlay
];
system.stateVersion = "22.05";
# Define a user account. Don't forget to set a password with passwd.