peter welcome to fortnite
This commit is contained in:
parent
c9353af4a1
commit
1c5bed3431
5 changed files with 55 additions and 9 deletions
44
flake.nix
44
flake.nix
|
@ -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 ];
|
||||||
|
# };
|
||||||
|
#};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ options, config, lib, pkgs, ...}:
|
|
||||||
{
|
|
||||||
#TODO(sako): add stuff
|
|
||||||
}
|
|
6
packages/default.nix
Normal file
6
packages/default.nix
Normal 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
10
shell.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue