My NixOS flakes



Nix world!

This is my repository for my NixOS devices! I use this repo for my daily drive devices, updating it whenever I make a change to the said device. It is a very personal repo, which is why you can see me taking notes in the README.txt.

You may use it as you wish, as it provides a very stable system already! However the I have already defined in the flakes is called 'nixuser', so you will need to make that user, then run 'git clone https://github.com/Corra3217/nix_world' in nixuser's home directory. After that cd into the device folder you would like to replicate, then rebuild your system with that flake accordingly.


https://github.com/Corra3217/nix_world


Note that you will probably have to configure your own drivers! An example is my wifi.nix where I hacked up my wifi adapter driver for my Allied desktop pc. It needed those specific kernelModule packages, and bluetooth enabled.
You will have to find your own packages!



A general system flake.

Here is a repository containing a basic system configuration flake! I made this for those looking to break into NixOS, but still want something that works out of box while they learn. It contains a set of modules that ultimately provide you with a functional KDE system. I modelled this after what I think the average person at university would need, hence why it contains minimal programs (Spotify, Discord, Steam, Firefox, Tor and Oracle VirtualBox. While replicating the look of a windows machine. Though I am sure almost everything you need could be done through the browser). If you have suggestions as to what more to add, please let me know!

https://github.com/Corra3217/general_system_flake

What is in the repo

This repo is made of a few layers of modules. The top layer is the flake you want to build your machine with (more on this later). The next layer contains system level modules that ensure that you still have a functional system even without a desktop environment. The last layer comprises of the programs that 1) provide you a desktop environment and 2) provide you the apps listed above.

For those who are new to NixOS, you can break down your configuration.nix into different files, which is essentially every file from the second layer down. When you add a default.nix to a directory, you can list the entire directory in the import section of a file in the parent directory! This just provides a streamlined way to import lots of files without putting too much clutter into one file.

The configuration comprises of a host computer called 'computer' and a user with sudo, network and virtualisation privilages, called 'default_user' (very creative I know). So if you would like to make a new user, then you will have to find the users.nix file and add your username in, then add that user to the vbox.users group; if you would like to change your hostname, then you must find the network.nix file and change the name there.

How to use it

You will need to have git added to your system packages as well as flakes enabled before you continue this.
Ok so to use this repo, you have to run "git clone https://github.com/Corra3217/general_system_flake && cd general_system_flake && sudo nixos-rebuild boot --flake .#computer --impure && reboot". Enter your password when prompted.

It will take a while, as you are compiling virtualbox from source, but then after that it should reboot into your new system. Log into default_user with the password 'password' then change the password with passwd. Then you are done!

Feel free to use your new system however you wish :p

powered by neocities