basant/output/nixOS.html

136 lines
6.5 KiB
HTML
Raw Normal View History

2022-04-03 06:29:33 -07:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nixOS | Kitaab</title>
<meta property="og:title" content="nixOS | Kitaab">
<meta property="og:type" content="website">
<meta property="og:description"
content="config.site_meta_description">
<meta property="og:site_name" content="Kitaab">
<meta property="og:url" content="build_url">
<meta property="og:image" content="build_urlassets/social.png">
<meta property="og:image:height" content="300">
<meta property="og:image:width" content="300">
<meta property="og:image:type" content="image/jpeg">
<link rel="stylesheet" href="asset/style.css" type="text/css"
media="screen" title="no title" charset="utf-8">
<!-- Mastodon stuff should go here
<meta name="twitter:site" content="config.twitter_name">
<meta name="twitter:title" content="page_title | config.name_of_site">
<meta name="twitter:image" content="build_urlassets/social.png">
<meta name="twitter:image:alt" content="page_title | config.name_of_site">
--!>
<link rel="apple-touch-icon" sizes="57x57" href="build_urlassets/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="build_urlassets/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="build_urlassets/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="build_urlassets/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="build_urlassets/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="build_urlassets/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="build_urlassets/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="build_urlassets/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="build_urlassets/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="build_urlassets/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="build_urlassets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="build_urlassets/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="build_urlassets/favicon-16x16.png">
<meta name="msapplication-TileColor" content="#5927e0">
<meta name="msapplication-TileImage" content="build_urlassets/ms-icon-144x144.png">
<meta name="theme-color" content="#5927e0">
<link rel="canonical" href="Raw">
<link rel="stylesheet" href="assets/main.css">
</head>
<body class="flow-large container">
<header>
<a style='display:flex;padding-top:10px' href="home.html" aria-label="Kitaab">Kitaab</a>
</header>
<main>
<div id='navigation' style="float: right;">
<nav>
<h2> <a href='tag_index.html'> Index </a> </h2>
<ul>
<li> <a href='recents.html'>recents</a></li>
<li> <a href='dev_index.html'>dev</a></li>
<li> <a href='way_index.html'>way</a></li>
<li> <a href='recipe_index.html'>recipe</a></li>
<li> <a href='ops_index.html'>ops</a></li>
<li> <a href='blog_index.html'>blog</a></li>
<li> <a href='rock_index.html'>rock</a></li>
<li> <a href='phil_index.html'>phil</a></li>
<li> <a href='story_index.html'>story</a></li>
<li> <a href='blog_index.html'>blog</a></li>
<li> <a href='untagged_index.html'>untagged</a></li>
</ul>
</nav>
</div>
<h1> nixOS </h1>
<div style='max-width:660px;'>
<article class="flow">
<date>1970-01-01 10:00</date>
<p><a href='nixpkgs.html' >nixpkgs</a>
<a href='nix-lang.html' >nix-lang</a></p>
<h3>basics</h3>
<p>nix is a functional, immutable package manager
nix (the package manager) is written in the nix language
nixOS is a linux distribution built on top of the nix package manager</p>
<p>in nixOS there are 2 kinds of packages. Regular packages and modules which do the configuration management of said packages. Both of these are written in the nix language. Even on nixOS configuration files generally cannot be set through the package manager. Insead <a href="https://github.com/nix-community/home-manager">home-manager</a> can be used.</p>
<h3>installing nix package manager</h3>
<p>curl -o install-nix <a href="https://nixos.org/nix/install">https://nixos.org/nix/install</a>
curl -o install-nix.asc <a href="https://releases.nixos.org/nix/nix-2.3.7/install.asc">https://releases.nixos.org/nix/nix-2.3.7/install.asc</a>
gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE
gpg2 --verify ./install-nix.asc
sh ./install-nix
rm ./install-nix.asc ./install-nix</p>
<p>= nix-isms =
dev environments:
generally the right way to define dev environments is through a shell.nix file which gets invoked when calling nix-shell
in this file we define which packages we expect in order to build and run the program</p>
<h3>build options</h3>
<p>in NixOS it often feels like the options are the magic part of building software. everyone seems to have just the right options in order to build the software they need
however, fear not, you too can be a master of options by searching at:
<a href="https://search.nixos.org/options">https://search.nixos.org/options</a> or <code>nixos-option</code></p>
<h3>install the OS</h3>
<p><a href="https://gist.github.com/ladinu/bfebdd90a5afd45dec811296016b2a3f">https://gist.github.com/ladinu/bfebdd90a5afd45dec811296016b2a3f</a></p>
<p>have to use LUKS1 (grub2 doesn't support luks2 -&gt; should be available by grub2.06)</p>
<h3>Generated Tags</h3>
<p>=### nix =</p>
<ul>
<li><a href='vim2nix.html' >vim2nix</a></li>
<li><a href='Punya.html' >Punya</a></li>
<li><a href='210416-2252.html' >mach-nix and reproducible Python builds</a></li>
<li><a href='210124-0140.html' >Updating Curve</a></li>
<li><a href='210103-2319.html' >Matrix Bridges</a></li>
<li><a href='201129-2055.html' >Getting Matrix Online</a></li>
<li><a href='201121-1417.html' >Shaarli Setup</a></li>
<li><a href='201119-1157.html' >Ops tasks for bowl</a></li>
<li><a href='201118-1522.html' >Getting Web-Services to run on NixOS</a></li>
<li><a href='201118-1520.html' >201118-1520</a></li>
<li><a href='201108-2359.html' >What I learnt switching bowl to NixOS</a></li>
<li><a href='201020-1926.html' >Amazed at the NixOS Community</a></li>
<li><a href='201019-2038.html' >Alert when nixpkgs unstable is unavailable</a></li>
<li><a href='201019-1905.html' >NixOS Quick Tips</a></li>
</ul>
</article>
</div>
</main>
</body>
</html>