Skip to content

cecilia-sanare/nix-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ WIP ⚠️

Ceci's Opinionated NixOS Desktop Environments ❄️

The primary goal of this module is to make swapping between desktop environments as seamless as possible.

(also to get my desktop configuration out of my nix-config)

Supported Desktop Environments

Gnome

Stock "null"

Just the stock gnome desktop environment with a few minor tweaks based on our defaults

  • Audio alerts are off (this can be turned off by setting nix-desktop.alerts to true)
  • Dark mode (this can be turned off by setting nix-desktop.theme.dark to false)
  • Removes all of the stock gnome apps and xterm.
  • Adds the following default apps (this can be turned off by setting nix-desktop.default-apps to null):
    • Gnome Terminal
    • Unzip Utility (aka File Roller)
    • File Viewer (aka nautilus)
    • System Monitor
    • Disk Usage Analyzer (aka boabab)
    • Image Viewer (aka eog)

Sane "sane"

Screenshots

Screenshot


  • enable-hot-corners is set to false
  • edge-tiling is enabled
  • Nautilus default-zoom-level is set to small-plus
  • Dash to dock is installed in preconfigured
  • Activities button is removed
  • Tray icons are enabled

Mac "mac"

Screenshots

Screenshot


TODO

Usage

flake.nix (RECOMMENDED)

Even if flakes are still experimental, they're the best way of managing dependencies.

{
  description = "NixOS Example";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nix-desktop.url = "github:cecilia-sanare/nix-desktop/main";
    nix-desktop.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, ... } @ inputs: {
    nixosConfigurations =
      let
        inherit (self) outputs;
        inherit (nixpkgs.lib) nixosSystem;
      in
      {
        your-hostname = nixosSystem {
          specialArgs = { inherit inputs outputs; };

          modules = [
            inputs.nix-desktop.nixosModules.default
            # Ideally don't actually put this inline, but you definitely could!
            ({ ... }: {
                nix-desktop = {
                    enable = true;
                    type = "gnome";
                    preset = "sane";
                };
            })
          ];
        };
      };
  };
}

configuration.nix (NOT RECOMMENDED)

This method of importing modules really isn't recommended. The primary issue is that it doesn't lock down the dependencies which can prevent your nix configuration from being reproducible.

{ ... }: {
    imports = [
        (import "${builtins.fetchTarball https://github.com/cecilia-sanare/nix-desktop/archive/main.tar.gz}/nixos")
        nix-desktop.nixosModules.default
    ];

    nix-desktop = {
        enable = true;
        type = "gnome";
        preset = "sane";
    };
}

About

Ceci's Opinionated NixOS Desktop Environments ❄️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages