Flake? Flake

This commit is contained in:
2026-05-03 01:58:20 -05:00
parent a37a2d45a7
commit 34d2fc8379
3 changed files with 24 additions and 3 deletions
+3 -2
View File
@@ -5,13 +5,14 @@
{ config, lib, pkgs, ... }:
{
# Enable the modern Nix CLI and flakes for reproducible system rebuilds.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Latest kernel, not LTS
boot.kernelPackages = pkgs.linuxPackages_latest;
# TODO: Dynamically configure hostname
networking.hostName = "laptop-nixos-1";
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
# Set your time zone.
+19
View File
@@ -0,0 +1,19 @@
{
description = "Salt's NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }: {
nixosConfigurations.laptop-nixos-1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
{
networking.hostName = "laptop-nixos-1"
}
];
};
};
}
+2 -1
View File
@@ -1,3 +1,4 @@
#!/bin/sh
git pull
exec sudo nixos-rebuild switch
NIX_CONFIG='experimental-features = nix-command flakes' nix flake lock
exec sudo env NIX_CONFIG='experimental-features = nix-command flakes' nixos-rebuild switch --flake .#laptop-nixos-1