dotfiles/flake.nix

176 lines
5.1 KiB
Nix
Raw Normal View History

{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
sops-nix = {
url = "github:Mic92/sops-nix";
};
230 current 2024-09-08 23:54:23 24.11.20240831.12228ff 6.11.0-rc5 * 231 current 2024-09-08 23:55:54 24.11.20240831.12228ff 6.11.0-rc5 * 232 current 2024-09-08 23:57:58 24.11.20240831.12228ff 6.11.0-rc5 * 233 current 2024-09-09 00:00:25 24.11.20240831.12228ff 6.11.0-rc5 * 234 current 2024-09-09 00:01:40 24.11.20240831.12228ff 6.11.0-rc5 * 235 current 2024-09-09 00:08:17 24.11.20240831.12228ff 6.11.0-rc5 * 236 current 2024-09-09 00:09:22 24.11.20240831.12228ff 6.11.0-rc5 * 237 current 2024-09-09 00:20:19 24.11.20240831.12228ff 6.11.0-rc5 * 238 current 2024-09-09 00:40:29 24.11.20240831.12228ff 6.11.0-rc5 * 239 current 2024-09-09 00:42:12 24.11.20240831.12228ff 6.11.0-rc5 * 240 current 2024-09-09 00:44:00 24.11.20240831.12228ff 6.11.0-rc5 * 241 current 2024-09-09 00:45:41 24.11.20240831.12228ff 6.11.0-rc5 * 242 current 2024-09-09 00:46:52 24.11.20240831.12228ff 6.11.0-rc5 * 243 current 2024-09-09 00:48:27 24.11.20240831.12228ff 6.11.0-rc5 * 244 current 2024-09-09 00:49:49 24.11.20240831.12228ff 6.11.0-rc5 * 245 current 2024-09-09 00:51:13 24.11.20240831.12228ff 6.11.0-rc5 * 246 current 2024-09-09 00:58:46 24.11.20240831.12228ff 6.11.0-rc5 * 247 current 2024-09-09 01:00:34 24.11.20240831.12228ff 6.11.0-rc5 * 248 current 2024-09-09 01:01:38 24.11.20240831.12228ff 6.11.0-rc5 * 249 current 2024-09-09 01:02:25 24.11.20240831.12228ff 6.11.0-rc5 * 250 current 2024-09-09 01:03:52 24.11.20240831.12228ff 6.11.0-rc5 * 251 current 2024-09-09 01:04:51 24.11.20240831.12228ff 6.11.0-rc5 * 252 current 2024-09-09 01:05:55 24.11.20240831.12228ff 6.11.0-rc5 * 253 current 2024-09-09 01:07:07 24.11.20240831.12228ff 6.11.0-rc5 * 254 current 2024-09-09 01:08:16 24.11.20240831.12228ff 6.11.0-rc5 * 255 current 2024-09-09 01:12:42 24.11.20240831.12228ff 6.11.0-rc5 *
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-11-26 17:54:15 -05:00
nix-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixos-wsl = {
url = "github:nix-community/nixos-wsl";
inputs.nixpkgs.follows = "nix-stable";
};
2024-11-26 17:58:34 -05:00
stylix-stable = {
2024-11-26 20:17:02 -05:00
url = "github:danth/stylix/release-24.05";
inputs.nixpkgs.follows = "nix-stable";
2024-11-26 17:58:34 -05:00
};
2024-11-26 17:54:15 -05:00
home-manager-stable = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nix-stable";
};
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 = {
2024-11-26 20:17:02 -05:00
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
2024-11-17 21:15:32 -05:00
};
chrome-pak = {
url = "git+file:./customPackages/chrome-pak-customizer";
flake = false;
};
2024-12-18 18:54:34 -05:00
flake-parts.url = "github:hercules-ci/flake-parts";
};
2024-11-17 21:15:32 -05:00
outputs =
{
2024-12-18 18:54:34 -05:00
self,
nixpkgs,
nixos-wsl,
nix-stable,
flake-parts,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
systems = [ "x86_64-linux" ];
perSystem = { config, ... }: { };
flake = {
homeConfigurations = {
nixd = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
2024-11-17 21:20:03 -05:00
{
2024-12-18 18:54:34 -05:00
home = {
stateVersion = "24.05";
username = "nixd";
homeDirectory = "/dev/null";
};
2024-11-17 21:20:03 -05:00
}
2024-12-18 18:54:34 -05:00
(
{ pkgs, ... }:
{
wayland.windowManager.hyprland.enable = true;
home = {
packages = with pkgs; [ nixd ];
};
}
)
];
};
2024-09-02 16:01:02 -04:00
};
2024-12-18 18:54:34 -05:00
nixosConfigurations = {
nixd = nixpkgs.lib.nixosSystem { };
desktopIso = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
(
{
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"
];
}
)
];
};
nix-desktop-evo4b5 = nixpkgs.lib.nixosSystem rec {
specialArgs = {
inherit inputs;
stable = import nix-stable {
inherit system;
config = {
allowUnfree = true;
};
2024-11-26 20:17:02 -05:00
};
2024-11-26 18:09:30 -05:00
};
2024-12-18 18:54:34 -05:00
system = "x86_64-linux";
modules = [
(
{ pkgs, ... }:
{
_module.args = {
unstable = pkgs;
};
}
)
./boxes/desktop/configuration.nix
inputs.home-manager.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index
{ programs.nix-index-database.comma.enable = true; }
];
2024-11-17 21:15:32 -05:00
};
2024-12-18 18:54:34 -05:00
arm-laptop-evo4b5 = nix-stable.lib.nixosSystem rec {
system = "aarch64-linux";
specialArgs = {
inputs = inputs // {
nixpkgs = nix-stable;
home-manager = inputs.home-manager-stable;
stylix = inputs.stylix-stable;
};
unstable = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
2024-11-26 20:17:02 -05:00
};
};
2024-11-26 18:09:30 -05:00
};
2024-12-18 18:54:34 -05:00
modules = [
(
{ pkgs, ... }:
{
_module.args = {
stable = pkgs;
};
}
)
./boxes/wsl/configuration.nix
inputs.home-manager-stable.nixosModules.default
nixos-wsl.nixosModules.wsl
];
2024-11-17 21:20:03 -05:00
};
2024-05-27 12:34:10 -04:00
};
2024-12-18 18:54:34 -05: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-05-03 18:49:17 -04:00
};
};
}