From 1c416dc728f9a010cee95ec683ba46fa2766a753 Mon Sep 17 00:00:00 2001 From: ISnortPennies Date: Thu, 19 Jan 2023 12:21:28 -0500 Subject: [PATCH] changed stateVersion from 22.11 to 23.05 added a nifty pastebin script --- configuration.nix | 2 +- flake.nix | 1 - home-manager/home.nix | 2 +- home-manager/root.nix | 2 +- modules/scripts.nix | 5 ++++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 546461b..a220af4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,6 +1,6 @@ { config, pkgs, lib, ... }: { - system.stateVersion = "22.11"; + system.stateVersion = "23.05"; environment = { defaultPackages = []; binsh = "${pkgs.dash}/bin/dash"; diff --git a/flake.nix b/flake.nix index b3a5d42..aeebf5b 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,4 @@ { - description = "my personal configurations"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; home-manager = { diff --git a/home-manager/home.nix b/home-manager/home.nix index 55a1118..1b9697b 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -16,7 +16,7 @@ home = { username = "gerg"; homeDirectory = "/home/gerg"; - stateVersion = "22.11"; + stateVersion = "23.05"; file = { ".background-image".source = ../images/nix-stars.png; ".config" = { diff --git a/home-manager/root.nix b/home-manager/root.nix index 5c49be0..a8da2a5 100644 --- a/home-manager/root.nix +++ b/home-manager/root.nix @@ -9,7 +9,7 @@ home = { username = "root"; homeDirectory = "/root"; - stateVersion = "22.11"; + stateVersion = "23.05"; file = { ".config/neofetch/config.conf" = { source = ./config/neofetch/config.conf; diff --git a/modules/scripts.nix b/modules/scripts.nix index 8b3a11f..5d67b94 100644 --- a/modules/scripts.nix +++ b/modules/scripts.nix @@ -48,6 +48,9 @@ let else kill $u fi ''; + pastebin = pkgs.writeShellScriptBin "pastebin" '' + curl -F 'clbin=<-' https://clbin.com + ''; in { - environment.systemPackages = [ update-system clean-store apply-user apply-system polybar-tray full-upgrade]; + environment.systemPackages = [ update-system clean-store apply-user apply-system polybar-tray full-upgrade pastebin]; }