Format code with alejandra

This commit is contained in:
2022-04-23 17:52:45 +01:00
parent 0d56231235
commit d90883e404
27 changed files with 743 additions and 677 deletions

100
flake.nix
View File

@@ -1,51 +1,73 @@
{
description = "My System Configs";
description = "My System Configs";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
i3utils.url = "git+https://git.sr.ht/~dpatterbee/i3utils?ref=main";
i3utils.inputs.nixpkgs.follows = "nixpkgs";
i3utils.url = "git+https://git.sr.ht/~dpatterbee/i3utils?ref=main";
i3utils.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, i3utils, ... }@inputs:
let
system = "x86_64-linux";
outputs = {
nixpkgs,
home-manager,
i3utils,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
pkgs = import nixpkgs {
inherit system;
};
lib = nixpkgs.lib;
lib = nixpkgs.lib;
hostSystem = { hostname, headless }: lib.nixosSystem {
inherit system;
hostSystem = {
hostname,
headless,
}:
lib.nixosSystem {
inherit system;
modules = [
./hosts/${hostname}/configuration.nix
modules = [
./hosts/${hostname}/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
users = import ./users;
extraSpecialArgs = {inherit hostname; inherit headless;};
};
}
];
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
users = import ./users;
extraSpecialArgs = {
inherit hostname;
inherit headless;
};
};
}
];
specialArgs = {inherit inputs;};
};
in {
nixosConfigurations = {
dingbox = hostSystem { hostname = "dingbox"; headless = false; };
miniding = hostSystem { hostname = "miniding"; headless = false; };
pingbox = hostSystem { hostname = "pingbox"; headless = false; };
dingserver = hostSystem { hostname = "dingserver"; headless = true; };
};
};
specialArgs = {inherit inputs;};
};
in {
nixosConfigurations = {
dingbox = hostSystem {
hostname = "dingbox";
headless = false;
};
miniding = hostSystem {
hostname = "miniding";
headless = false;
};
pingbox = hostSystem {
hostname = "pingbox";
headless = false;
};
dingserver = hostSystem {
hostname = "dingserver";
headless = true;
};
};
};
}