peter welcome to fortnite

This commit is contained in:
Sakooooo 2023-07-07 02:06:45 +03:00
parent c9353af4a1
commit 1c5bed3431
Signed by: sako
GPG key ID: 3FD715D87D7725E0
5 changed files with 55 additions and 9 deletions

View file

@ -9,14 +9,48 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, ...}@attrs: { outputs = { self, nixpkgs, home-manager, ...}@attrs:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
in
rec {
# custom packages
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./packages {inherit pkgs; }
);
# dev shell for bootstrap
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./shell.nix { inherit pkgs; }
);
# overlays here
overlays = import ./overlays { inherit inputs; };
# modules :D
nixosModules = import ./modules;
nixosConfigurations = { nixosConfigurations = {
# TODO(sako)::rename this
sakotop = nixpkgs.lib.nixosSystem { sakotop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; specialArgs = { inherit inputs outputs; };
specialArgs = attrs; modules = [
modules = [ ./hosts/sakotop ]; ./hosts/sakotop/configuration.nix
];
}; };
}; };
#nixosConfigurations = {
# TODO(sako)::rename this
# sakotop = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = attrs;
# modules = [ ./hosts/sakotop ];
# };
#};
}; };
} }

View file

@ -1,4 +0,0 @@
{ options, config, lib, pkgs, ...}:
{
#TODO(sako): add stuff
}

6
packages/default.nix Normal file
View file

@ -0,0 +1,6 @@
# Custom packages, that can be defined similarly to ones from nixpkgs
# You can build them using 'nix build .#example' or (legacy) 'nix-build -A example'
{ pkgs ? (import ../nixpkgs.nix) { } }: {
# example = pkgs.callPackage ./example { };
}

10
shell.nix Normal file
View file

@ -0,0 +1,10 @@
# Shell for bootstrapping flake-enabled nix and home-manager
# You can enter it through 'nix develop' or (legacy) 'nix-shell'
{ pkgs ? (import ./nixpkgs.nix) { } }: {
default = pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs; [ nix home-manager git ];
};
}