nixos/flake.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-01 15:22:49 +01:00
{
description = "Nixos config flake";
inputs = {
2024-12-28 20:42:02 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2024-12-28 22:41:12 +01:00
home-manager.url = "github:nix-community/home-manager/release-24.11";
2024-12-28 22:41:12 +01:00
sops-nix.url = "github:Mic92/sops-nix";
2024-12-28 22:41:12 +01:00
musnix.url = "github:musnix/musnix";
2024-03-01 15:22:49 +01:00
};
outputs = {
nixpkgs,
home-manager,
sops-nix,
2024-12-28 22:41:12 +01:00
musnix,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
2024-12-28 20:06:27 +01:00
allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"discord"
"samsung-UnifiedLinuxDriver"
"steam"
"steam-unwrapped"
];
};
};
in {
nixosConfigurations."MaxNixosLaptop" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
inherit pkgs;
};
system = "x86_64-linux";
modules = [
./hosts/MaxNixosLaptop/configuration.nix
sops-nix.nixosModules.sops
home-manager.nixosModules.default
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
2024-12-28 22:41:12 +01:00
musnix.nixosModules.musnix
];
2024-03-01 15:22:49 +01:00
};
};
2024-03-01 15:22:49 +01:00
}