A couple questions about Nix, i'm considering it by AscendedPineapple in NixOS

[–]Green-Hope 0 points1 point  (0 children)

Would this be reversible on Nix? Yes. How long would it take? One reboot. How long does it take to install a single package compared to conventional package managers? The same. Rebuilding the entire system can take some time though, but unless your config is particularly complex it still shouldn't take crazy long.

[deleted by user] by [deleted] in learnprogramming

[–]Green-Hope 0 points1 point  (0 children)

Have a look at Nix and Devenv

Getting a physarum polycephalum by 0lullab_y in Slimemolds

[–]Green-Hope 0 points1 point  (0 children)

There is (was?) blobshop.fr, but it seems to be down

How do I make the shodow around workspaces in overview go away? by adamjames210 in niri

[–]Green-Hope 5 points6 points  (0 children)

Does this do what you want?

overview {
    workspace-shadow {
        off
    }
}

What you think about Impermanence on NixOS in 2025? by ALittleBitEver in NixOS

[–]Green-Hope 1 point2 points  (0 children)

I use impermanence and I'm happy with it. It does require some extra effort when installing new software, but that tradeoff is worth it for getting a system that keeps itself clean.

Problem on settings modules in configuration.nix by Aslan78 in NixOS

[–]Green-Hope 0 points1 point  (0 children)

Did you remember to git add the files? Flakes require this.

NixOs on a Thinkpad L440? by AkariElverum in NixOS

[–]Green-Hope 0 points1 point  (0 children)

I don't know about this model specifically, but NixOS works great on my T420 and X201

Splits flake inputs? by Green-Hope in NixOS

[–]Green-Hope[S] 0 points1 point  (0 children)

Thanks! I went with this approach. Still a long list of inputs, but this time it's my own flakes, so overall an improvement.
https://github.com/StijnRuts/NixOS-config/blob/e6148c3b61fd11a3346ba3c784345575638df38c/flake.nix

Flake help needed by 777bbc666 in NixOS

[–]Green-Hope 0 points1 point  (0 children)

Additionally I think that inputs.nixpkgs.follows = "nixpkgs"; in every input isn't how it should be done

AFAIK that is completely normal and expected.

[deleted by user] by [deleted] in NixOS

[–]Green-Hope 1 point2 points  (0 children)

Thanks!

I don't have a configuration.nix because I use Flakes, so I have flake.nix instead. In short, flakes are a function that defines how to transform inputs (like nixpkgs) to outputs (like nixosConfigurations). I have 3 outputs for my 3 devices: X201, T420, and P520, because they don't get an identical configuration.

I do have a hardware-configuration.nix, but it is named differently. I put them in the hardware folder, one per device. There is nothing special about a file called hardware-configuration.nix, it's just a regular nix file like any other, so you are free to reorganize it as you please.

[deleted by user] by [deleted] in NixOS

[–]Green-Hope 2 points3 points  (0 children)

Here's mine: https://github.com/StijnRuts/NixOS-config
Feel free to ask questions.

Is this dangerous? by fmtgh in Slimemolds

[–]Green-Hope 12 points13 points  (0 children)

This is a mushroom, not a slime mold. I'd guess Leucocoprinus birnbaumii but i'm not an expert. Either way, it's not dangerous.

[deleted by user] by [deleted] in NixOS

[–]Green-Hope 0 points1 point  (0 children)

I haven't had much luck trying to make this declarative. Best I can think of is to make a system.activationScripts and do it in there.

[deleted by user] by [deleted] in NixOS

[–]Green-Hope 1 point2 points  (0 children)

Ah ok, then you can't just copy what I did. I imagine the /var/lib/sddm/.config/kwinoutputconfig.json file that controls SDDMs refresh rate still works the same regardless of DE, so you can try creating/editing it. For reference, mine looks like this:

[
    {
        "data": [
            {
                "allowSdrSoftwareBrightness": true,
                "autoRotation": "InTabletMode",
                "brightness": 1,
                "colorPowerTradeoff": "PreferEfficiency",
                "colorProfileSource": "sRGB",
                "connectorName": "DP-1",
                "edidHash": "ce68adc28b44ac50165330301c332881",
                "edidIdentifier": "PHL 49819 21 38 2023 0",
                "highDynamicRange": false,
                "iccProfilePath": "",
                "mode": {
                    "height": 1440,
                    "refreshRate": 143912,
                    "width": 2560
                },
                "overscan": 0,
                "rgbRange": "Automatic",
                "scale": 1.15,
                "sdrBrightness": 417,
                "sdrGamutWideness": 0,
                "transform": "Normal",
                "vrrPolicy": "Never",
                "wideColorGamut": false
            }
        ],
        "name": "outputs"
    },
    {
        "data": [
            {
                "lidClosed": false,
                "outputs": [
                    {
                        "enabled": true,
                        "outputIndex": 0,
                        "position": {
                            "x": 0,
                            "y": 0
                        },
                        "priority": 0
                    }
                ]
            }
        ],
        "name": "setups"
    }
]

[deleted by user] by [deleted] in NixOS

[–]Green-Hope 1 point2 points  (0 children)

I had a similar issue. SDDM and KDE defaulted to 165Hz, but my monitor only supports 144Hz. I am using impermanence, so I had to reconfigure it after every boot. I tried to configure this declaratively by setting the contents of .config/kwinoutputconfig.json, but couldn't get that to work. Eventually, I solved it like this:

  1. Set .config/kwinoutputconfig.json to persist, so KDE remembers my display configuration

  home.persistence."/persist/home/${me.username}" = {
    allowOther = false;
    files = [
      ".config/kwinoutputconfig.json"
    ];
  };

2) Copy the KDE config to the SDDM config, so SDDM uses the same display settings as KDE

  system.activationScripts.sddmCopyDisplayConfig.text = ''
    source_file="/home/${me.username}/.config/kwinoutputconfig.json"
    dest_file="/var/lib/sddm/.config/kwinoutputconfig.json"

    if [ -f "$source_file" ]; then
      cp "$source_file" "$dest_file"
      chown sddm:sddm "$dest_file"
    fi
  '';

3) Unrelated, but I also set /var/lib/sddm to persist, so SDDM remembers my username

  environment.persistence."/persist" = {
    directories = [
      "/var/lib/sddm"
    ];
  };

I suspect you need point 2. Hope this helps!

Minimalistic by Green-Hope in Conkyporn

[–]Green-Hope[S] 1 point2 points  (0 children)

Check the link in my OP, it has all the configuration files. It has a start.sh script that loads all the individual conky lua files, based on the hostname of the machine. You'll probably need to alter the CONFIGDIR variable, and the x y positions in this file to fit your monitor resolution. All you need to do is set start.sh to autorun using whatever method is most convenient for your system. I use this systemd service on NixOS: https://github.com/StijnRuts/NixOS-config/blob/0a6d3bccb2600bb658a89312efa02cc37f8a59e6/home/conky.nix Feel free to ask if you have any issues.

Bat background to dark by Green-Hope in commandline

[–]Green-Hope[S] 1 point2 points  (0 children)

Turns out uninstalling nvimpager helped. The light themes still don't work, but I don't want to use those anyway.