From 2f950e883d9cb1feea4866838c01b7fbad974d8e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 28 Dec 2024 21:37:57 -0700 Subject: [PATCH] Switch sovr cloud to management via flakes. --- sovr/etc/nixos/configuration.nix | 5 ++++- sovr/etc/nixos/flake.lock | 27 +++++++++++++++++++++++++++ sovr/etc/nixos/flake.nix | 19 +++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 sovr/etc/nixos/flake.lock create mode 100644 sovr/etc/nixos/flake.nix diff --git a/sovr/etc/nixos/configuration.nix b/sovr/etc/nixos/configuration.nix index 8e91148..e29cc72 100644 --- a/sovr/etc/nixos/configuration.nix +++ b/sovr/etc/nixos/configuration.nix @@ -20,17 +20,20 @@ environment.systemPackages = with pkgs; [ fish + git tmux vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget ]; + i18n.defaultLocale = "en_US.UTF-8"; + networking = { hostName = "sovr"; useNetworkd = true; }; - i18n.defaultLocale = "en_US.UTF-8"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; programs.neovim.enable = true; programs.neovim.defaultEditor = true; diff --git a/sovr/etc/nixos/flake.lock b/sovr/etc/nixos/flake.lock new file mode 100644 index 0000000..603f783 --- /dev/null +++ b/sovr/etc/nixos/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1735264675, + "narHash": "sha256-MgdXpeX2GuJbtlBrH9EdsUeWl/yXEubyvxM1G+yO4Ak=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d49da4c08359e3c39c4e27c74ac7ac9b70085966", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/sovr/etc/nixos/flake.nix b/sovr/etc/nixos/flake.nix new file mode 100644 index 0000000..4ac9558 --- /dev/null +++ b/sovr/etc/nixos/flake.nix @@ -0,0 +1,19 @@ +{ + description = "A simple NixOS flake"; + + inputs = { + # NixOS official package source, using the nixos-24.11 branch here + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + nixosConfigurations.sovr = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + # Import the previous configuration.nix we used, + # so the old configuration file still takes effect + ./configuration.nix + ]; + }; + }; +}