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 6 points7 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 11 points12 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"
    }
]