prep for multi system config
This commit is contained in:
parent
e05c685a39
commit
ed467b867c
10 changed files with 241 additions and 411 deletions
81
home-manager/nixos.nix
Normal file
81
home-manager/nixos.nix
Normal file
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
description = "Home Manager configuration of buymymojo";
|
||||
|
||||
inputs = {
|
||||
# Specify the source of Home Manager and Nixpkgs.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
moonlight = {
|
||||
url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
|
||||
shadps4-git.url = "./programs/shadps4";
|
||||
|
||||
nixpkgs-gsr-ui = {
|
||||
url = "github:js6pak/nixpkgs/gpu-screen-recorder-ui/init"; # Add `/develop` to the flake URL to use nightly.
|
||||
};
|
||||
|
||||
bellado.url = "github:isabelroses/bellado";
|
||||
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nixpkgs-unstable,
|
||||
nixpkgs-gsr-ui,
|
||||
bellado,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
gsr-ui = import nixpkgs-gsr-ui {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
homeConfigurations."buymymojo" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit unstable;
|
||||
inherit inputs;
|
||||
inherit gsr-ui;
|
||||
inherit bellado;
|
||||
};
|
||||
|
||||
# Specify your home configuration modules here, for example,
|
||||
# the path to your home.nix.
|
||||
modules = [
|
||||
./hosts/nixos/home.nix
|
||||
./hosts/nixos/packages.nix
|
||||
./hosts/nixos/services.nix
|
||||
|
||||
./packages/common-cli.nix
|
||||
./packages/common-desktop.nix
|
||||
];
|
||||
|
||||
# Optionally use extraSpecialArgs
|
||||
# to pass through arguments to home.nix
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue