Test
This commit is contained in:
parent
6e5ef7ddf5
commit
fb368413f3
2 changed files with 28 additions and 37 deletions
|
@ -35,30 +35,21 @@
|
|||
container,
|
||||
username ? "albert",
|
||||
desktop ? null,
|
||||
gpu ? null,
|
||||
system ? "x86_64-linux",
|
||||
theme ? "stylix",
|
||||
type ? "default",
|
||||
repo ? "nixpkgs",
|
||||
unfree ? false
|
||||
unfree ? false,
|
||||
pkgs ? import inputs.${repo}
|
||||
{ inherit system; config.allowUnfree = unfree; hostPlatform = system; },
|
||||
pkgs-unstable ? import inputs.nixpkgs-unstable
|
||||
{inherit system; config.allowUnfree = unfree; hostPlatform = system; }
|
||||
}: {
|
||||
autoStart = true;
|
||||
privateNetwork = false;
|
||||
specialArgs = { inherit desktop container username stateVersion gpu system theme; };
|
||||
config = { lib, container, username, desktop, gpu, system, theme, type, repo, unfree, pkgs, stateVersion}: {
|
||||
# Choose whether to pull from stable or unstable
|
||||
pkgs = import inputs.${repo} {
|
||||
inherit system;
|
||||
config.allowUnfree = unfree;
|
||||
hostPlatform = system;
|
||||
};
|
||||
# Some packages (ie, Vintage Story) I want to keep on unstable no matter what default repo I use
|
||||
pkgs-unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = unfree;
|
||||
hostPlatform = system;
|
||||
};
|
||||
imports = [ ../nixos/containers/rdesktop ];
|
||||
specialArgs = { inherit pkgs pkgs-unstable container username desktop theme system repo unfree; };
|
||||
config = { lib, config, pkgs, pkgs-unstable, container, username, desktop, theme, system, repo, ... }: {
|
||||
imports = [ ../nixos/containers/${container} ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ self, inputs, outputs, username, stateVersion, hmStateVersion, config, lib, pkgs, modulesPath, system, ... }:
|
||||
{ self, inputs, outputs, stateVersion, hmStateVersion, pkgs, pkgs-unstable, ... }:
|
||||
let
|
||||
libx = import ../../../lib {inherit self inputs outputs stateVersion hmStateVersion; };
|
||||
libx = import ../../../lib {inherit self inputs outputs stateVersion hmStateVersion pkgs-unstable pkgs; };
|
||||
in {
|
||||
containers = {
|
||||
rdesktop = libx.mkContainer { container = "rdesktop"; desktop = "xfce";};
|
||||
rdesktop = libx.mkContainer { container = "rdesktop"; desktop = "xfce"; unfree = true;};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue