Files
nixos-conf/flake.nix
T
2026-07-28 20:27:55 +02:00

47 lines
1.1 KiB
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-patcher.url = "github:gepbird/nixpkgs-patcher";
nixpkgs-patch-filetote = {
url = "https://github.com/NixOS/nixpkgs/pull/543082.diff";
flake = false;
};
};
outputs =
{
self,
nixpkgs,
home-manager,
nixpkgs-patch-filetote,
nixpkgs-patcher,
}@inputs:
let
system = "x86_64-linux";
in
{
nixosConfigurations.nixos-music = nixpkgs-patcher.lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
./configuration.nix
./hardware-configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.user = import ./home-manager/home.nix;
home-manager.backupFileExtension = "backup";
}
];
};
};
}