Giter Club home page Giter Club logo

nixos-config's Introduction

NixOS on Dell XPS 13

Available combinations are:

9370 configuration is not supported anymore as I don't own this device. The branches preserved only for historical purpose. 9310/sway is my daily driver (Xorg is no longer supported and left for potential fallback in case of urgent need or annoying behavior, that I'm now thinking about will not likely be the case)

Installation

  1. Boot from NixOS live USB preferably
parted /dev/nvme0n1 -- mklabel gpt
parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB
parted /dev/nvme0n1 -- set 1 boot on
parted /dev/nvme0n1 -- mkpart primary 512MiB 100%
cryptsetup luksFormat /dev/nvme0n1p2
cryptsetup luksOpen /dev/nvme0n1p2 luks
pvcreate /dev/mapper/luks
vgcreate xps /dev/mapper/luks
lvcreate -L 16G xps -n swap
lvcreate -l 100%FREE xps -n nixos
sudo mkfs.fat -F 32 -n boot /dev/nvme0n1p1
sudo mkfs.ext4 -L nixos /dev/xps/nixos
sudo mkswap -L swap /dev/xps/swap
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/xps/swap
  1. Get the configuration
git clone https://github.com/ymatsiuk/nixos-config /mnt/etc/nixos/
  1. Edit /mnt/etc/nixos/users.nix to adjust user. Use the following command for password hash nix-shell -p mkpasswd --run "mkpasswd -m sha-512"
  2. Edit file systems config and luks device
nixos-generate-config --root /mnt --show-hardware-config
lsblk -f
  1. Enable flakes
  2. Install NixOS
nixos-install --flake path:.#nixps

Details

What's inside:

  1. NixOS:

    • latest stable kernel from nixpkgs-small
    • stable nix
    • overlays:
    • modules:
      • podman
      • docker (buildkit enabled)
      • fonts (Iosevka, Source Sans Pro, Source Serif Pro)
      • greetd (tuigreet)
      • pipewire
      • xdg-portal (screen sharing)
      • zsh
  2. Home-Manager:

    • alacritty (gruvbox theme)
    • firefox with Wayland support
    • foot (gruvbox theme)
    • gammastep
    • git (rbw credentials helper)
    • gtk (gruvbox theme)
    • i3status-rust (gruvbox theme)
    • kanshi (switches to external output once connected)
    • mako (gruvbox theme)
    • neovim (gruvbox theme + lsp)
    • starship (as shell prompt)
    • sway (gruvbox theme)
    • rbw
    • tofi tiny dynamic menu for Wayland
    • wezterm main terminal (gruvbox theme)

nixos-config's People

Contributors

ymatsiuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nixos-config's Issues

key binding

Hi,

Did you managed to bind PageUp/PageDown to RightCTRL+Up/Down on 9310?

I tried in sway an alacritty config files but can't make it work.

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.