mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
Initial Configuration
This commit is contained in:
commit
946cf19c5b
8 changed files with 912 additions and 0 deletions
58
flake.nix
Normal file
58
flake.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
||||
nixos-hardware.url = github:NixOS/nixos-hardware;
|
||||
nur.url = github:nix-community/NUR;
|
||||
flake-compat = { url = github:edolstra/flake-compat; flake = false; };
|
||||
libnbtplusplus = { url = github:PrismLauncher/libnbtplusplus; flake = false; };
|
||||
flake-utils.url = github:numtide/flake-utils;
|
||||
prismlauncher = {
|
||||
url = github:PrismLauncher/PrismLauncher;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-compat.follows = "flake-compat";
|
||||
inputs.libnbtplusplus.follows = "libnbtplusplus";
|
||||
};
|
||||
home-manager = {
|
||||
url = github:nix-community/home-manager;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.utils.follows = "flake-utils";
|
||||
};
|
||||
nix-darwin = {
|
||||
url = github:LnL7/nix-darwin;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-vscode-extensions = {
|
||||
url = github:nix-community/nix-vscode-extensions;
|
||||
inputs.flake-compat.follows = "flake-compat";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, nixos-hardware, prismlauncher, home-manager, nur, ... }: {
|
||||
nixosConfigurations.yokai = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
./yokai.nix
|
||||
./common.nix
|
||||
nixos-hardware.nixosModules.pine64-pinebook-pro
|
||||
home-manager.nixosModules.home-manager
|
||||
nur.nixosModules.nur
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.jopejoe1 = import ./home.nix;
|
||||
users.root = import ./home/root.nix;
|
||||
};
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
#prismlauncher.overlay
|
||||
nur.overlay
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue