mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Try out compose2nix
This commit is contained in:
parent
0aeec8ebe7
commit
cb6b77b813
3 changed files with 31 additions and 3 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -17,6 +17,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"compose2nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1712407744,
|
||||
"narHash": "sha256-I6u5PHFilTnDbBxXpk2TSv5al2SXZwos2TNHmKrq068=",
|
||||
"owner": "aksiksi",
|
||||
"repo": "compose2nix",
|
||||
"rev": "79a1dbd3fd1f19d54a80b0d8ed0268e1e1afe187",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "aksiksi",
|
||||
"repo": "compose2nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"crane": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
|
@ -436,6 +456,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"compose2nix": "compose2nix",
|
||||
"disko": "disko",
|
||||
"flox-flake": "flox-flake",
|
||||
"genebean-omp-themes": "genebean-omp-themes",
|
||||
|
|
|
|||
10
flake.nix
10
flake.nix
|
|
@ -42,6 +42,12 @@
|
|||
# inputs.nixpkgs.follows ="nixpkgs";
|
||||
};
|
||||
|
||||
compose2nix = {
|
||||
url = "github:aksiksi/compose2nix";
|
||||
inputs.nixpkgs.follows ="nixpkgs";
|
||||
};
|
||||
|
||||
|
||||
# My oh-my-posh theme
|
||||
genebean-omp-themes = {
|
||||
url = "github:genebean/my-oh-my-posh-themes";
|
||||
|
|
@ -49,7 +55,7 @@
|
|||
};
|
||||
|
||||
}; # end inputs
|
||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nix-darwin, home-manager, nix-homebrew, nix-flatpak, disko, sops-nix, flox-flake, genebean-omp-themes, ... }: let
|
||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nix-darwin, home-manager, nix-homebrew, nix-flatpak, disko, sops-nix, compose2nix, flox-flake, genebean-omp-themes, ... }: let
|
||||
|
||||
# creates a macOS system config
|
||||
darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem {
|
||||
|
|
@ -89,7 +95,7 @@
|
|||
|
||||
# creates a nixos system config
|
||||
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs username hostname flox-flake;
|
||||
specialArgs = { inherit inputs username hostname compose2nix flox-flake;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, username, ... }: {
|
||||
{ compose2nix, config, pkgs, username, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./containers/audiobookshelf.nix
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
compose2nix.packages.${pkgs.system}.default
|
||||
intel-gpu-tools
|
||||
jellyfin
|
||||
jellyfin-ffmpeg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue