• 0 Posts
  • 58 Comments
Joined 1 年前
cake
Cake day: 2024年8月30日

help-circle
  • I see it more like 8 hours work 1h state mandated break at work 1h commute 8h of sleep 1h of eating then you got 5h under the week, (very generously). So it’s not 168h a week it’s maybe 55. After coming home at around 18:00 I don’t really feel like doing anything else that day, mostly cutting down my time where I get to do something meaningful to the weekend









  • I would do them one after another as the two both solve different problems. If you want to use both, first start with using flakes.

    Flakes are basically sets defining inputs and outputs. Then with a flake lock and exact version of the inputs can be pinned as to make it reproducible. Just add a basic flake.nix { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; }; outputs = { self, nixpkgs }: { # replace 'joes-desktop' with your hostname here. nixosConfigurations.joes-desktop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./configuration.nix ]; }; }; }

    Also you should add nix.settings.experimental-features = ["nix-command" "flakes"]; to you configuration.nix

    Make sure you track everything by git if your config lives in a git repo and you should be done. Of course you can have more inputs, propagate them to your modules and so on, but this should be fine for the start.

    Now you have to add the’ --flake’ option to ‘nixos-rebuild switch --flake’ (please double check, as I use nh as a wrapper) and it will probably complain that you haven’t enabled flakes and that they are experimental, but you can run the command again with an environment variable set and get around that. You could also have added the flakes feature in your configuration nix first, do a normal, non flake rebuild switch and then one with flakes, as then you are running on a system generation with enabled flake features.

    Home manager, as the name implies tries to manage your home directory, so instead of adding packages and configs in your configuration.nix systemwide, you can add them only to your user directory. Basically you can add home manager and just not use it a t first and slowly migrate everything to it. You’ll have to look up a tutorial for it. But basically everything you put in environment.systemPackages configuration.nix can go into home packages in your home manager config file. The module options are often similar, but some are just not possible to configure on a per user basis (like adding desktopManagers, though configuration them in the user directory is better done through Homemanager)

    But that’s what any tutorial would show you. I’m assuming as you already use NixOS you’re somewhat technically inclined, so I’m not sure how to help you here. If you have any problems just comment here, I’ll help you debug / convert your config with you







  • Ich würde behaupten dass, wie auch immer hier Korrelation und Kausalität aussieht, die Wahrscheinlichkeit für psychische Erkrankungen mit dem Cannabiskonsum steigt. Diesen Leuten Hilfe anzubieten finde ich sinnvoll.

    Wenn wer täglich kifft, finde ich die Frage, ob bei der Person alles in Ordnung ist (Stichwort Selbsttherapie) schon gerechtfertigt. Es muss ja nicht in einem Verbot des Konsums enden. Aber für Menschen die aufhören wollen zu kiffen ist es meiner Meinung nach sinnvoll einen sehr kleinen Schwarzmarkt zu haben und offizielle Abgabestellen bei denen ich sagen kann: Verkauft mir erstmal nichts mehr. Das geht dann aber nur mit Kontrolle der Identität in den Verkaufstätten.

    Wie so vieles beruht das auf der meiner idealen Annahme, dass der Staat den Bürgern dient. Die Kontrolle birgt natürlich die Gefahr der Diskriminierung von Kiffern aus politischer Motivation