Coder Social home page Coder Social logo

dbeley / nixos-config Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 3.18 MB

My NixOS config files.

Nix 78.84% Vim Script 3.22% CSS 3.17% Shell 3.08% Emacs Lisp 11.42% Just 0.28%
nix nixos nixos-config nixos-configuration nixos-dotfiles dotfiles hyprland waybar

nixos-config's Introduction

nixos-config

NixOS Unstable

t470s

Type Program
Shell: fish
DM: tty1
WM: hyprland or sway + waybar
Editor: doom-emacs / neovim / helix / kakoune
Terminal: kitty
Launcher: tofi
Browser: firefox / qutebrowser
GTK Theme: wpgtk + pywal

Hosts

  • x13: my main laptop (Lenovo ThinkPad X13 Gen 1: AMD Ryzen 5 4650U, 16GB RAM, hyprland)
  • sg13: my main desktop computer (Silverstone SG13: AMD Ryzen 5 2600, RX 580 8GB, 16GB RAM, gnome)
  • t470s: my previous main laptop (Lenovo Thinkpad T470s: Intel Core i5-6300U, 8GB RAM, hyprland)
  • x61s: my retro laptop (Lenovo Thinkpad X61s: Intel Core 2 Duo L7500, 3GB RAM, sway)
  • era1: my first server image installed in a Proxmox VM (Fractal Design Era: Intel N100, 32GB RAM)

Usage

Rebuild the system

sudo nixos-rebuild switch --flake .#{host}
sudo nixos-rebuild switch --flake .#{host} --target-host root@<ip address> # for a remote host

Delete unused packages

sudo nix-collect-garbage -d # for system packages
nix-collect-garbage -d # for home-manager packages

Optimise store

nix-store --optimise -v

Install

On a new install, you should first copy /etc/nixos/hardware-configuration.nix over hosts/{host}/hardware-configuration.nix.

Post-install

wpg -a wall.jpg # add wallpaper to wpgtk
wpg-install.sh -g # install gtk theme
wpg -m
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install

just

A justfile is also provided, see https://github.com/casey/just for more information.

just switch
just clean

Create a .env and fill it with the needed environment variables:

HOST=x13

nixos-config's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.