Skip to content

Instantly share code, notes, and snippets.

View worldofpeace's full-sized avatar
🌑

WORLDofPEACE worldofpeace

🌑
  • they/them
View GitHub Profile
@worldofpeace
worldofpeace / pantheon.md
Last active June 2, 2023 17:10
NixOS Pantheon Docs

Pantheon Desktop

Pantheon is the desktop environment created for the elementary OS distribution. It is written from scratch in Vala, utilizing GNOME technologies with GTK 3 and Granite. All of Pantheon is working in NixOS and the applications should be available, aside from a few exceptions. To enable Pantheon, set

services.xserver.desktopManager.pantheon.enable = true;
diff --git a/icons/Makefile b/icons/Makefile
index 9fa5b30..41cc1b4 100755
--- a/icons/Makefile
+++ b/icons/Makefile
@@ -7,10 +7,12 @@ sizes = 16 24 32 48 64 72 96 128 256 512 1024
theme = hicolor
category = apps
-icons = $(foreach size,$(sizes),$(size)x$(size)/$(category)/nix-snowflake.png) \
- scalable/$(category)/nix-snowflake.svg \
final: prev:
{
pantheon = prev.pantheon.overrideScope' (pfinal: pprev: {
elementary-gsettings-schemas = pfinal.callPackage ./desktop/elementary-gsettings-schemas { };
#### APPS
appcenter = pfinal.callPackage ./apps/appcenter { };
final: prev:
let
inherit (final) callPackage;
in
{
pantheon = prev.pantheon.overrideScope' (pfinal: pprev: {
switchboardPlugs = [
switchboard-plug-a11y
@worldofpeace
worldofpeace / default.nix
Last active September 6, 2020 17:02
Nix Expression for FiraCode nerdfont
{ stdenv, fetchzip }:
let
pname = "FiraCode";
version = "v2.0.0";
in
stdenv.mkDerivation rec {
name = "${pname}-nerdfont-${version}";
src = fetchzip {
@worldofpeace
worldofpeace / Improvements-i-think-we-need-for-ailases.md
Last active July 27, 2020 02:22
Improvements I think we need for aliases

Improvements I think we need for aliases

  1. Warnings when they're used
nix-build -A adobeReader

warning: adobeReader is an alias for adobe-reader. You should migrate to using this attribute.

these derivations will be built:
@worldofpeace
worldofpeace / gnome3.md
Last active May 3, 2020 14:10
A markdown draft of docs in the nixos manual for GNOME.

GNOME Desktop

Enabling GNOME

All of the core apps, optional apps, and games from GNOME are available.

To enable the GNOME desktop use:

services.xserver.desktopManager.gnome3.enable = true;

Releases

Release process

Going through an example of releasing NixOS 19.09:

One month before the beta

diff --git a/nixos/modules/security/rngd.nix b/nixos/modules/security/rngd.nix
index 5566c53897d..d89f20221dd 100644
--- a/nixos/modules/security/rngd.nix
+++ b/nixos/modules/security/rngd.nix
@@ -37,6 +37,12 @@ in
after = [ "dev-random.device" ];
+ conflicts = [ "shutdown.target" ];
+ before = [
{
// Place your snippets for xml here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",