My personal NixOS configuration
Find a file
2023-05-19 11:55:21 +01:00
desktop Fix typo in system package definition for plasma 2023-05-18 11:52:31 +01:00
hardware Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
home Remove librewolf from default packages 2023-05-19 10:31:28 +01:00
locales Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
server Change theme naming in gitea config 2023-05-19 11:55:21 +01:00
syncthing Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
systemd Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
templates/python39 Update python venv template to be more robust 2023-05-18 09:36:17 +01:00
wallpaper Add some wallpaper images 2023-04-05 22:25:55 +01:00
.gitignore Move nvim related things to separate repo 2023-05-16 09:58:47 +01:00
.pre-commit-config.yaml Re-enable pre-commit using stylua 2023-03-03 11:42:43 +00:00
.stylua.toml Add custom styling to wezterm tab bar, move stylua.toml to top level directory 2023-02-19 12:16:22 +00:00
common.nix Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
cspell.json Add a catppuccin theme to gitea config (test) 2023-05-19 11:46:43 +01:00
H0615.nix Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
J0162.nix Formatting pass with alejandra 2023-05-17 17:10:18 +01:00
Makefile Add cspell ignored words 2023-05-19 08:57:42 +01:00
README.md Add cspell ignored words 2023-05-19 08:57:42 +01:00
Vanguard.nix Formatting pass with alejandra 2023-05-17 17:10:18 +01:00

Personal NixOS configs

Contains

  • System definitions for various personal and work machines
  • Desktop environment configs
    • Plasma
    • Hyprland
  • Personal server config
  • Personal home environment definitions

Installation

Makefile handles most things. Running make will determine if this is a NixOS or Nix home-manager only install. make nixos and make home execute either explicitly.

NixOS

Clone repo into /etc/nixos/config, make nixos will do this for you otherwise. Edit your /etc/nixos/configuration.nix to import top level expression, e.g.:

{ config, pkgs, ... }: {
  imports =
    [
      # Other imports (e.g. ./hardware-configuration.nix)
      ./config/hostname.nix
    ];
  # Rest of your configuration.nix goes here
}

Nix home-manager

Must have nix installed to proceed

Clone repo and run make or make home, a machine and user specific home-manager config will be created if it doesn't already exist, and then linked to $XDG_CONFIG_HOME/home-manager/. Execute:

nix-shell -p home-manager -- run "home-manager switch -b backup"

to install configuration. Home-manager will self-manager after this.