Move To NixOS/nixpkgs#257400
This is an experimental flake for DDE (Deepin Desktop Environment) on NixOS.
DDE v20 has been merged into Nixpkgs
With flakes (Recommended):
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
dde-nixos = {
url = "github:linuxdeepin/dde-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, dde-nixos, ... } @ inputs:
let
system = "x86_64-linux";
in {
nixosConfigurations.<hostname> = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
dde-nixos.nixosModules.${system}
{
services.xserver.desktopManager.deepin-unstable.enable = true;
}
./configuration.nix # your system configuration goes here
];
};
};
}
example: rewine's NixOS config
With ordinary configuration.nix
and flake-compat:
{pkgs, ...}: let
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
dde-nixos = (import flake-compat {
src = builtins.fetchTarball "https://github.com/linuxdeepin/dde-nixos/archive/master.tar.gz";
}).defaultNix;
in {
imports = [dde-nixos.nixosModules.${pkgs.system}];
services.xserver.desktopManager.deepin-unstable.enable = true;
# other configuration still goes here
}
Quickly start an virtual machine to test out as long as you have installed nix:
git clone [email protected]:linuxdeepin/dde-nixos.git
cd dde-nixos/vm
# edit vm/flake.nix
nix run -v -L
In case you don't apply custom configuration:
nix --experimental-features 'nix-command flakes' run "github:linuxdeepin/dde-nixos?dir=vm" -v -L --no-write-lock-file
Using Nix build hooks:
nix build .#deepin-calculator -v -L
Manually build for debugging purposes:
nix develop .#deepin-calculator
git clone [email protected]:linuxdeepin/deepin-calculator.git
git checkout 5.7.16
... # maintainence code
cmake --build build
Thanks Garnix for providing CI and binary cache.
For faster build and test with garnix cache, add https://cache.garnix.io
to substituters, and cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
to trusted-public-keys.
- nixos-dde-iso NixOS live image with DDE [maintainer=@SamLukeYes]
- dmarked dtk based markdown editor
MIT