mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
83 lines
1.9 KiB
Nix
83 lines
1.9 KiB
Nix
{
|
|
inputs = {
|
|
#channels
|
|
master.url = "github:NixOS/nixpkgs";
|
|
unstable.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
|
stable.url = "github:NixOS/nixpkgs?ref=nixos-23.05";
|
|
|
|
nix.url = "github:NixOS/nix?ref=10afcf06aa2607bf088f7f08989f42c1fa2689a2";
|
|
|
|
nixos-generators = {
|
|
url = "github:nix-community/nixos-generators";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
sops-nix = {
|
|
url = "github:mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
spicetify-nix = {
|
|
url = "github:Gerg-L/spicetify-nix";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
#my own packages
|
|
suckless = {
|
|
url = "github:Gerg-L/suckless";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
nvim-flake = {
|
|
url = "github:Gerg-L/nvim-flake";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
fetch-rs = {
|
|
url = "github:Gerg-L/fetch-rs";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
};
|
|
|
|
outputs = inputs: let
|
|
lib = import ./lib inputs;
|
|
in
|
|
lib.gerg-utils {
|
|
allowUnfree = true;
|
|
} (
|
|
{
|
|
pkgs,
|
|
system,
|
|
...
|
|
}: {
|
|
inherit lib;
|
|
nixosConfigurations =
|
|
lib.mkHosts
|
|
"x86_64-linux"
|
|
[
|
|
"gerg-desktop"
|
|
"game-laptop"
|
|
"moms-laptop"
|
|
"iso"
|
|
];
|
|
|
|
nixosModules = lib.mkModules ./modules;
|
|
|
|
diskoConfigurations =
|
|
lib.mkDisko
|
|
[
|
|
"gerg-desktop"
|
|
"game-laptop"
|
|
"moms-laptop"
|
|
];
|
|
formatter.${system} = pkgs.alejandra;
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.sops
|
|
];
|
|
};
|
|
|
|
packages.${system} = lib.mkPackages ./packages pkgs;
|
|
}
|
|
);
|
|
}
|