NOflake/flake.nix

79 lines
2.6 KiB
Nix
Raw Normal View History

{
description = "we say NO to shitty OSes";
inputs = {
2023-07-19 00:52:04 -07:00
nixpkgs.url = "nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixos-hardware.url = "nixos-hardware";
2023-10-01 01:09:58 -07:00
nixos-raspberrypi.url = "github:ramblurr/nixos-raspberrypi";
2023-12-12 14:36:39 -08:00
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
2023-11-29 23:43:51 -08:00
aagl.url = "github:ezKEa/aagl-gtk-on-nix/ee7b773dd7d028ad1b185cdf72bc16ce69ac0288";
2023-10-30 14:10:57 -07:00
aagl.inputs.nixpkgs.follows = "nixpkgs";
2023-11-09 11:39:44 -08:00
# prescurve.url = "github:taotien/prescurve";
2023-11-01 02:14:15 -07:00
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-01 02:14:15 -07:00
# outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, prescurve, ... }@attrs:
2023-10-30 14:10:57 -07:00
outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, ... }@attrs:
let
2023-10-30 14:10:57 -07:00
nixos-system = (systemModules: nixpkgs.lib.nixosSystem {
modules = systemModules;
specialArgs = attrs;
});
2023-07-19 00:52:04 -07:00
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
2023-09-30 18:29:41 -07:00
system = "x86_64-linux";
2023-10-01 01:00:49 +00:00
config.allowUnfree = true;
2023-11-03 13:03:37 -07:00
config.permittedInsecurePackages = [
"electron-24.8.6"
2023-11-29 22:34:53 -08:00
"qtwebkit-5.212.0-alpha4"
2023-11-03 13:03:37 -07:00
];
2023-10-01 01:00:49 +00:00
};
};
overlay-unstable-arm = final: prev: {
unstable = import nixpkgs-unstable {
2023-09-30 18:29:41 -07:00
system = "aarch64-linux";
config.allowUnfree = true;
2023-09-30 21:59:04 -07:00
# config.allowUnsupportedSystem = true;
};
2023-07-19 00:52:04 -07:00
};
nixos-hw = nixos-hardware.nixosModules;
2023-10-01 01:09:58 -07:00
nixos-rpi = nixos-raspberrypi.nixosModules;
in
{
nixosConfigurations = {
2023-10-30 14:10:57 -07:00
NOcomputer = nixos-system [
2023-07-19 00:52:04 -07:00
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
nixos-hw.common-cpu-amd
2023-07-11 01:42:10 -07:00
nixos-hw.common-gpu-nvidia-nonprime
./systems/BASED.nix
./systems/NOcomputer.nix
2023-07-23 20:21:08 -07:00
./users/tao.nix
2023-07-23 20:26:39 -07:00
./extras/uwuraid.nix
./extras/dev.nix
./extras/gaming.nix
];
2023-10-30 14:10:57 -07:00
NOlaptop = nixos-system [
2023-07-19 00:52:04 -07:00
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
2023-07-17 16:41:11 -07:00
nixos-hw.common-cpu-intel
# inputs.nixos-hardware.nixosModules.framework
2023-07-11 01:42:10 -07:00
./systems/BASED.nix
./systems/NOlaptop.nix
2023-07-23 20:21:08 -07:00
./users/tao.nix
2023-07-23 20:26:39 -07:00
./extras/uwuraid.nix
./extras/dev.nix
./extras/gaming.nix
];
2023-10-30 14:10:57 -07:00
NObangers = nixos-system [
2023-09-30 21:59:04 -07:00
# ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable-arm ]; })
2023-09-30 17:07:49 -07:00
nixos-hw.raspberry-pi-4
2023-10-01 01:09:58 -07:00
nixos-rpi.hardware
2023-09-28 23:33:56 -07:00
./systems/BASED.nix
./systems/NObangers.nix
2023-09-30 21:59:04 -07:00
./users/pi.nix
2023-09-28 23:33:56 -07:00
./extras/uwuraid.nix
];
};
};
}