Git Product home page Git Product logo

alfheimos's Introduction

❄️ AlfheimOS ❄️

Stargazers

This repository is home to the Nix code that builds my systems. Issues, PRs and questions are welcome!

The dots are still WIP! Please, don't use them, if you don't know, how to work with Nix.

Modules

The config is modular, you can either specify settings inside flake.nix or/and exclude/include some modules inside profiles directory with:

imports = [
    ./import1.nix
    ./import2.nix
    ...
];

Profiles

The configuration is separated into several profiles:

  • Personal - personal laptop/desktop
  • Work - work laptop (included in the Personal profile, as I work from home)

Each profile contains a configuration.nix for system-level configuration and a home.nix for user-level configuration. Setting the profile variable in flake.nix automatically sources the correct configuration.nix and home.nix.

Install

I suppose, you already installed NixOS. To get this config running, start by cloning the repo:

git clone https://github.com/Serpentian/AlfheimOS.git ~/.dotfiles

To get the hardware configuration on a new system, either copy from /etc/nixos/hardware-configuration.nix or run:

cd ~/.dotfiles
sudo nixos-generate-config --show-hardware-config > system/hardware-configuration.nix

Don't use my hardware configuration, your system won't boot!

Now, it's time to configure flake.nix (and probably profiles) to your liking. Once the variables are set, then switch into the system configuration by running:

cd ~/.dotfiles
sudo nixos-rebuild switch --flake .

Home manager can be installed with:

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

If home-manager starts to not cooperate, it may be because the unstable branch of nixpkgs is in the Nix channel list. This can be fixed via:

nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update

Home-manager may also not work without re-logging back in after it has been installed. Once home-manager is running, the home-manager configuration can be installed with:

cd ~/.dotfiles
home-manager switch --flake .

Themes

In the future several themes will be introduced, but now only one is supported:

Screen

Credits

alfheimos's People

Contributors

serpentian avatar

Stargazers

Star avatar  avatar bricked avatar  avatar  avatar Matteo Bigoi avatar

Watchers

 avatar

alfheimos's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.