2024-04-23 19:06:12 -04:00
|
|
|
#commit
|
2024-04-21 19:57:10 -04:00
|
|
|
{
|
|
|
|
description = "Nixos config flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-05-26 02:51:04 -04:00
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
};
|
2024-09-08 23:54:31 -04:00
|
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-27 12:34:10 -04:00
|
|
|
nixos-wsl.url = "github:nix-community/nixos-wsl";
|
2024-04-21 19:57:10 -04:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-11-17 21:20:03 -05:00
|
|
|
scripts = {
|
|
|
|
inputs.scripts.follows = "nixpkgs";
|
|
|
|
url = "github:sadan4/scripts";
|
|
|
|
};
|
2024-11-17 21:15:32 -05:00
|
|
|
stylix = {
|
|
|
|
url = "github:danth/stylix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-21 19:57:10 -04:00
|
|
|
};
|
2024-11-17 21:15:32 -05:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixos-wsl,
|
|
|
|
...
|
|
|
|
}@inputs:
|
2024-05-03 18:49:17 -04:00
|
|
|
# let
|
2024-04-27 16:05:00 -04:00
|
|
|
# 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 {
|
2024-09-02 16:18:36 -04:00
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = [
|
2024-11-17 21:20:03 -05:00
|
|
|
(
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
boot.supportedFilesystems = lib.mkForce [
|
|
|
|
"btrfs"
|
|
|
|
"reiserfs"
|
|
|
|
"vfat"
|
|
|
|
"f2fs"
|
|
|
|
"xfs"
|
|
|
|
"ntfs"
|
|
|
|
"cifs"
|
|
|
|
"ext4"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
)
|
2024-09-02 16:18:36 -04:00
|
|
|
];
|
2024-09-02 16:01:02 -04:00
|
|
|
};
|
2024-10-02 17:37:35 -04:00
|
|
|
nix-desktop-evo4b5 = nixpkgs.lib.nixosSystem {
|
2024-11-17 21:15:32 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-10-28 19:57:27 -04:00
|
|
|
system = "x86_64-linux";
|
2024-05-03 18:49:17 -04:00
|
|
|
modules = [
|
|
|
|
./boxes/desktop/configuration.nix
|
|
|
|
inputs.home-manager.nixosModules.default
|
2024-09-08 23:54:31 -04:00
|
|
|
inputs.nix-index-database.nixosModules.nix-index
|
2024-11-17 21:15:32 -05:00
|
|
|
inputs.stylix.nixosModules.stylix
|
2024-09-08 23:54:31 -04:00
|
|
|
{ programs.nix-index-database.comma.enable = true; }
|
2024-05-03 18:49:17 -04:00
|
|
|
];
|
|
|
|
};
|
2024-05-27 12:34:10 -04:00
|
|
|
wsl = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2024-11-17 21:20:03 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-05-27 12:34:10 -04:00
|
|
|
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);
|
2024-04-21 19:57:10 -04:00
|
|
|
};
|
2024-04-27 16:05:00 -04:00
|
|
|
|
2024-04-21 19:57:10 -04:00
|
|
|
}
|