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-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";
|
|
|
|
};
|
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 = {
|
2024-11-26 20:17:02 -05:00
|
|
|
url = "github:danth/stylix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-17 21:15:32 -05:00
|
|
|
};
|
2024-12-16 19:21:14 -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-12-19 00:53:10 -05:00
|
|
|
nix-alien.url = "https://flakehub.com/f/thiagokokada/nix-alien/0.1.384.tar.gz";
|
2024-04-21 19:57:10 -04:00
|
|
|
};
|
2024-11-17 21:15:32 -05:00
|
|
|
outputs =
|
2024-04-27 16:05:00 -04:00
|
|
|
{
|
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
|
|
|
};
|
2024-04-21 19:57:10 -04:00
|
|
|
};
|
2024-04-27 16:05:00 -04:00
|
|
|
|
2024-04-21 19:57:10 -04:00
|
|
|
}
|