nixfmt everything
This commit is contained in:
parent
dbf843d70f
commit
d92420451d
30 changed files with 383 additions and 330 deletions
208
flake.nix
208
flake.nix
|
|
@ -5,111 +5,129 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-22.11";
|
||||
|
||||
home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||
home-manager-stable = { url = "github:nix-community/home-manager/release-22.11"; inputs.nixpkgs.follows = "nixpkgs-stable"; };
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager-stable = {
|
||||
url = "github:nix-community/home-manager/release-22.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||
};
|
||||
|
||||
baduhai-nur.url = "github:baduhai/nur";
|
||||
|
||||
kmonad = { url = "github:kmonad/kmonad?dir=nix"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||
|
||||
deploy-rs = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||
|
||||
agenix = { url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||
|
||||
nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixpkgs-stable"; };
|
||||
|
||||
homepage = { url = "github:baduhai/homepage"; flake = false; };
|
||||
|
||||
dotfiles = { url = "github:baduhai/dotfiles"; flake = false; };
|
||||
};
|
||||
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
baduhai-nur,
|
||||
kmonad,
|
||||
nixpkgs-stable,
|
||||
home-manager-stable,
|
||||
deploy-rs,
|
||||
agenix,
|
||||
nixos-generators,
|
||||
homepage,
|
||||
dotfiles,
|
||||
...
|
||||
}: {
|
||||
nixosConfigurations = {
|
||||
rotterdam = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/desktops/rotterdam.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{ nixpkgs.overlays = [ baduhai-nur.overlay agenix.overlays.default ]; }
|
||||
];
|
||||
};
|
||||
|
||||
io = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/desktops/io.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{ nixpkgs.overlays = [ baduhai-nur.overlay agenix.overlays.default ]; }
|
||||
];
|
||||
};
|
||||
|
||||
alexandria = nixpkgs-stable.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/servers/alexandria.nix
|
||||
agenix.nixosModules.default
|
||||
home-manager-stable.nixosModules.home-manager
|
||||
self.nixosModules.qbittorrent
|
||||
({ config, pkgs, ... }:
|
||||
let
|
||||
unstable-overlay = final: prev: {
|
||||
unstable = nixpkgs.legacyPackages.x86_64-linux;
|
||||
};
|
||||
in {
|
||||
nixpkgs.overlays = [ unstable-overlay ];
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
kmonad = {
|
||||
url = "github:kmonad/kmonad?dir=nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
deploy = {
|
||||
autoRollback = false;
|
||||
magicRollback = false;
|
||||
user = "root";
|
||||
sshUser = "root";
|
||||
nodes = {
|
||||
alexandria = {
|
||||
hostname = "alexandria";
|
||||
profiles.system = {
|
||||
remoteBuild = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixos-generators = {
|
||||
url = "github:nix-community/nixos-generators";
|
||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||
};
|
||||
|
||||
homepage = {
|
||||
url = "github:baduhai/homepage";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
dotfiles = {
|
||||
url = "github:baduhai/dotfiles";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, home-manager, baduhai-nur, kmonad
|
||||
, nixpkgs-stable, home-manager-stable, deploy-rs, agenix, nixos-generators
|
||||
, homepage, dotfiles, ... }: {
|
||||
nixosConfigurations = {
|
||||
rotterdam = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/desktops/rotterdam.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{
|
||||
nixpkgs.overlays =
|
||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
io = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/desktops/io.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{
|
||||
nixpkgs.overlays =
|
||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
alexandria = nixpkgs-stable.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/servers/alexandria.nix
|
||||
agenix.nixosModules.default
|
||||
home-manager-stable.nixosModules.home-manager
|
||||
self.nixosModules.qbittorrent
|
||||
({ config, pkgs, ... }:
|
||||
let
|
||||
unstable-overlay = final: prev: {
|
||||
unstable = nixpkgs.legacyPackages.x86_64-linux;
|
||||
};
|
||||
in { nixpkgs.overlays = [ unstable-overlay ]; })
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
deploy = {
|
||||
autoRollback = false;
|
||||
magicRollback = false;
|
||||
user = "root";
|
||||
sshUser = "root";
|
||||
nodes = {
|
||||
alexandria = {
|
||||
hostname = "alexandria";
|
||||
profiles.system = {
|
||||
remoteBuild = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||
self.nixosConfigurations.alexandria;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixosModules.qbittorrent = import ./modules/qbittorrent.nix;
|
||||
nixosModules.qbittorrent = import ./modules/qbittorrent.nix;
|
||||
|
||||
packages.x86_64-linux = {
|
||||
install-iso = nixos-generators.nixosGenerate {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
{users.users.nixos.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKcwF1yuWEfYGScNocEbs0AmGxyTIzGc4/IhpU587SJE" ];}
|
||||
];
|
||||
format = "install-iso";
|
||||
packages.x86_64-linux = {
|
||||
install-iso = nixos-generators.nixosGenerate {
|
||||
system = "x86_64-linux";
|
||||
modules = [{
|
||||
users.users.nixos.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKcwF1yuWEfYGScNocEbs0AmGxyTIzGc4/IhpU587SJE"
|
||||
];
|
||||
}];
|
||||
format = "install-iso";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue