Archived
Watch
1
0
Fork
You've already forked nixos
0

flake revamp

This commit is contained in:
asnev 2026-07-11 11:53:41 +07:00
commit 435628dc4a
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4

View file

@ -4,10 +4,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager.url = "github:nix-community/home-manager/release-26.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {
@ -16,41 +14,22 @@
nixpkgs-unstable,
home-manager,
...
}: let
system = "x86_64-linux";
in {
nixosConfigurations = {
phostron = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
({
config,
pkgs,
...
}: {
nixpkgs = {
hostPlatform = system;
config.allowUnfree = true;
overlays = [
(final: prev: {
unstable = import nixpkgs-unstable {
system = prev.stdenv.hostPlatform.system;
config.allowUnfree = true;
};
})
];
};
})
./hosts/phostron/configuration.nix
];
};
};
homeConfigurations.coyote = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {inherit inputs;};
}: {
nixosConfigurations.phostron = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./users/coyote/home.nix
./nixos/configuration.nix
./hosts/phostron/configuration.nix
./profiles/desktops/kde.nix
./users/coyote/configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
users.coyote.imports = [./users/coyote/home.nix];
};
}
];
};
};