{"id":13674050,"url":"https://github.com/gvolpe/nix-config","last_synced_at":"2025-05-15T04:02:58.875Z","repository":{"id":39801927,"uuid":"242821299","full_name":"gvolpe/nix-config","owner":"gvolpe","description":":space_invader: NixOS configuration","archived":false,"fork":false,"pushed_at":"2025-04-06T17:12:57.000Z","size":118477,"stargazers_count":930,"open_issues_count":1,"forks_count":80,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-06T23:11:30.659Z","etag":null,"topics":["dotfiles","dotfiles-linux","fish-shell","home-manager","hyprland","linux","neovim","nix","nix-config","nix-dotfiles","nixos","nixos-configuration","nixpkgs","polybar","waybar","wayland","xmonad"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gvolpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-24T19:16:13.000Z","updated_at":"2025-04-06T17:13:00.000Z","dependencies_parsed_at":"2023-02-19T06:46:03.422Z","dependency_job_id":"706976a9-91f0-466d-a3b8-9a1c59e0b277","html_url":"https://github.com/gvolpe/nix-config","commit_stats":{"total_commits":1286,"total_committers":3,"mean_commits":428.6666666666667,"dds":"0.0015552099533436836","last_synced_commit":"a871f8e06eb7a637a5914e43cefa4c18b2686030"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvolpe%2Fnix-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvolpe%2Fnix-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvolpe%2Fnix-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvolpe%2Fnix-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gvolpe","download_url":"https://codeload.github.com/gvolpe/nix-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819379,"owners_count":21166477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotfiles","dotfiles-linux","fish-shell","home-manager","hyprland","linux","neovim","nix","nix-config","nix-dotfiles","nixos","nixos-configuration","nixpkgs","polybar","waybar","wayland","xmonad"],"created_at":"2024-08-02T11:00:36.948Z","updated_at":"2025-04-14T03:58:45.238Z","avatar_url":"https://github.com/gvolpe.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"nix-config\n==========\n\n[![ci-badge](https://img.shields.io/static/v1?label=Built%20with\u0026message=nix\u0026color=blue\u0026style=flat\u0026logo=nixos\u0026link=https://nixos.org\u0026labelColor=111212)](https://gvolpe.com)\n[![Home](https://github.com/gvolpe/nix-config/actions/workflows/home.yml/badge.svg)](https://github.com/gvolpe/nix-config/actions/workflows/home.yml)\n[![NixOS](https://github.com/gvolpe/nix-config/actions/workflows/nixos.yml/badge.svg)](https://github.com/gvolpe/nix-config/actions/workflows/nixos.yml)\n[![garnix](https://img.shields.io/endpoint?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2Fgvolpe%2Fnix-config%3Fbranch%3Dmaster)](https://garnix.io)\n\nMy current — and always evolving — [NixOS](https://nixos.org/) and [Home Manager](https://github.com/nix-community/home-manager/) configurations.\n\n## Hyprland\n\nThis is my current Window Manager — the hype Wayland kid on the block!\n\n![hyprland](imgs/hyprland-2024.png)\n\n\u003cdetails\u003e\n\u003csummary\u003eEnvironment details\u003c/summary\u003e\n\n| Type           | Program      |\n| :------------- | :----------: |\n| Editor         | [NeoVim](https://neovim.io/) |\n| Launcher       | [Wofi](https://sr.ht/~scoopta/wofi) |\n| Shell          | [Fish](https://fishshell.com/) |\n| Status Bar     | [Waybar](https://github.com/Alexays/Waybar) |\n| Terminal       | [Foot](https://codeberg.org/dnkl/foot) |\n| Window Manager | [Hyprland](https://hyprland.org/) |\n| File Manager   | [Nemo](https://github.com/linuxmint/nemo) |\n| GTK Theme      | [Juno Ocean](https://github.com/EliverLara/Juno) |\n| GTK Icon Theme | [Beauty Line](https://www.gnome-look.org/p/1425426/) |\n| Terminal Font  | [JetBrainsMono](https://www.jetbrains.com/lp/mono/) |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand to see more screenshots\u003c/summary\u003e\n\n![hyprlock](imgs/hyprlock.png)\n\n![floating](imgs/floating.png)\n\n![btm](imgs/btm.png)\n\n![nemo](imgs/nemo.png)\n\n![binds](imgs/hypr-binds.png)\n\n\u003c/details\u003e\n\n## XMonad\n\nXMonad will be forever in my heart — the best X window manager!\n\n![neofetch](imgs/neofetch.png)\n\n\u003cdetails\u003e\n\u003csummary\u003eEnvironment details\u003c/summary\u003e\n\n| Type           | Program      |\n| :------------- | :----------: |\n| Editor         | [NeoVim](https://neovim.io/) |\n| Launcher       | [Rofi](https://github.com/davatorium/rofi) |\n| Shell          | [Fish](https://fishshell.com/) |\n| Status Bar     | [Polybar](https://polybar.github.io/) |\n| Terminal       | [Alacritty](https://github.com/alacritty/alacritty) |\n| Window Manager | [XMonad](https://xmonad.org/) |\n| File Manager   | [Nautilus](https://gitlab.gnome.org/GNOME/nautilus) |\n| GTK Theme      | [Juno Ocean](https://github.com/EliverLara/Juno) |\n| GTK Icon Theme | [Beauty Line](https://www.gnome-look.org/p/1425426/) |\n| Terminal Font  | [JetBrainsMono](https://www.jetbrains.com/lp/mono/) |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand to see more screenshots\u003c/summary\u003e\n\n![cowsay](imgs/cowsay.png)\n\n![scala-dev-env](imgs/scala-dev.png)\n\n![desktop](imgs/desktop-1.jpg)\n\n![themes](imgs/theme.jpg)\n\n![demo](imgs/demo.png)\n\n\u003c/details\u003e\n\n## NeoVim\n\nMy NeoVim configuration lives here: https://github.com/gvolpe/neovim-flake\n\n## Structure\n\n[![diagram](imgs/how-to-read.png)](https://excalidraw.com/#json=NWVm7baTjfbULT6N5DDcP,xp6wfSOGcc1MncvtXpm4uQ)\n\n## Flake outputs\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand to see available ouputs\u003c/summary\u003e\n\n```console\n$ nix flake show github:gvolpe/nix-config\n├───apps\n│   └───x86_64-linux\n│       └───nix: app\n├───homeConfigurations\n│   ├───hyprland-edp: Home Manager configuration [home-manager-generation]\n│   ├───hyprland-hdmi: Home Manager configuration [home-manager-generation]\n│   ├───hyprland-hdmi-mutable: Home Manager configuration [home-manager-generation]\n│   ├───xmonad-edp: Home Manager configuration [home-manager-generation]\n│   └───xmonad-hdmi: Home Manager configuration [home-manager-generation]\n├───nixosConfigurations\n│   ├───dell-xps: NixOS configuration [nixos-system-dell-xps-15-9560-24.11.20240620.d603719]\n│   ├───thinkpad: NixOS configuration [nixos-system-thinkpad-x1-24.11.20240620.d603719]\n│   ├───tongfang-amd: NixOS configuration [nixos-system-thinkpad-x1-24.11.20240620.d603719]\n│   └───xmod: NixOS configuration [nixos-system-tongfang-amd-24.11.20240620.d603719]\n├───out\n│   ├───overlays: custom instance to be used by consumers of this flake\n│   └───pkgs: custom instance to be used by consumers of this flake\n└───packages\n    └───x86_64-linux\n        ├───bazecor: package [bazecor-1.5.4-patched]\n        ├───metals: package [metals-1.4.1]\n        ├───metals-updater: package [metals-updater-script]\n        ├───neovim: package [neovim-0.10.2]\n        ├───slack: package [slack-4.41.97]\n        └───zoom-us: package [zoom-6.0.2.4680]\n```\n\nAs well as all the declared flake inputs.\n\n```console\nnix flake metadata github:gvolpe/nix-config\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFurther installation instructions\u003c/summary\u003e\n\n### Install\n\nThe `xmod` configuration also contains my Home Manager configuration using the NixOS module, so it can easily be tested with a single command.\n\n```console\nnixos-rebuild switch --flake github:gvolpe/nix-config#xmod\n```\n\nOr you can test it directly on a QEMU virtual machine, though it has its limitations in terms of graphics.\n\n```console\nnixos-rebuild build-vm --flake github:gvolpe/nix-config#xmod\n./result/bin/run-xmod-amd-vm\n```\n\nHaving both NixOS and Home Manager configurations combined makes it easier to quickly install it on a new machine, but my preference is to have both separate, as my Home Manager configuration changes more often than that of the NixOS one, which can result in multiple (unwanted) generations at boot time.\n\nManaging the different Home Manager generations in isolation makes this way easier for me.\n\n### NixOS\n\nThe NixOS configuration can be installed by running the following command.\n\n```console\nnixos-rebuild switch --flake github:gvolpe/nix-config#thinkpad-x1\n```\n\nBeware that the `hardware-configuration.nix` file is the result of the hardware scan of the specific machine and might not be suitable for yours.\n\n### Home Manager\n\nA fresh install requires the creation of certain directories (see what the `switch` script does). However, if you omit those steps, the entire HM configuration can also be built as any other flake.\n\n```console\nnix build github:gvolpe/nix-config#homeConfigurations.xmonad-edp.activationPackage\nresult/activate\n```\n\n### Fresh install\n\nTo set up a new machine from scratch, have a look at [this document](./notes/new-machine.md).\n\n\u003c/details\u003e\n\n## LICENSE\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this project except in compliance with\nthe License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific\nlanguage governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvolpe%2Fnix-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgvolpe%2Fnix-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvolpe%2Fnix-config/lists"}