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"
}
},
"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": {
"flake": false,
"locked": {
@ -364,41 +331,6 @@
"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": {
"locked": {
"lastModified": 1742255973,
@ -566,7 +498,6 @@
"hyprcloser": "hyprcloser",
"hyprshaders": "hyprshaders",
"impermanence": "impermanence",
"lix-module": "lix-module",
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
@ -574,7 +505,7 @@
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix",
"stylix": "stylix",
"systems": "systems_2"
"systems": "systems"
}
},
"rust-overlay": {
@ -700,21 +631,6 @@
"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": {
"flake": false,
"locked": {

View file

@ -25,10 +25,10 @@
./modules/security.nix
./modules/users.nix
./modules/networking.nix
./modules/shell.nix
];
desktopModules = [
./modules/graphical.nix
./modules/shell.nix
];
in
inputs.nixpkgs.lib.nixosSystem {
@ -54,26 +54,13 @@
])
++ (lib.optionals (hostname == "orpheus") [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
(
{
pkgs,
lib,
bootDisk,
...
}:
{
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";
};
}
)
{
fileSystems."/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
nixpkgs.hostPlatform = "aarch64-linux";
}
]);
};
};
@ -148,9 +135,5 @@
};
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 = [
(modulesPath + "/installer/scan/not-detected.nix")

View file

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