Add 'wtf, nix is magic' post
This commit is contained in:
parent
236c65287b
commit
b9eb1fc3d0
21
content/wtf-nix-is-magic/index.md
Normal file
21
content/wtf-nix-is-magic/index.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
title: wtf, nix is magic
|
||||||
|
date: 2024-04-20
|
||||||
|
sn_id: 512757
|
||||||
|
tags: dev
|
||||||
|
---
|
||||||
|
|
||||||
|
I just installed NixOS and entered this into my /etc/nixos/configuration.nix:
|
||||||
|
|
||||||
|
```
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.windowManager.dwm.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
and then I ran `nixos-rebuild switch` followed by `systemctl start display-manager` and now I have `dwm` running?
|
||||||
|
|
||||||
|
No need to manually install `xorg-server`, `dwm` and friends, fiddling to run `startx` on boot while making sure keyboard mappings are correct?[^1]
|
||||||
|
|
||||||
|
wtf, nix is magic
|
||||||
|
|
||||||
|
[^1]: `services.xserver.xkb.layout` got you covered
|
||||||
Loading…
x
Reference in New Issue
Block a user