added nix repl convenince

This commit is contained in:
twoneis 2024-04-13 13:03:55 +02:00
parent 74b1dea564
commit 5c1cca8a4f
3 changed files with 12 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ pkgs, ... }: {
{ inputs, pkgs, ... }: {
imports = [
./audio.nix
./bluetooth.nix
@ -17,12 +17,16 @@
services.xserver.displayManager.gdm.enable = true;
# Wayland in electron
environment.sessionVariables.NIXOS_OZONE_WL = "1";
networking.extraHosts =
''
10.10.11.245 surveillance.htb
'';
nix.nixPath = ["nixpgks=${inputs.nixpkgs}"];
# Allow packages from nixpkgs
nixpkgs.config = {
allowUnfree = true;

View file

@ -14,6 +14,8 @@
gpl = "git pull --recurse-submodules";
gst = "git status";
repl = "nix repl --expr 'import <nixpkgs>{}'";
nrb = "sudo nixos-rebuild switch --flake . --cores 0";
nd = "nix develop";

View file

@ -1,4 +1,4 @@
{ nixpkgs, home-manager, nixos-hardware, nur, niri, ... }: {
{ nixpkgs, home-manager, nixos-hardware, nur, niri, ... }@inputs: {
nixosConfigurations = let
clientModules = [
@ -32,6 +32,9 @@
in {
desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
./devices/desktop
] ++ clientModules;