WIP: switch to open modules
This commit is contained in:
parent
d38ea124bd
commit
efb678ad92
2 changed files with 29 additions and 45 deletions
50
flake.nix
50
flake.nix
|
|
@ -34,18 +34,8 @@
|
||||||
nix-config = {
|
nix-config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
permittedInsecurePackages = [
|
permittedInsecurePackages = [ ];
|
||||||
# "electron-27.3.11" # LogSeq
|
|
||||||
# "aspnetcore-runtime-6.0.36" # Sonarr
|
|
||||||
# "aspnetcore-runtime-wrapped-6.0.36" # Sonarr
|
|
||||||
# "dotnet-sdk-6.0.428" # Sonarr
|
|
||||||
# "dotnet-sdk-wrapped-6.0.428" # Sonarr
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# cute-api = builtins.getFlake "gitlab:bertof/cute-api/0.2.1-3";
|
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = import inputs.systems;
|
systems = import inputs.systems;
|
||||||
|
|
@ -55,8 +45,8 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
config = nix-config;
|
config = nix-config;
|
||||||
overlays = [
|
overlays = [
|
||||||
# inputs.nix-rice.overlays.default
|
|
||||||
inputs.self.overlays.packages
|
inputs.self.overlays.packages
|
||||||
|
inputs.self.overlays.overrides
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -301,12 +291,9 @@
|
||||||
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
self.nixosModules.server
|
self.nixosModules.server
|
||||||
|
|
||||||
./instances/heimdall/hardware-configuration.nix
|
./instances/heimdall/hardware-configuration.nix
|
||||||
./instances/heimdall/configuration.nix
|
./instances/heimdall/configuration.nix
|
||||||
|
|
||||||
self.nixosModules.tiziano
|
|
||||||
|
|
||||||
./nixos/ip_forwarding.nix
|
./nixos/ip_forwarding.nix
|
||||||
./nixos/torrentbox.nix
|
./nixos/torrentbox.nix
|
||||||
./nixos/minio_server.nix
|
./nixos/minio_server.nix
|
||||||
|
|
@ -314,6 +301,7 @@
|
||||||
./nixos/immich.nix
|
./nixos/immich.nix
|
||||||
./nixos/forgejo.nix
|
./nixos/forgejo.nix
|
||||||
|
|
||||||
|
self.nixosModules.tiziano
|
||||||
{
|
{
|
||||||
home-manager.users.bertof = import ./instances/heimdall/hm.nix;
|
home-manager.users.bertof = import ./instances/heimdall/hm.nix;
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
|
|
@ -352,6 +340,8 @@
|
||||||
./instances/baldur/hardware-configuration.nix
|
./instances/baldur/hardware-configuration.nix
|
||||||
./instances/baldur/configuration.nix
|
./instances/baldur/configuration.nix
|
||||||
|
|
||||||
|
./nixos/ip_forwarding.nix
|
||||||
|
|
||||||
self.nixosModules.tiziano
|
self.nixosModules.tiziano
|
||||||
{
|
{
|
||||||
home-manager.users.bertof = import ./instances/baldur/hm.nix;
|
home-manager.users.bertof = import ./instances/baldur/hm.nix;
|
||||||
|
|
@ -378,36 +368,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Deploy-rs checks
|
|
||||||
# checks = builtins.mapAttrs (_system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
|
|
||||||
|
|
||||||
# Map nodes to Deploy-rs deployments
|
|
||||||
deploy.nodes = {
|
|
||||||
baldur = {
|
|
||||||
hostname = "baldur.bertof.net";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.baldur; };
|
|
||||||
};
|
|
||||||
freya = {
|
|
||||||
hostname = "freya.tsn";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos inputs.self.nixosConfigurations.freya; };
|
|
||||||
};
|
|
||||||
heimdall = {
|
|
||||||
hostname = "heimdall.tsn";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.heimdall; };
|
|
||||||
};
|
|
||||||
loki = {
|
|
||||||
hostname = "loki.tsn";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.loki; };
|
|
||||||
};
|
|
||||||
odin = {
|
|
||||||
hostname = "odin.tsn";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.odin; };
|
|
||||||
};
|
|
||||||
thor = {
|
|
||||||
hostname = "thor.tsn";
|
|
||||||
profiles.system = { user = "root"; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.thor; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
instances/heimdall/hm_tiziano.nix
Normal file
24
instances/heimdall/hm_tiziano.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
home = {
|
||||||
|
language.base = "it_IT.UTF-8";
|
||||||
|
keyboard = {
|
||||||
|
layout = "it";
|
||||||
|
options = [
|
||||||
|
"terminate:ctrl_alt_bksp"
|
||||||
|
"compose:rctrl"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
packages = [ pkgs.retroarch-free pkgs.heroic ];
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../../hm/combined/basics.nix
|
||||||
|
|
||||||
|
../../hm/syncthing_tiziano.nix
|
||||||
|
|
||||||
|
../../hm/shell_aliases.nix
|
||||||
|
../../hm/rclone-mount-tiziano.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "23.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue