dotfiles/flake.nix

63 lines
1.8 KiB
Nix
Raw Normal View History

#commit
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
sops-nix = {
url = "github:Mic92/sops-nix";
};
2024-05-27 12:34:10 -04:00
nixos-wsl.url = "github:nix-community/nixos-wsl";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-05-27 12:34:10 -04:00
outputs = { self, nixpkgs, nixos-wsl, ... }@inputs:
2024-05-03 18:49:17 -04:00
# let
# boxes = [
# "default"
# ];
# forAllSystems = nixpkgs.lib.genAttrs boxes;
# in
{
2024-05-03 18:49:17 -04:00
nixosConfigurations = {
2024-09-02 16:01:02 -04:00
desktopIso = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./boxes/desktop/configuration.nix
inputs.home-manager.nixosModules.default
({ pkgs, modulesPath, ...}: {
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")];
})
];
};
desktop = nixpkgs.lib.nixosSystem {
2024-05-03 18:49:17 -04:00
specialArgs = { inherit inputs; };
modules = [
./boxes/desktop/configuration.nix
inputs.home-manager.nixosModules.default
];
};
2024-05-27 12:34:10 -04:00
wsl = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./boxes/wsl/configuration.nix
inputs.home-manager.nixosModules.default
nixos-wsl.nixosModules.wsl
];
};
2024-05-03 18:49:17 -04:00
};
# nixosConfigurations.default = nixpkgs.lib.nixosSystem {
# specialArgs = {inherit inputs;};
# modules = [
# ./boxes/desktop/configuration.nix
# inputs.home-manager.nixosModules.default
# ];
# };
# cpkg = forAllSystems(system: import ./customPackages);
};
}