mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
orac config (oracle-arm)
This commit is contained in:
parent
2b95dc0499
commit
f7216de230
4 changed files with 145 additions and 13 deletions
69
flake.nix
69
flake.nix
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
# ~/Documents/nix-config/flake.nix
|
||||
{
|
||||
description = "NixOS configurations for laptop and homelab server";
|
||||
|
|
@ -44,28 +43,41 @@
|
|||
nixos = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs system overlays primaryUser;
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
overlays
|
||||
primaryUser
|
||||
;
|
||||
unstablePkgs = import nixpkgs-unstable { inherit system; };
|
||||
};
|
||||
modules = [
|
||||
./nixos/configuration.nix
|
||||
./nixos/hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
({ unstablePkgs, ... }: {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit hmLib unstablePkgs; };
|
||||
home-manager.users.death916 = {
|
||||
imports = [ ./home-manager/home.nix ];
|
||||
};
|
||||
})
|
||||
(
|
||||
{ unstablePkgs, ... }:
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit hmLib unstablePkgs; };
|
||||
home-manager.users.death916 = {
|
||||
imports = [ ./home-manager/home.nix ];
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
homelab = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs system overlays primaryUser;
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
overlays
|
||||
primaryUser
|
||||
;
|
||||
unstablePkgsHA = import nixpkgs-unstable { inherit system; };
|
||||
};
|
||||
modules = [
|
||||
|
|
@ -87,10 +99,15 @@
|
|||
inherit system;
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs system overlays primaryUser;
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
overlays
|
||||
primaryUser
|
||||
;
|
||||
};
|
||||
modules = [
|
||||
./nixos/oracle-proxy.nix # Your main homelab config
|
||||
./nixos/oracle-proxy.nix # Your main homelab config
|
||||
./nixos/oracle-proxy-hardware.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
|
|
@ -103,6 +120,32 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
orac = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
overlays
|
||||
primaryUser
|
||||
;
|
||||
};
|
||||
modules = [
|
||||
./nixos/orac.nix # Your main homelab config
|
||||
./nixos/orac-hardware.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit hmLib; };
|
||||
home-manager.users.death916 = {
|
||||
imports = [ ./home-manager/orac-home.nix ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
28
home-manager/orac-home.nix
Normal file
28
home-manager/orac-home.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ../modules/home-manager/common.nix ];
|
||||
|
||||
home.username = "death916";
|
||||
home.stateVersion = "25.05";
|
||||
|
||||
programs.bash.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
fastfetch
|
||||
wget
|
||||
zellij
|
||||
systemctl-tui
|
||||
gemini-cli
|
||||
nh
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
nh-push = "/home/death916/nixconfig/scripts/nh-push";
|
||||
};
|
||||
14
nixos/orac-hardware.nix
Normal file
14
nixos/orac-hardware.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
device = "nodev";
|
||||
};
|
||||
fileSystems."/boot" = { device = "/dev/disk/by-uuid/BEE2-B205"; fsType = "vfat"; };
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
|
||||
boot.initrd.kernelModules = [ "nvme" ];
|
||||
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
||||
|
||||
}
|
||||
47
nixos/orac.nix
Normal file
47
nixos/orac.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
imports = [
|
||||
../modules/nixos/common/base.nix
|
||||
../modules/nixos/common/tailscale.nix
|
||||
../nixos/orac-hardware.nix
|
||||
#../modules/nixos/orac/services.nix
|
||||
];
|
||||
|
||||
users.users.death916 = {
|
||||
isNormalUser = true;
|
||||
home = "/home/death916";
|
||||
description = "death916";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDoxgXUwp/ceXyfsOOSTBIpOIXZ4CyNcXj/W0wkkVhqjoiZOXlls1mjGvmFYmYbKw8He055+cxjRyhQqBCblwwy7Kj/o9ZE7Tg/tYoU//Iog/wReSoSlms58UR/qZk2Rk0mD0RfmW22iAJp8e+Z9qxF1h+1MZy6WPb3R7+KiN5U9q6ls71bF2AP+W5PV/voMi5R/66JolPpcVrYhrNKMPNSqefAD0Q0xeuoDff0LIsRuHZVGDE0MxCPWHpikQ/5K3bPjw1yRxo55buwDLddRmKZ5OSwtfnoI02BLh7zJvrctMPpKDQa2L+He5woC92/m7pmPFhdBynJ5e30KvQGsiUuB4oPye/29quZmybOR3JXbBZjrJ2kmAhrdt1PxoywWKOOTX5Xdw6d5kSYq00TAhDpcLcvGy3lh0tpLk8ia8HVfN7pmJQTDi+CW72zlHyPQILPsxR88ex5MGqE2GupP5wFYR+J6ncumh7Chdes2vD7r9uA2GUy8hmAfDhUG4B1yHs= death916@nixos"
|
||||
];
|
||||
};
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDoxgXUwp/ceXyfsOOSTBIpOIXZ4CyNcXj/W0wkkVhqjoiZOXlls1mjGvmFYmYbKw8He055+cxjRyhQqBCblwwy7Kj/o9ZE7Tg/tYoU//Iog/wReSoSlms58UR/qZk2Rk0mD0RfmW22iAJp8e+Z9qxF1h+1MZy6WPb3R7+KiN5U9q6ls71bF2AP+W5PV/voMi5R/66JolPpcVrYhrNKMPNSqefAD0Q0xeuoDff0LIsRuHZVGDE0MxCPWHpikQ/5K3bPjw1yRxo55buwDLddRmKZ5OSwtfnoI02BLh7zJvrctMPpKDQa2L+He5woC92/m7pmPFhdBynJ5e30KvQGsiUuB4oPye/29quZmybOR3JXbBZjrJ2kmAhrdt1PxoywWKOOTX5Xdw6d5kSYq00TAhDpcLcvGy3lh0tpLk8ia8HVfN7pmJQTDi+CW72zlHyPQILPsxR88ex5MGqE2GupP5wFYR+J6ncumh7Chdes2vD7r9uA2GUy8hmAfDhUG4B1yHs= death916@nixos"
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "yes";
|
||||
AllowUsers = [ "death916" ];
|
||||
};
|
||||
};
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
|
||||
networking.hostName = "orac";
|
||||
networking.domain = "";
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue