Skip to content

Instantly share code, notes, and snippets.

View corsinpfister's full-sized avatar

corsinpfister

View GitHub Profile
@corsinpfister
corsinpfister / stdout
Created June 10, 2023 09:55
sudo nixos-rebuild switch --flake '.#'
updating GRUB 2 menu...
stopping the following units: accounts-daemon.service
activating the configuration...
setting up /etc...
reloading user units for coco...
setting up tmpfiles
reloading the following units: dbus.service
restarting the following units: polkit.service
starting the following units: accounts-daemon.service
the following new units were started: nix-daemon.service
@corsinpfister
corsinpfister / error
Created June 10, 2023 09:43
sudo nixos-rebuild switch --flake '.#' --show-trace
error: attribute 'nixpkgs-unstable' missing
at /nix/store/alr6b5m4cbmqv8lhrp7igpgq3ai3jdkd-source/lib/modules.nix:483:28:
482| builtins.addErrorContext (context name)
483| (args.${name} or config._module.args.${name})
| ^
484| ) (lib.functionArgs f);
… while evaluating the module argument `nixpkgs-unstable' in "/nix/store/51kp94skxxrs31g4pajywi6f9k6k2hmz-source/user/home.nix":
@corsinpfister
corsinpfister / error
Created June 10, 2023 08:29
sudo nixos-rebuild switch --flake '.#' --show-trace
error: attribute 'nixpkgs-unstable' missing
at /nix/store/alr6b5m4cbmqv8lhrp7igpgq3ai3jdkd-source/lib/modules.nix:483:28:
482| builtins.addErrorContext (context name)
483| (args.${name} or config._module.args.${name})
| ^
484| ) (lib.functionArgs f);
… while evaluating the module argument `nixpkgs-unstable' in "/nix/store/sm3980dl8lqffx9jdam7c5s87vd5z3n2-source/user/programs/i3":
error: attribute 'nixpkgs-unstable' missing
at /nix/store/alr6b5m4cbmqv8lhrp7igpgq3ai3jdkd-source/lib/modules.nix:483:28:
482| builtins.addErrorContext (context name)
483| (args.${name} or config._module.args.${name})
| ^
484| ) (lib.functionArgs f);
(use '--show-trace' to show detailed location information)
@corsinpfister
corsinpfister / home.nix
Created June 10, 2023 08:14
./user/home.nix
{ nixpkgs-unstable, ... }:
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
services.network-manager-applet.enable = true;
services.blueman-applet.enable = true;
home.stateVersion = "20.03";
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/c568239bcc9";
nixpkgs-unstable.url = "github:nixos/nixpkgs/53dad94e874";
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
@corsinpfister
corsinpfister / home.nix
Created May 18, 2023 13:38
home.nix that I want to import as a NixOS module
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
services.network-manager-applet.enable = true;
services.blueman-applet.enable = true;
home.stateVersion = "20.03";
@corsinpfister
corsinpfister / flake.nix
Created May 18, 2023 13:37
NixOS flake.nix with home-manager as a module
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/c568239bcc9";
nixpkgs-unstable.url = "github:nixos/nixpkgs/53dad94e874";
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
/nix/store/xa5l7l867drygrsna927vqzclklybm5f-dotnet-sdk-7.0.201/dotnet: /nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/vaxgqbm6h3zvhpgk9xqqk97hqjp9gzvs-gcc-12.2.0-lib/lib/libstdc++.so.6)
@corsinpfister
corsinpfister / flake.nix
Created April 30, 2023 07:47
Nix flake for Node and pnpm
{
description = "CSS and JavaScript dependencies of the Yesod Admin UI";
inputs = {
nixpkgs = { # for utility functions like mkShell
url = "github:NixOS/nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils }: