Skip to content

shishi/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

flake-parts + home-manager による個人用 Nix 設定

セットアップ

Nix をインストールして flakes を有効にしておく。

git clone https://github.com/shishi/nix-config.git
cd nix-config

nix run .#setup-sudo-nopasswd
nix run .#setup-trusted-user
nix run .#install-system-packages
nix run home-manager/master -- switch --flake .#shishi@ubuntu

初回は各コマンドに --extra-experimental-features 'nix-command flakes' が必要。 Home Manager 適用後は flakes が自動で有効になる。

更新

nix run home-manager/master -- switch --flake .#shishi@ubuntu

# nom でビルドログを見やすくする
nix run home-manager/master -- switch --flake .#shishi@ubuntu 2>&1 | nom

nix run で使えるコマンド

コマンド 内容
nix run .#setup-sudo-nopasswd sudo パスワード不要設定(開発環境専用)
nix run .#setup-trusted-user Nix trusted user 設定
nix run .#install-system-packages Ubuntu システムパッケージのインストール

テンプレート

nix flake new -t .#basic my-project
nix flake new -t .#rust my-rust-project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors