Enable watch mode

This commit is contained in:
Maciej Jur 2024-10-03 20:02:06 +02:00
parent 618925d8ef
commit 91fc5ebdc0
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
3 changed files with 5 additions and 8 deletions

View file

@ -2,7 +2,7 @@
title: My thoughts on NixOS
date: 2024-06-30T20:57:37Z
desc: >
A few weeks ago I decided to try out NixOS.
A few weeks ago I decided to try out NixOS.
---
For about a year, I have used Arch Linux. However, a few weeks ago, I decided
@ -30,6 +30,7 @@ hardware.graphics = {
enable32Bit = true;
};
```
NixOS would install every single thing required to enable OpenGL completely
automatically.
@ -43,10 +44,10 @@ games, you need to write:
```nix
programs.steam.enable = true;
```
This single line not only installs Steam on your system but also provides
configurations that make your system more tailored for running games.
### Configuring services
Let's say you are running a server and want to enable
@ -70,7 +71,6 @@ but also to save the configuration. It's trivial to commit it into a version
control system (VCS), ensuring reproducibility and ease of deployment across
multiple systems.
## Home configuration
However, there are some rough edges.
@ -97,7 +97,6 @@ I found that it's better to just install this program in the main config
instead. Other than this home-manager works pretty good, and it is very useful,
so I recommend using it.
## Channels
NixOS has different channels you can use for packages. A channel is essentially
@ -120,7 +119,6 @@ from `unstable`?
This is what I went with, and it works for me so far, but I'm not sure how it
will be in the long run...
## Flakes
There is a completely different and experimental (unstable) approach to
@ -131,7 +129,6 @@ One thing I can say, though, is that I find it pretty confusing how there are
several competing systems for writing the system configuration, out of which
one is experimental, but lots of people decided to use it anyways.
# Final thoughts
NixOS... is interesting. It's different, you do things differently here, even

View file

@ -1,7 +1,7 @@
use camino::Utf8Path;
use hauchiwa::{Bibliography, Outline};
use hayagriva::Library;
use hypertext::{html_elements, maud_move, rsx, rsx_move, GlobalAttributes, Raw, Renderable};
use hypertext::{html_elements, maud_move, GlobalAttributes, Raw, Renderable};
use crate::{model::Post, MySack};

View file

@ -229,6 +229,6 @@ fn main() {
match args.mode {
Mode::Build => website.build(MyData::new()),
Mode::Watch => (), //website.watch(MyData::new())),
Mode::Watch => website.watch(MyData::new()),
}
}