Move izanagi configs to new structure
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
mkComputer = configurationNix: extraModules: username: inputs.nixpkgs.lib.nixosSystem {
|
mkComputer = configurationNix: extraModules: username: inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs pkgs nixos-hardware extraHomeModules username; };
|
specialArgs = { inherit inputs nixos-hardware extraHomeModules username; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
mkUnstableComputer = configurationNix: extraModules: username: inputs.unstable.lib.nixosSystem {
|
mkUnstableComputer = configurationNix: extraModules: username: inputs.unstable.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs upkgs nixos-hardware extraHomeModules username; };
|
specialArgs = { inherit inputs nixos-hardware extraHomeModules username; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
@@ -145,35 +145,22 @@
|
|||||||
###
|
###
|
||||||
# Proxmox Remote Dev Machine
|
# Proxmox Remote Dev Machine
|
||||||
###
|
###
|
||||||
izanagi-minimal =
|
izanagi-minimal = mkComputer
|
||||||
let
|
./machines/izanagi/minimal
|
||||||
username = "izanagi";
|
[]
|
||||||
in nixpkgs.lib.nixosSystem {
|
"izanagi";
|
||||||
specialArgs = {inherit inputs outputs extraHomeModules username;};
|
izanagi = mkComputer
|
||||||
modules = [
|
./machines/izanagi/main
|
||||||
disko.nixosModules.disko
|
[
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
./machines/izanagi-minimal
|
|
||||||
];
|
|
||||||
};
|
|
||||||
izanagi =
|
|
||||||
let
|
|
||||||
username = "izanagi";
|
|
||||||
in nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {inherit inputs outputs extraHomeModules username;};
|
|
||||||
modules = [
|
|
||||||
disko.nixosModules.disko
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
inputs.copyparty.nixosModules.default
|
inputs.copyparty.nixosModules.default
|
||||||
inputs.vscode-server.nixosModules.default
|
inputs.vscode-server.nixosModules.default
|
||||||
|
|
||||||
./machines/izanagi
|
|
||||||
./modules
|
./modules
|
||||||
];
|
]
|
||||||
};
|
"izanagi";
|
||||||
|
|
||||||
###
|
###
|
||||||
# Omen Laptop
|
# Omen Laptop
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../minimal.nix
|
../../minimal.nix
|
||||||
|
|
||||||
../hardware-configuration.nix
|
../hardware-configuration.nix
|
||||||
../disko-config.nix
|
../disko-config.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ in {
|
|||||||
# This is fujin root user ssh key, it needs to be updated if fujin is reinstalled
|
# This is fujin root user ssh key, it needs to be updated if fujin is reinstalled
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDbNm8WiTyYxEv0Hb9V/E84WH3fiCwWeYG9da8sDaU0V root@nixos"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDbNm8WiTyYxEv0Hb9V/E84WH3fiCwWeYG9da8sDaU0V root@nixos"
|
||||||
];
|
];
|
||||||
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -13,8 +13,10 @@ let
|
|||||||
in {
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
../../minimal.nix
|
||||||
./disko-config.nix
|
|
||||||
|
../hardware-configuration.nix
|
||||||
|
../disko-config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -85,8 +87,6 @@ in {
|
|||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBcGhVpjmWEw1GEw0y/ysJPa2v3+u/Rt/iES/Se2huH2 alexander0derevianko@gmail.com"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBcGhVpjmWEw1GEw0y/ysJPa2v3+u/Rt/iES/Se2huH2 alexander0derevianko@gmail.com"
|
||||||
];
|
];
|
||||||
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
Reference in New Issue
Block a user