mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
65 lines
1.9 KiB
Nix
65 lines
1.9 KiB
Nix
#commit
|
|
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
};
|
|
nixos-wsl.url = "github:nix-community/nixos-wsl";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = { self, nixpkgs, nixos-wsl, ... }@inputs:
|
|
# let
|
|
# boxes = [
|
|
# "default"
|
|
# ];
|
|
# forAllSystems = nixpkgs.lib.genAttrs boxes;
|
|
# in
|
|
{
|
|
nixosConfigurations = {
|
|
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") ];
|
|
boot.kernelPackages = pkgs.linuxPackages_testing;
|
|
nixpkgs.config.allowBroken = true;
|
|
})
|
|
];
|
|
};
|
|
desktop = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./boxes/desktop/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
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
|
|
];
|
|
};
|
|
};
|
|
# nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
|
# specialArgs = {inherit inputs;};
|
|
# modules = [
|
|
# ./boxes/desktop/configuration.nix
|
|
# inputs.home-manager.nixosModules.default
|
|
# ];
|
|
# };
|
|
# cpkg = forAllSystems(system: import ./customPackages);
|
|
};
|
|
|
|
}
|