Move cli tools to ops and add nixos-generate

This commit is contained in:
John Locke 2024-03-17 10:35:06 -07:00
parent 7601dea2cb
commit cd96a27ec3
4 changed files with 14 additions and 5 deletions

View file

@ -1,14 +1,11 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
awscli2
bitwarden-cli
ddev ddev
jetbrains.phpstorm jetbrains.phpstorm
mkcert mkcert
php81 php81
polypane polypane
vault
vscode vscode
]; ];

View file

@ -5,14 +5,15 @@
# configuration.nix. You can also use latter versions if you wish to # configuration.nix. You can also use latter versions if you wish to
# upgrade. # upgrade.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-needsreboot.url = "https://flakehub.com/f/thefossguy/nixos-needsreboot/*.tar.gz"; # nixos-needsreboot.url = "https://flakehub.com/f/thefossguy/nixos-needsreboot/*.tar.gz";
}; };
outputs = inputs@{ self, nixpkgs, nixos-needsreboot, ... }: { outputs = inputs@{ self, nixpkgs, ... }: {
# NOTE: 'nixos' is the default hostname set by the installer # NOTE: 'nixos' is the default hostname set by the installer
nixosConfigurations.valhalla = nixpkgs.lib.nixosSystem { nixosConfigurations.valhalla = nixpkgs.lib.nixosSystem {
# NOTE: Change this to aarch64-linux if you are on ARM # NOTE: Change this to aarch64-linux if you are on ARM
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./hosts/desktop/valhalla/configuration.nix ]; modules = [ ./hosts/desktop/valhalla/configuration.nix ];
}; };
# environment.systemPackages = [nixos-needsreboot.packages.${nixpkgs.system}.default];
}; };
} }

View file

@ -11,6 +11,7 @@
../../../desktop ../../../desktop
../../../desktop/dev.nix ../../../desktop/dev.nix
../../../desktop/office.nix ../../../desktop/office.nix
../../../ops
../../../users/owners.nix ../../../users/owners.nix
]; ];

10
ops/default.nix Normal file
View file

@ -0,0 +1,10 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
awscli2
bitwarden-cli
mkcert
vault
nixos-generate
];
}