Final changes
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
import History from './slides/History.svelte'
|
import History from './slides/History.svelte'
|
||||||
import CoreIdea from './slides/CoreIdea.svelte'
|
import CoreIdea from './slides/CoreIdea.svelte'
|
||||||
import TheProblem from './slides/TheProblem.svelte'
|
import TheProblem from './slides/TheProblem.svelte'
|
||||||
import Flake from './slides/Flake.svelte'
|
|
||||||
import Channels from './slides/Channels.svelte'
|
import Channels from './slides/Channels.svelte'
|
||||||
import TitleNixOS from './slides/TitleNixOS.svelte'
|
import TitleNixOS from './slides/TitleNixOS.svelte'
|
||||||
import NixOSInstall from './slides/NixOSInstall.svelte'
|
import NixOSInstall from './slides/NixOSInstall.svelte'
|
||||||
@@ -31,6 +30,7 @@
|
|||||||
import Devenv from './slides/Devenv.svelte'
|
import Devenv from './slides/Devenv.svelte'
|
||||||
import Configuration from './slides/Configuration.svelte'
|
import Configuration from './slides/Configuration.svelte'
|
||||||
import Neovim from './slides/Neovim.svelte'
|
import Neovim from './slides/Neovim.svelte'
|
||||||
|
import NixOSRebuild from './slides/NixOSRebuild.svelte'
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
await tick()
|
await tick()
|
||||||
@@ -61,6 +61,7 @@
|
|||||||
<TitleNixOS />
|
<TitleNixOS />
|
||||||
<NixOSInstall />
|
<NixOSInstall />
|
||||||
<Configuration />
|
<Configuration />
|
||||||
|
<NixOSRebuild />
|
||||||
<TitleCommunityProjects />
|
<TitleCommunityProjects />
|
||||||
<HomeManager />
|
<HomeManager />
|
||||||
<DesktopManagement />
|
<DesktopManagement />
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
<script>
|
|
||||||
const Code = import.meta.glob('../code/Flake/*.nix', { as: 'raw', eager: true })
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<section style="font-size: 20pt;">
|
|
||||||
{#each Object.values(Code) as code}
|
|
||||||
<section data-auto-animate>
|
|
||||||
<pre data-id="flake-animation"><code data-trim data-line-numbers class="language-nix">
|
|
||||||
{code}
|
|
||||||
</code></pre>
|
|
||||||
</section>
|
|
||||||
{/each}
|
|
||||||
</section>
|
|
||||||
58
src/slides/NixOSRebuild.svelte
Normal file
58
src/slides/NixOSRebuild.svelte
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<section>
|
||||||
|
<section>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
<strong>Rebuilding the System</strong>
|
||||||
|
<p class="description">
|
||||||
|
To apply new configuration changes, run the <code
|
||||||
|
style="font-size: 20pt !important;">nixos-rebuild</code
|
||||||
|
> command. This evalutates your nix configuration, downloads any packages necessary,
|
||||||
|
and build the result.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div id="wrapper">
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild switch
|
||||||
|
</code></pre>
|
||||||
|
<span>Activate new generation and make it default boot option</span>
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild boot
|
||||||
|
</code></pre>
|
||||||
|
<span>Make new generation default boot option, don't activate until reboot</span>
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild test
|
||||||
|
</code></pre>
|
||||||
|
<span>Activate new generation but don't make a boot option</span>
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild build
|
||||||
|
</code></pre>
|
||||||
|
<span>Create a symlink called result pointing to the new generation</span>
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild dry-acitvate
|
||||||
|
</code></pre>
|
||||||
|
<span>Don't actiave new changes, show the changes that would have been applied</span>
|
||||||
|
<pre><code data-trim class="language-shell">
|
||||||
|
nixos-rebuild build-vm
|
||||||
|
</code></pre>
|
||||||
|
<span>Create a QEMU VM of the resulting generation</span>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#wrapper {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-template-rows: repeat(1fr, 6);
|
||||||
|
text-align: left;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
#wrapper span {
|
||||||
|
font-size: 18pt;
|
||||||
|
}
|
||||||
|
.description {
|
||||||
|
color: #aaaaaa;
|
||||||
|
font-size: 24pt;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user