formatting
This commit is contained in:
parent
29c782efb2
commit
dbb8efeec2
4 changed files with 105 additions and 94 deletions
24
flake.nix
24
flake.nix
|
|
@ -59,7 +59,9 @@
|
||||||
];
|
];
|
||||||
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
||||||
makePkgs = system: import nixpkgs { inherit system; };
|
makePkgs = system: import nixpkgs { inherit system; };
|
||||||
makeNixosConfig = configName: nixpkgs.lib.nixosSystem {
|
makeNixosConfig =
|
||||||
|
configName:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs outputs; };
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [ ./hosts/${configName}/configuration.nix ];
|
modules = [ ./hosts/${configName}/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
@ -82,21 +84,31 @@
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.harmonica;
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.harmonica;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (
|
||||||
|
system:
|
||||||
let
|
let
|
||||||
makeNixosConfigWithSystemOverride = configName: nixpkgs.lib.nixosSystem {
|
makeNixosConfigWithSystemOverride =
|
||||||
|
configName:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs outputs; };
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${configName}/configuration.nix
|
./hosts/${configName}/configuration.nix
|
||||||
{ nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; }
|
{ nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
dotfilesMachineNames = [ "ymir" "pochita" "tartarus" "wallfacer" ];
|
dotfilesMachineNames = [
|
||||||
|
"ymir"
|
||||||
|
"pochita"
|
||||||
|
"tartarus"
|
||||||
|
"wallfacer"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
builtins.listToAttrs (map (name: {
|
builtins.listToAttrs (
|
||||||
|
map (name: {
|
||||||
name = "${name}-dotfiles";
|
name = "${name}-dotfiles";
|
||||||
value = (makeNixosConfigWithSystemOverride name).config.home-manager.users.osbm.home-files;
|
value = (makeNixosConfigWithSystemOverride name).config.home-manager.users.osbm.home-files;
|
||||||
}) dotfilesMachineNames)
|
}) dotfilesMachineNames
|
||||||
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
networking.hostName = "ymir"; # Define your hostname.
|
networking.hostName = "ymir"; # Define your hostname.
|
||||||
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
8889
|
8889
|
||||||
8000
|
8000
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
{
|
{
|
||||||
size = "small";
|
size = "small";
|
||||||
widgets = [
|
widgets = [
|
||||||
{type = "calendar";}
|
{ type = "calendar"; }
|
||||||
{
|
{
|
||||||
type = "repository";
|
type = "repository";
|
||||||
repository = "NixOS/nixpkgs";
|
repository = "NixOS/nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
port = 3000;
|
port = 3000;
|
||||||
hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/";
|
hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/";
|
||||||
notificationSender = "hydra@localhost";
|
notificationSender = "hydra@localhost";
|
||||||
buildMachinesFiles = [];
|
buildMachinesFiles = [ ];
|
||||||
useSubstitutes = true;
|
useSubstitutes = true;
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue