feat: finished orpheus and nemesis DINALLY

This commit is contained in:
Mohammad Rafiq 2025-03-12 03:37:06 +08:00
parent 03c9b32951
commit 45c4e136c4
4 changed files with 34 additions and 3 deletions

16
flake.lock generated
View file

@ -809,6 +809,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1741325094,
"narHash": "sha256-RUAdT8dZ6k/486vnu3tiNRrNW6+Q8uSD2Mq7gTX4jlo=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "b48cc4dab0f9711af296fc367b6108cf7b8ccb16",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1739020877,
@ -1065,6 +1080,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"nixd": "nixd",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"nvf": "nvf",

View file

@ -1,5 +1,5 @@
{
description = "NixOS setup for one host with home-manager";
description = "flake forward setup with two hosts on different architectures";
outputs = {
self,
@ -14,7 +14,6 @@
modules = [
./systems/${hostname}.nix
# Add the home-manager user
home-manager.nixosModules.home-manager
{
home-manager = {
@ -39,7 +38,20 @@
value = nixpkgs.lib.nixosSystem {
specialArgs = args;
modules = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
"${nixpkgs}/nixos/modules/profiles/minimal.nix"
./systems/orpheus.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
extraSpecialArgs = args;
users.rafiq.imports = [
./users/rafiq.nix
];
};
}
];
};
}
@ -48,6 +60,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -7,7 +7,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILv8HqazE294YdyGaXK6q2EniDlTpGaUL071kk9+W0GJ rafiq@nemesis"
];
};
security.sudo = {
wheelNeedsPassword = false;
};
@ -17,6 +17,7 @@
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.trusted-users = ["root" "@wheel"];
environment.systemPackages = with pkgs; [
git

View file

@ -7,6 +7,7 @@
imports = [
# Include the results of the hardware scan.
./hw-orpheus.nix
./modules/common.nix
];
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)