refactor: add orpheus

This commit is contained in:
Mohammad Rafiq 2025-04-04 22:08:49 +08:00
parent da9dbbebdf
commit 4d32434982
No known key found for this signature in database
4 changed files with 16 additions and 115 deletions

86
flake.lock generated
View file

@ -179,39 +179,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
"owner": "lf-",
"repo": "flakey-profile",
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
"type": "github"
},
"original": {
"owner": "lf-",
"repo": "flakey-profile",
"type": "github"
}
},
"fromYaml": { "fromYaml": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -364,41 +331,6 @@
"type": "github" "type": "github"
} }
}, },
"lix": {
"flake": false,
"locked": {
"lastModified": 1737234286,
"narHash": "sha256-pgDJZjj4jpzkFxsqBTI/9Yb0n3gW+DvDtuv9SwQZZcs=",
"rev": "079528098f5998ba13c88821a2eca1005c1695de",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/079528098f5998ba13c88821a2eca1005c1695de.tar.gz?rev=079528098f5998ba13c88821a2eca1005c1695de"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/lix/archive/release-2.92.tar.gz"
}
},
"lix-module": {
"inputs": {
"flake-utils": "flake-utils_2",
"flakey-profile": "flakey-profile",
"lix": "lix",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1742943028,
"narHash": "sha256-fprwZKE1uMzO9tiWWOrmLWBW3GPkMayQfb0xOvVFIno=",
"rev": "868d97695bab9d21f6070b03957bcace249fbe3c",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/868d97695bab9d21f6070b03957bcace249fbe3c.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz"
}
},
"mnw": { "mnw": {
"locked": { "locked": {
"lastModified": 1742255973, "lastModified": 1742255973,
@ -566,7 +498,6 @@
"hyprcloser": "hyprcloser", "hyprcloser": "hyprcloser",
"hyprshaders": "hyprshaders", "hyprshaders": "hyprshaders",
"impermanence": "impermanence", "impermanence": "impermanence",
"lix-module": "lix-module",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
@ -574,7 +505,7 @@
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"stylix": "stylix", "stylix": "stylix",
"systems": "systems_2" "systems": "systems"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -700,21 +631,6 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": { "tinted-foot": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -25,10 +25,10 @@
./modules/security.nix ./modules/security.nix
./modules/users.nix ./modules/users.nix
./modules/networking.nix ./modules/networking.nix
./modules/shell.nix
]; ];
desktopModules = [ desktopModules = [
./modules/graphical.nix ./modules/graphical.nix
./modules/shell.nix
]; ];
in in
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {
@ -54,26 +54,13 @@
]) ])
++ (lib.optionals (hostname == "orpheus") [ ++ (lib.optionals (hostname == "orpheus") [
inputs.nixos-hardware.nixosModules.raspberry-pi-4 inputs.nixos-hardware.nixosModules.raspberry-pi-4
( {
{ fileSystems."/" = {
pkgs, device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
lib, fsType = "ext4";
bootDisk, };
... nixpkgs.hostPlatform = "aarch64-linux";
}: }
{
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
fileSystems."/" = {
device = bootDisk;
fsType = "ext4";
};
services.cage = {
enable = true;
user = "rafiq";
program = "${pkgs.firefox}/bin/firefox -kiosk -private-window https://youtube.com/tv";
};
}
)
]); ]);
}; };
}; };
@ -148,9 +135,5 @@
}; };
url = "github:danth/stylix"; url = "github:danth/stylix";
}; };
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
} }

View file

@ -1,4 +1,9 @@
{ pkgs, modulesPath, ... }: {
pkgs,
modulesPath,
lib,
...
}:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")

View file

@ -1,7 +1,4 @@
{ inputs, ... }:
{ {
imports = [ inputs.lix-module.nixosModules.default ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -10,7 +7,7 @@
experimental-features = [ experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
"pipe-operator" "pipe-operators"
]; ];
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];