Init
This commit is contained in:
45
flake.nix
Normal file
45
flake.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
description = "NixOS Configuration for Raspberry Pi 4";
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [ "https://nix-community.cachix.org" ];
|
||||
extra-trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
|
||||
http-connections = 4;
|
||||
download-buffer-size = 268435456; # 256MB
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager/master";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixvim.url = "github:nix-community/nixvim";
|
||||
nixcord.url = "github:kaylorben/nixcord";
|
||||
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixvim, ... }@inputs:
|
||||
let
|
||||
primaryUser = "phil";
|
||||
system = "aarch64-linux";
|
||||
in
|
||||
{
|
||||
nixosConfigurations."rpi-4" = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./nixos/default.nix
|
||||
./nixos/hardware.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.${primaryUser} = import ./home/default.nix;
|
||||
home-manager.extraSpecialArgs = { inherit inputs primaryUser; };
|
||||
}
|
||||
];
|
||||
specialArgs = { inherit inputs self primaryUser; };
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user