Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will it be possible to create an installation script for this? #2

Open
chrollorifat opened this issue May 16, 2024 · 3 comments
Open

Comments

@chrollorifat
Copy link

No description provided.

@justinlime
Copy link
Owner

Well with nix it's usually as simple as rebuilding home-manager using the flake in this repo. Are you looking for a non-nixified script? If so I can grab the dots and write one up

@chrollorifat
Copy link
Author

actually i'm new to nixos. so i don't really know how to exactly perfectly rebuild someone else's nixos flake. tried so many times but i get some sort of errors every time. for example, path errors, username doesn't exist type of errors and etc. so I'm really clueless here and i couldn't find any proper guidelines regarding this. FYI, I'm already using nixos official plasma iso.

@justinlime
Copy link
Owner

justinlime commented May 17, 2024

actually i'm new to nixos. so i don't really know how to exactly perfectly rebuild someone else's nixos flake. tried so many times but i get some sort of errors every time. for example, path errors, username doesn't exist type of errors and etc. so I'm really clueless here and i couldn't find any proper guidelines regarding this. FYI, I'm already using nixos official plasma iso.

Nix is a lot to get used to. Generally, most of my configs you see are within my home-manager configuration. If you want to build it on your system or a VM to try things out, you can do the following:

git clone https://gtihub.com/justinlime/dotfiles
cd dotfiles

You'll need to add your username to the list in the flake.nix file:

usernames = [ "foobar"];

Then, if you don't have home manager yet, you can bootstrap it really easily with this disgusting looking command from within the repo:

nix run --extra-experimental-features 'nix-command flakes' github:nix-community/home-manager -- switch --flake path:.#brimstone.x86_64-linux.foobar --experimental-features 'nix-command flakes'

This will both bootstrap home-manager and apply my config to your username's $HOME. Keep in mind you need to change "foobar" in the command above to whatever you username is set to in the flake.

If you already have home-manager installed, you can just use:

home-manager switch --flake path:.#brimstone.x86_64-linux.foobar

If Hyprland fails to populate in your display manager, you can just launch with the Hyprland command from a tty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants