Compare commits
2 commits
1a140d7fcc
...
91597180b1
Author | SHA1 | Date | |
---|---|---|---|
Casper V. Kristensen | 91597180b1 | ||
Casper V. Kristensen | b5e0ecffe9 |
21
README.md
21
README.md
|
@ -104,25 +104,24 @@ nix develop --command $SHELL
|
||||||
# nix shell with python packages
|
# nix shell with python packages
|
||||||
# https://discourse.nixos.org/t/nix-shell-for-python-packages/16575
|
# https://discourse.nixos.org/t/nix-shell-for-python-packages/16575
|
||||||
# https://github.com/NixOS/nix/issues/5567
|
# https://github.com/NixOS/nix/issues/5567
|
||||||
nix shell --impure --expr 'with builtins.getFlake "nixpkgs"; with legacyPackages.x86_64-linux; python3.withPackages (ps: with ps; [ numpy ])'
|
nix shell --impure --expr 'with builtins.getFlake "nixpkgs"; with legacyPackages.${builtins.currentSystem}; python3.withPackages (ps: with ps; [ numpy ])'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Debugging
|
### Debugging
|
||||||
```bash
|
```nix
|
||||||
# load flake into repl
|
# load flake into repl
|
||||||
nix repl
|
nix repl
|
||||||
:lf .
|
:lf .
|
||||||
|
|
||||||
# print the value of a configuration settings
|
# print a configuration option
|
||||||
:p nixosConfigurations.omega.config.services.openssh.ports
|
:p nixosConfigurations.omega.options.services.openssh.ports.declarationPositions # declaration
|
||||||
|
:p nixosConfigurations.omega.options.services.openssh.ports.default # declaration default
|
||||||
# print _why_ the value is as it is (source of defaults, overwrites)
|
:p nixosConfigurations.omega.options.services.openssh.ports.definitionsWithLocations # overwrites
|
||||||
:p nixosConfigurations.omega.options.services.openssh.ports
|
:p nixosConfigurations.omega.options.services.openssh.ports.value # current value
|
||||||
|
# print derivation package names
|
||||||
# print value of home-manager setting
|
:p builtins.map (d: d.name) outputs.nixosConfigurations.omega.options.environment.systemPackages.value
|
||||||
:p nixosConfigurations.omega.config.home-manager.users.caspervk.programs.ssh.matchBlocks
|
|
||||||
|
|
||||||
# print version of package in nixpkgs
|
# print version of package in nixpkgs
|
||||||
:p inputs.nixpkgs.outputs.legacyPackages.x86_64-linux.openssh.version
|
:p inputs.nixpkgs.outputs.legacyPackages.${builtins.currentSystem}.openssh.version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -52,4 +52,7 @@
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
|
# nixos-hardware
|
||||||
|
hardware.amdgpu.amdvlk = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,6 +288,7 @@
|
||||||
# xdg portal allows applications secure access to resources outside their
|
# xdg portal allows applications secure access to resources outside their
|
||||||
# sandbox through a D-Bus interface. In particular, this allows screen
|
# sandbox through a D-Bus interface. In particular, this allows screen
|
||||||
# sharing on Wayland via PipeWire and file open/save dialogues in Firefox.
|
# sharing on Wayland via PipeWire and file open/save dialogues in Firefox.
|
||||||
|
# https://nixos.org/manual/nixos/stable/index.html#sec-wayland
|
||||||
# https://wiki.archlinux.org/title/XDG_Desktop_Portal
|
# https://wiki.archlinux.org/title/XDG_Desktop_Portal
|
||||||
# https://mozilla.github.io/webrtc-landing/gum_test.html
|
# https://mozilla.github.io/webrtc-landing/gum_test.html
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
|
@ -299,10 +300,4 @@
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO
|
|
||||||
hardware.opengl = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [ intel-media-driver ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue