Skip to content

Commit 8e1be80

Browse files
authored
Merge pull request #121 from linusammon/main
docs(v5/nixos): remove obsolete calendar section and flake boilerplate
2 parents 354da3f + b6933df commit 8e1be80

1 file changed

Lines changed: 12 additions & 58 deletions

File tree

src/content/docs/v5/getting-started/nixos.mdx

Lines changed: 12 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ sidebar:
88
import SettingsReference from '../../../../components/SettingsReference.astro';
99
import { Tabs, TabItem } from '@astrojs/starlight/components';
1010

11-
12-
For NixOS users, Noctalia available only using Flakes
11+
:::note
12+
Currently noctalia v5 is only available using nix flakes.
13+
:::
1314

1415
:::caution
1516
To make Noctalia's wifi, bluetooth, power-profile, and battery feature available, please ensure the following NixOS options are enabled:
@@ -19,82 +20,35 @@ To make Noctalia's wifi, bluetooth, power-profile, and battery feature available
1920
- `services.upower.enable`
2021
:::
2122

22-
## Nix flakes
23+
## Nix Flakes
2324

24-
To install Noctalia, you need to [add a flake input](#add-flake-input) and [install the package](#install-package).
25+
To install Noctalia using flakes, you first need to [add the flake input](#add-flake-input) and then [install the package](#install-package).
2526

26-
:::note
27-
The Noctalia flake requires **nixpkgs unstable**, since we depend on the latest Quickshell version.
28-
:::
29-
30-
### Adding the flake input {#add-flake-input}
27+
### Adding the Flake input {#add-flake-input}
3128

32-
Add the required inputs to your flake configuration:
29+
Add Noctalia to your flake inputs:
3330

3431
```nix
3532
# flake.nix
3633
{
37-
description = "NixOS configuration with Noctalia";
38-
3934
inputs = {
40-
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
41-
4235
noctalia = {
4336
url = "github:noctalia-dev/noctalia-shell/v5";
4437
inputs.nixpkgs.follows = "nixpkgs";
4538
};
4639
};
47-
48-
outputs = inputs@{ self, nixpkgs, ... }: {
49-
nixosConfigurations.awesomebox = nixpkgs.lib.nixosSystem {
50-
specialArgs = { inherit inputs; };
51-
modules = [
52-
# ... other modules
53-
./noctalia.nix
54-
];
55-
};
56-
};
5740
}
5841
```
5942

60-
With the flake installed, we can access Noctalia packages and modules in our configuration.
61-
62-
### Installing the package {#install-package}
63-
64-
If you don't use Noctalia's NixOS or home-manager modules, you need to manually install the default Noctalia package from the new `noctalia` input:
43+
### Installing the Package {#install-package}
6544

45+
Add the package to your system packages or equivalent:
6646
```nix
67-
# noctalia.nix
68-
{ pkgs, inputs, ... }:
47+
# configuration.nix
48+
{ inputs, pkgs, ... }:
6949
{
70-
# install package
71-
environment.systemPackages = with pkgs; [
50+
environment.systemPackages = [
7251
inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default
73-
# ... maybe other stuff
7452
];
7553
}
7654
```
77-
78-
Rebuild with `sudo nixos-rebuild switch --flake .`.
79-
80-
---
81-
82-
## Calendar events support
83-
84-
To add support for events in the calendar via evolution-data-server.
85-
86-
1. **Enable the evolution-data-server**:
87-
```nix
88-
services.gnome.evolution-data-server.enable = true;
89-
```
90-
91-
2. **Override the Noctalia package**:
92-
```nix
93-
(pkgs.noctalia-shell.override { calendarSupport = true; })
94-
```
95-
or
96-
```nix
97-
(inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default.override { calendarSupport = true; })
98-
```
99-
100-
---

0 commit comments

Comments
 (0)