From 91fc5ebdc0877a9e353edca0ec77245977a4b96e Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Thu, 3 Oct 2024 20:02:06 +0200 Subject: [PATCH] Enable watch mode --- content/posts/nixos.md | 9 +++------ src/html/post.rs | 2 +- src/main.rs | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/content/posts/nixos.md b/content/posts/nixos.md index d12001b..00614d4 100644 --- a/content/posts/nixos.md +++ b/content/posts/nixos.md @@ -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 diff --git a/src/html/post.rs b/src/html/post.rs index b3b34f7..806d4e0 100644 --- a/src/html/post.rs +++ b/src/html/post.rs @@ -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}; diff --git a/src/main.rs b/src/main.rs index bc72858..b8461e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()), } }