treewide: format with nixfmt
This commit is contained in:
parent
303e982a8e
commit
26ad72592a
47 changed files with 380 additions and 725 deletions
46
flake.nix
46
flake.nix
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
description = "Mine very own Nix(OS) / home-manager / nix-darwin configuration";
|
||||
description =
|
||||
"Mine very own Nix(OS) / home-manager / nix-darwin configuration";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
|
@ -26,31 +27,18 @@
|
|||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, home-manager
|
||||
, nixos-hardware
|
||||
, darwin
|
||||
, ...
|
||||
}@inputs:
|
||||
outputs = { self, nixpkgs, home-manager, nixos-hardware, darwin, ... }@inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
lib = nixpkgs.lib;
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
systems = [ "x86_64-linux" "aarch64-darwin" ];
|
||||
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
|
||||
pkgsFor = lib.genAttrs systems (
|
||||
system:
|
||||
pkgsFor = lib.genAttrs systems (system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
});
|
||||
in {
|
||||
inherit lib;
|
||||
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
||||
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
|
||||
|
@ -62,33 +50,25 @@
|
|||
|
||||
nixosConfigurations = {
|
||||
enoko = lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./nixos/enoko/configuration.nix
|
||||
nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||
home-manager.users.lu = import ./home/enoko.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
yukari = lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./nixos/yukari/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||
home-manager.users.lu = import ./home/yukari.nix;
|
||||
}
|
||||
];
|
||||
|
@ -102,9 +82,7 @@
|
|||
./darwin/koishi/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||
home-manager.users.lu = import ./home/koishi.nix;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue