From 7c9307a2cf7f095527592a5073b6c692ddd75666 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Wed, 11 Dec 2024 19:50:18 -0700 Subject: [PATCH] forgot a few things --- hosts/laptop-server/modules/default.nix | 2 ++ hosts/laptop-server/modules/nixpkgs.nix | 5 +++++ hosts/laptop-server/modules/programs.nix | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 hosts/laptop-server/modules/nixpkgs.nix create mode 100644 hosts/laptop-server/modules/programs.nix diff --git a/hosts/laptop-server/modules/default.nix b/hosts/laptop-server/modules/default.nix index 93dd9db..cb562aa 100644 --- a/hosts/laptop-server/modules/default.nix +++ b/hosts/laptop-server/modules/default.nix @@ -5,6 +5,8 @@ ./display.nix ./locale.nix ./networking.nix + ./nixpkgs.nix + ./programs.nix ./users.nix ]; } \ No newline at end of file diff --git a/hosts/laptop-server/modules/nixpkgs.nix b/hosts/laptop-server/modules/nixpkgs.nix new file mode 100644 index 0000000..1b43972 --- /dev/null +++ b/hosts/laptop-server/modules/nixpkgs.nix @@ -0,0 +1,5 @@ +{ inputs, ... }: +{ + # Allow closed source packages + nixpkgs.config.allowUnfree = true; +} \ No newline at end of file diff --git a/hosts/laptop-server/modules/programs.nix b/hosts/laptop-server/modules/programs.nix new file mode 100644 index 0000000..fcc4d78 --- /dev/null +++ b/hosts/laptop-server/modules/programs.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + # Install system packages + environment.systemPackages = with pkgs; [ + # Basic necessities + wget + curl + neovim + home-manager + # VCS + git + jujutsu + ]; + + # Install zsh + programs.zsh.enable = true; + + # Disable default command-not-found (it doesn't work with flakes) + programs.command-not-found.enable = false; + programs.nix-index.enable = true; +}