This commit is contained in:
biscuit
2025-05-13 09:38:18 -05:00
parent 6f6145f1c0
commit 904529022f
8 changed files with 63 additions and 119 deletions
+17 -21
View File
@@ -3,14 +3,10 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgsveryold.url = "github:nixos/nixpkgs?ref=nixos-21.11";
nixpkgsveryold.url = "github:nixos/nixpkgs?ref=nixos-23.05";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix4nvchad = {
url = "github:nix-community/nix4nvchad";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager.inputs.nixpkgs.follows = "nixpkgs"; # ensures version follows nixpkgs
};
#outputs = { self, nixpkgs, nixpkgsveryold }:
@@ -26,23 +22,23 @@
# };
#};
outputs = { nixpkgs, home-manager, ... } @ inputs:
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = false;
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
biscuit = lib.nixosSystem {
inherit system;
modules = [ ./nixos/configuration.nix ];
};
};
in {
nixosConfigurations = {
biscuit = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
modules = [
./nixos/configuration.nix
];
};
homeConfigurations = {
biscuit = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home-manager/home.nix ];
};
};
};
};
}