shitcoding moment
This commit is contained in:
parent
8e31bd6c02
commit
58475e433e
28 changed files with 703 additions and 258 deletions
31
flake.nix
31
flake.nix
|
|
@ -2,7 +2,7 @@
|
|||
description = "Project-A flake!";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||
nixpkgs.url = "nixpkgs/nixos-25.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
secret.url = "git+ssh://forgejo@git.project-a.space/Project-A/project-secret.git";
|
||||
|
||||
|
|
@ -16,11 +16,7 @@
|
|||
inputs.nixpkgs-unstable.follows = "nixpkgs-unstable";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
winapps = {
|
||||
url = "github:winapps-org/winapps";
|
||||
url = "github:nix-community/home-manager/release-25.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
|
@ -32,7 +28,6 @@
|
|||
project-a-software,
|
||||
deploy-rs,
|
||||
home-manager,
|
||||
winapps,
|
||||
secret,
|
||||
...
|
||||
}: let
|
||||
|
|
@ -56,14 +51,13 @@
|
|||
artemisia = nixosServer { name = "artemisia"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
reine = nixosServer { name = "reine"; modules = [ project-a-software.nixosModules.affine ]; };
|
||||
ivan = nixosServer { name = "ivan"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
kotori = nixosServer { name = "kotori"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
mio = nixosServer { name = "mio"; modules = [ ]; };
|
||||
wise = nixosServer { name = "wise"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
mio = nixosServer { name = "mio"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
kristine = nixosServer { name = "kristine"; modules = [ project-a-software.nixosModules.marzban ]; };
|
||||
|
||||
aqore-nix = nixpkgs.lib.nixosSystem {
|
||||
system = linux64;
|
||||
specialArgs = {
|
||||
inherit winapps;
|
||||
pkgs-unstable = import nixpkgs-unstable { system = linux64; config.allowUnfree = true; };
|
||||
};
|
||||
modules = [
|
||||
|
|
@ -71,12 +65,10 @@
|
|||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.almiriqi = ./desktops/users/almiriqi/home.nix;
|
||||
home-manager.users.in5ar = ./desktops/users/in5ar/home.nix;
|
||||
}
|
||||
({ pkgs, ... }: {
|
||||
({ ... }: {
|
||||
environment.systemPackages = [
|
||||
winapps.packages."${linux64}".winapps
|
||||
winapps.packages."${linux64}".winapps-launcher
|
||||
deploy-rs.packages."${linux64}".deploy-rs
|
||||
];
|
||||
})
|
||||
|
|
@ -105,7 +97,14 @@
|
|||
sshOpts = [ "-p" "1004" ];
|
||||
};
|
||||
ivan = serverNode "ivan";
|
||||
kotori = serverNode "kotori";
|
||||
wise = {
|
||||
hostname = "${"wise"}.project-a.space";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.${"wise"};
|
||||
};
|
||||
sshUser = "root";
|
||||
};
|
||||
mio = serverNode "mio";
|
||||
kristine = serverNode "kristine";
|
||||
};
|
||||
|
|
@ -130,4 +129,4 @@
|
|||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue