Nix is a Tool for building Linux systems in a declarative idempotent method and is a good fit for the CCE , I think when moving past Fedora Linux .
Using Nix in My Emacs
emacs-lisp source: :tangle nixos.el(provide 'cce/nixos) (use-package nix-mode) (use-package nixpkgs-fmt) (use-package nix-buffer) (use-package nix-update) (use-package company-nixos-options :hook (nix-mode . (lambda () (make-local-variable 'company-backends) (add-to-list 'company-backends 'company-nixos-options)))) (use-package nix-sandbox) (defun cce-find-nix-output-at-point () (interactive) (->> (nix-store-path-at-point) (make-instance 'nix-store-path :path ) (nix-store-fill-data ) (nix-store-path-outputs ) (completing-read "Select an output" ) (find-file)))
nix and nixpkgs configuration for My NixOS configuration
nix source: :tangle ~/arroyo-nix/nixos/nixpkgs.nix{ pkgs, config, ... }: { # less nix crap nix.gc = { automatic = true; dates = "03:30"; options = "--delete-older-than 30d"; persistent = true; }; nix.distributedBuilds = true; nix.buildMachines = builtins.filter (e: e.hostName != config.networking.hostName) [ # { hostName = "virtuous-cassette"; # maxJobs = 6; # sshUser = "builder"; # systems = [ # "x86_64-linux" # "aarch64-linux" # ]; # } # { hostName = "window-smoke"; # maxJobs = 6; # sshUser = "builder"; # systems = [ # "x86_64-linux" # "i686-linux" # "aarch64-linux" # ]; # } { hostName = "last-bank"; maxJobs = 32; sshUser = "builder"; systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; } ] ; nix.settings.trusted-users = ["rrix" "root" "@wheel"]; nix.settings.extra-experimental-features = [ "flakes" "nix-command" ]; # hahaha! yes # nixpkgs.config = { allowUnfree = true; }; environment.systemPackages = with pkgs; [ nix-tree nix-du nurl ]; imports = [ ./ccache.nix ]; }
nix source: :tangle ~/arroyo-nix/nixos/ccache.nix{ config, pkgs, ... }: { programs.ccache.enable = true; nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; systemd.tmpfiles.rules = [ "d ${config.programs.ccache.cacheDir} 1770 root nixbld -" ]; nixpkgs.overlays = [ (self: super: { ccacheWrapper = super.ccacheWrapper.override { extraConfig = '' export CCACHE_COMPRESS=1 export CCACHE_DIR="${config.programs.ccache.cacheDir}" export CCACHE_UMASK=007 if [ ! -d "$CCACHE_DIR" ]; then echo "=====" echo "Directory '$CCACHE_DIR' does not exist" echo "Please create it with:" echo " sudo mkdir -m0770 '$CCACHE_DIR'" echo " sudo chown root:nixbld '$CCACHE_DIR'" echo "=====" exit 1 fi if [ ! -w "$CCACHE_DIR" ]; then echo "=====" echo "Directory '$CCACHE_DIR' is not accessible for user $(whoami)" echo "Please verify its access permissions" echo "=====" exit 1 fi ''; }; }) ]; }
DONE remove the nixpkgs.config.permittedInsecurePackages from nix.conf..
Installing Nix on non-NixOS machines
yaml source:- name: /nix exists file: path: /nix state: directory owner: "{{local_account}}" group: "{{local_account}}" tags: - nixos - name: nix installed shell: executable: /bin/bash cmd: "bash <(curl -L https://nixos.org/nix/install) --no-daemon" creates: /nix/store/ become: yes become_user: "{{local_account}}" tags: - nixos
The Ansible Manages my Laptop until I deploy NixOS and adapt CCE for it.
shell source: :tangle cce/bash_profile.d/90-nix.shif [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then . ~/.nix-profile/etc/profile.d/nix.sh; fi
Interesting Headings
Pages Linking Here
- I'm now running my Matrix Synapse instance on my Wobserver
- Wallabag
- Deadgrep is a Great Grep Interface
- rrix "Uses This"
- Deadgrep is a Great Grep Interface
- Complete Computing
- Complete Computing
- NixGL
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Python in Emacs through LSP
- CCE and Emacs Update Feed
- Arcology Site Engine Updates
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Matrix Synapse
- Matrix Synapse
- NixGL
- Matrix Synapse
- Matrix Synapse
- Storing passwords securely with vaultwarden
- Local parsing of KOReader Notes to Org Roam
- Local parsing of KOReader Notes to Org Roam
- The Complete Computing Environment
- Storing passwords securely with vaultwarden
- I'm now running my Matrix Synapse instance on my Wobserver
- CCE and Emacs Update Feed
- Arcology Site Engine Updates
- I'm now running my Matrix Synapse instance on my Wobserver
- Nix Grymoire
- CCE and Emacs Update Feed
- The Complete Computing Environment
- Local parsing of KOReader Notes to Org Roam
- Local parsing of KOReader Notes to Org Roam
- CCE Nixos Core
- CCE and Emacs Update Feed
- CCE Nixos Core
- Nix Grymoire
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- My NixOS Desktop configuration
- My NixOS Desktop configuration
- nix-community/emacs-overlay
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Arroyo Nix Support
- nix-community/emacs-overlay
- The Complete Computing Environment
- tgbugs/orgstrap: Executable Org files
- tgbugs/orgstrap: Executable Org files
- direnv
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- direnv
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Arcology Site Engine Updates
- The Wobserver
- The Wobserver
- From Wireguard to Tailscale
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- CCE and Emacs Update Feed
- 2022 Games of the Year
- Arcology Site Engine Updates
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- nix-community/emacs-overlay
- The Complete Computing Environment
- nix-community/emacs-overlay
- CCE and Emacs Update Feed
- From Wireguard to Tailscale
- Generate a Dynamic Home Manager Configuration
- The Complete Computing Environment
- Generate a Dynamic Home Manager Configuration
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- Generate a Dynamic Home Manager Configuration
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Arroyo Emacs Generator
- Arroyo Emacs Generator
- Generate a Dynamic Home Manager Configuration
- Ruby and Rails in Emacs
- Generate a Dynamic Home Manager Configuration
- Ruby and Rails in Emacs
- Generate a Dynamic Home Manager Configuration
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- tgbugs/orgstrap: Executable Org files
- My Grymoires
- tgbugs/orgstrap: Executable Org files
- 2022 Games of the Year
- Arcology Garden Site Updates
- A Custom NIX_PATH and local nixpkgs checkout
- Ruby and Rails in Emacs
- Ruby and Rails in Emacs
- Python in Emacs through LSP
- rrix "Uses This"
- The Wobserver
- The Wobserver
- What is "Convivial Software"?
- What is "Convivial Software"?
- Arcology Garden Site Updates
- Arcology Garden Site Updates
- Python in Emacs through LSP
- CCE and Emacs Update Feed
- Arcology Garden Site Updates
- Rust
- rrix "Uses This"
- I'm now running my Matrix Synapse instance on my Wobserver
- First Impression of the Purism Librem5
- NixOS on Framework laptop
- Linux Bike Computer App
- I'm now running my Matrix Synapse instance on my Wobserver
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - CCE and Emacs Update Feed
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Arcology Site Engine Updates
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- My NixOS Desktop configuration
- My NixOS Desktop configuration
- Interfacing with the Arcology
- I'm now running my Matrix Synapse instance on my Wobserver
- The Complete Computing Environment
- My Grymoires
- Drafting the "Hey Smell This" License
- Drafting the "Hey Smell This" License
- Arcology Garden Site Updates
- CCE and Emacs Update Feed
- I'm now running my Matrix Synapse instance on my Wobserver
- CCE and Emacs Update Feed
- My NixOS Desktop configuration
- My NixOS Desktop configuration
- Arcology Site Engine Updates
- The Complete Computing Environment
- CCE and Emacs Update Feed
- Nearly Stateless Computing Using Syncthing
- What is "Convivial Software"?
- Arcology Garden Site Updates
- What is "Convivial Software"?
- Arcology Garden Site Updates
- My Cool Things Collection
- My Cool Things Collection
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Arcology Garden Site Updates
- Arcology Site Engine Updates
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Rust
- Interfacing with the Arcology
- The Complete Computing Environment
- tgbugs/orgstrap: Executable Org files
- tgbugs/orgstrap: Executable Org files
- CCE and Emacs Update Feed
- First Impression of the Purism Librem5
- Arcology Site Engine Updates
- Linux Bike Computer App
- nix-community/emacs-overlay
- The Complete Computing Environment
- Archive
- nix-community/emacs-overlay
- The Complete Computing Environment
- CCE 2.0 Module Layout
- CCE and Emacs Update Feed
- CCE 2.0 Module Layout
- Drafting the "Hey Smell This" License
- Drafting the "Hey Smell This" License
- The Complete Computing Environment
- Wallabag
- nix-community/emacs-overlay
- nix-community/emacs-overlay
- Deadgrep is a Great Grep Interface
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- Complete Computing
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- tgbugs/orgstrap: Executable Org files
- tgbugs/orgstrap: Executable Org files
- 2022 Games of the Year
- My Cool Things Collection
- NixGL
- My Cool Things Collection
- The Wobserver
- The Wobserver
- Matrix Synapse
- Matrix Synapse
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- Storing passwords securely with vaultwarden
- The Wobserver
- The Wobserver
- 2022 Games of the Year
- My Grymoires
- Archive
- Local parsing of KOReader Notes to Org Roam
- Arcology Garden Site Updates
- CCE 2.0 Module Layout
- Local parsing of KOReader Notes to Org Roam
- Nix Grymoire
- CCE 2.0 Module Layout
- CCE Nixos Core
- What is "Convivial Software"?
- What is "Convivial Software"?
- Interfacing with the Arcology
- Arcology Garden Site Updates
- Wallabag
- Arcology Garden Site Updates
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Arcology Garden Site Updates
- Rust
- direnv
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Interfacing with the Arcology
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- My Grymoires
- CCE and Emacs Update Feed
- Arcology Garden Site Updates
- First Impression of the Purism Librem5
- NixOS on Framework laptop
- Linux Bike Computer App
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- Listening to Music with MPD
- CCE and Emacs Update Feed
- What is "Convivial Software"?
- Arcology Garden Site Updates
- What is "Convivial Software"?
- Arcology Garden Site Updates
- Drafting the "Hey Smell This" License
- Drafting the "Hey Smell This" License
- CCE and Emacs Update Feed
- From Wireguard to Tailscale
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Arcology Site Engine Updates
- CCE and Emacs Update Feed
- Local parsing of KOReader Notes to Org Roam
- Arcology Garden Site Updates
- CCE and Emacs Update Feed
- Rust
- Local parsing of KOReader Notes to Org Roam
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- Generate a Dynamic Home Manager Configuration
- Generate a Dynamic Home Manager Configuration
- CCE 2.0 Module Layout
- Nix Grymoire
- Generate a Dynamic Home Manager Configuration
- Nearly Stateless Computing Using Syncthing
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- Arcology Site Engine Updates
- My Cool Things Collection
- My Cool Things Collection
- First Impression of the Purism Librem5
- CCE and Emacs Update Feed
- CCE and Emacs Update Feed
- NixOS on Framework laptop
- Arcology Site Engine Updates
- Linux Bike Computer App
- Ruby and Rails in Emacs
- Ruby and Rails in Emacs
- CCE 2.0 Module Layout
- CCE and Emacs Update Feed
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- CCE and Emacs Update Feed
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Drafting the "Hey Smell This" License
- Drafting the "Hey Smell This" License
- Arcology Site Engine Updates
- Python in Emacs through LSP
- CCE and Emacs Update Feed
- Archive
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- tgbugs/orgstrap: Executable Org files
- Nearly Stateless Computing Using Syncthing
- tgbugs/orgstrap: Executable Org files
- My Cool Things Collection
- My Cool Things Collection
- Wallabag
- Arroyo Systems Management
- rrix "Uses This"
- From Wireguard to Tailscale
- Arroyo Systems Management
- Deadgrep is a Great Grep Interface
- tgbugs/orgstrap: Executable Org files
- CCE 2.0 Module Layout
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- tgbugs/orgstrap: Executable Org files
- Complete Computing
- NixGL
- Archive
- CCE 2.0 Module Layout
- My NixOS Desktop configuration
- Matrix Synapse
- My NixOS Desktop configuration
- A Custom NIX_PATH and local nixpkgs checkout
- Matrix Synapse
- I'm now running my Matrix Synapse instance on my Wobserver
- The Complete Computing Environment
- Storing passwords securely with vaultwarden
- I'm now running my Matrix Synapse instance on my Wobserver
- Wallabag
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Local parsing of KOReader Notes to Org Roam
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Local parsing of KOReader Notes to Org Roam
- Nix Grymoire
- My Grymoires
- CCE Nixos Core
- Arcology Garden Site Updates
- Deadgrep is a Great Grep Interface
- Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - Single-user install should not use /run/user/
for build directories. · Issue #2957 · NixOS/nix - rrix "Uses This"
- The Complete Computing Environment
- Complete Computing
- direnv
- NixGL
- Listening to Music with MPD
- Paperless-ngx is an open source document management system
- My Grymoires
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Paperless-ngx is an open source document management system
- Matrix Synapse
- Matrix Synapse
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Arcology Garden Site Updates
- What is "Convivial Software"?
- Arcology Garden Site Updates
- What is "Convivial Software"?
- Arcology Garden Site Updates
- The Complete Computing Environment
- Storing passwords securely with vaultwarden
- Arcology Garden Site Updates
- Local parsing of KOReader Notes to Org Roam
- Rust
- I'm now running my Matrix Synapse instance on my Wobserver
- Local parsing of KOReader Notes to Org Roam
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- I'm now running my Matrix Synapse instance on my Wobserver
- nix-community/emacs-overlay
- What is "Convivial Software"?
- Arcology Garden Site Updates
- What is "Convivial Software"?
- nix-community/emacs-overlay
- Arcology Garden Site Updates
- Nix Grymoire
- Keeping Nix Version Pins in One Place
- NixOS on Framework laptop
- Arcology Garden Site Updates
- First Impression of the Purism Librem5
- Keeping Nix Version Pins in One Place
- Rust
- Linux Bike Computer App
- From Wireguard to Tailscale
- Keeping Nix Version Pins in One Place
- CCE Nixos Core
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- Generate a Dynamic Home Manager Configuration
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- The Wobserver
- Generate a Dynamic Home Manager Configuration
- The Wobserver
- NixOS on Framework laptop
- Yeah, I Run Emacs on my Steam Deck, Ever Heard of It?
- Drafting the "Hey Smell This" License
- Generate a Dynamic Home Manager Configuration
- First Impression of the Purism Librem5
- Arroyo Nix Support
- Drafting the "Hey Smell This" License
- Linux Bike Computer App
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- Ruby and Rails in Emacs
- Ruby and Rails in Emacs
- Rebuild of The Complete Computer 0x01: You Can (Not) Compute
- 2022 Games of the Year
- Listening to Music with MPD
- direnv
- Drafting the "Hey Smell This" License
- Drafting the "Hey Smell This" License
- Nearly Stateless Computing Using Syncthing
- My Cool Things Collection
- My Cool Things Collection
- Arroyo Systems Management
- From Wireguard to Tailscale
- Arroyo Systems Management
- Python in Emacs through LSP
- Arroyo Systems Management
- Arroyo Systems Management
- Nearly Stateless Computing Using Syncthing
- nix-community/emacs-overlay
- nixcfg/wrapWine.nix at e542e743774f499f996a4f886a8d4a4133fce258 · lucasew/nixcfg
- nix-community/emacs-overlay
- My Cool Things Collection
- My Cool Things Collection
- Archive
- A Custom NIX_PATH and local nixpkgs checkout
- rrix "Uses This"
- A Custom NIX_PATH and local nixpkgs checkout
- Arroyo Emacs Generator
- Arroyo Emacs Generator
- Archive
- Generate a Dynamic Home Manager Configuration
- Arroyo Nix Support
- Generate a Dynamic Home Manager Configuration
- Wallabag
- Arroyo Emacs Generator
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- `python39Packages.apsw` fails to build · Issue #167626 · NixOS/nixpkgs
- Arroyo Emacs Generator
- Generate a Dynamic Home Manager Configuration
- My NixOS Desktop configuration
- 2022 Games of the Year
- My NixOS Desktop configuration
- I'm now running my Matrix Synapse instance on my Wobserver
- CCE and Emacs Update Feed
- The Complete Computing Environment
- Ruby and Rails in Emacs
- Ruby and Rails in Emacs
Page Metadata Keywords
#+ARCOLOGY_ALLOW_CRAWL: t
#+ARCOLOGY_KEY: cce/nixos
#+ARROYO_EMACS_MODULE: nixos
#+ARROYO_MODULE_WANTS: cce/company_code_completion.org
#+ARROYO_NIXOS_MODULE: nixos/nixpkgs.nix