<clever>
if you dont set that, it will do the sane thing
<clever>
correct
<clever>
% is the prefix for group names
<clever>
A User_List is made up of one or more user names, user IDs (prefixed with ‘#’), system group names and IDs (prefixed with ‘%’ and ‘%#’ respectively)
<clever>
richierich_: can you gist your configuration.nix?
<clever>
richierich_: the livecd gives you a root shell, and root doesnt need to use sudo
<clever>
richierich_: from a normal install? from the livecd?
<clever>
richierich_: in what context did you notice that?
<clever>
gentoo has an option the sudo group to be speical, but its commented out
<clever>
on nixos, only wheel is special
<clever>
yeah
<clever>
the description says it all
<clever>
This string contains the contents of the sudoers file.
<clever>
superherointj: you would use configuration.nix to add windows and ubuntu to the generated config
<clever>
superherointj: and it needs to overwrite the grub config every time you make a change
<clever>
superherointj: by default, it will overwrite the grub
<clever>
boxofrox: nix-env will edit a per-user profile
<clever>
boxofrox: the same user
<clever>
boxofrox: it will persist until removed with nix-env -e
<clever>
iqubic: nix-build will just build a package, nix-shell gives you a shell suitable for building things, "nix-shell -p" creates a shell with given packages available
2017-09-28
<clever>
gandreani: so you need to cross-reference it with every eval of nixpkgs that has ever been done on hydra
<clever>
gandreani: also, those hits are all hashes, and nothing more
<clever>
what does ls -lh say is the uid, from both ends?
<clever>
ah, not sure then
<clever>
pstn: the host, or one of the containers?
<clever>
pstn: where is the postgress daemon running?
<clever>
pstn: but containers have a uid mapping list, so uid 1000 in the container may be 101000 on the host
<clever>
pstn: i think postgress gets uid from the unix socket, and then looks it up in /etc/passwd, and uses the name
<clever>
gchristensen: i think he is still on the livecd
<clever>
gandreani: i think a full eval of nixpkgs is 80gig, and nix-env when given a set, will install everything in the set
<clever>
nix-env -iA nixos.single-package-name
<clever>
please wait while it downloads about 80gig of data,lol
<clever>
that told it to install EVERYTHING
<clever>
and only -i?
<clever>
what args did you run it with?
<clever>
it should give output saying what its doing
<clever>
iqubic: the same way as on gentoo and nixos, with nix-env
<clever>
gchristensen: yeah, let me see what exactly i did
<clever>
ive got an nvme in my main desktop, but i'm only using it for L2 and log
<clever>
Mic92: which builds every machine in the deployment
<clever>
Mic92: i now have a single .nix file, $ nix-build -I nixops=/nix/store/mb4rfbkliwjvcdcnqzgg4bgi45i8pb3s-nixops-1.6pre0_abcdef/share/nix/nixops nixops.nix -A machines
<clever>
iqubic: foo.bar.baz = 5; is identical to foo = { bar = { baz = 5; }; };
<clever>
iqubic: { and } are just another way of setting attributes
<clever>
iqubic: a list is defined with [ and ]
<clever>
Mic92: i'm making it possible for hydra to build the entire deployment
<clever>
Mic92: i'm writing something very close to that right now
<clever>
myusername.shell expects a path to the binary, but pkgs.fish is a path to a directory
<clever>
copumpkin: i think the difference, is if the cache says it doesnt exist at all, vs if the cache says it exists, but then 404's on download
<clever>
maybe make it an option in nixos, so you can pick in configuration.nix
<clever>
yegortimoshenko: qt56.qtbase.dev 1,140,816 x /nix/store/b0xq8rfq6fqwaqrrmasj68sc0f5h2zql-qtbase-5.6.2-dev/bin/moc
<clever>
yegortimoshenko: i would use an unversioned name
<clever>
just manualy pass it to cabal configure
<clever>
yeah
<clever>
kuznero: if your manually running cabal, it wont use the flags specified in the nix file
<clever>
i think its just gunzip vs gzip -d
<clever>
the help requireFile prints says which one to use
<clever>
makefu: but if postgresql is enabled, db_connect verbosely fails
<clever>
makefu: heh, if postgresql isnt even enabled, db_connect silently does nothing
<clever>
makefu: basic things like hosts complain that it cant find the db
<clever>
makefu: one of the online guides mentions running `msfdb init` but that command doesnt exist within this package
<clever>
i vaguely remember it having an html ui
<clever>
yikes
<clever>
makefu: and i believe its less of a password leak, and more that you can just dump the entire config file
<clever>
makefu: cisco actually
<clever>
makefu: but back then, i was on windows, and a single anti-virus run deleted half of metasploit, and i was never able to reinstall the mess, lol
<clever>
makefu: many years ago, it found a flaw in my managed switch, that just let anybody read the admin pw
<clever>
makefu: ah, i'll have to give my lan another sweep
<clever>
makefu: oh, does metasploit run on nixos?
<clever>
and the garbage-collection has to happen as root to be able to delete system profiles
<clever>
bulldog: yeah, thats the one i was thinking of
<clever>
bulldog: oh, and double check pkgs/all-packages/python something
<clever>
bulldog: did you define custompkgs within that file?
<clever>
when the derivation object for it is evaluated
<clever>
nix should re-generate all drv files automatically
<clever>
tilpner: that wasnt present in either file in the last gist
<clever>
tilpner: try evaluating parts of the expression in nix-repl
<clever>
tilpner: files within the store got truncated, and where at an older state then the db
<clever>
tilpner: but i have seen the sqlite db wind up "newer" then the data in /nix/store/
<clever>
tilpner: the sqlite db is heavily protected by sqlite code
<clever>
bulldog: import /home/clever/nixpkgs {};
<clever>
bulldog: you can just put a path directly in the nix expression
<clever>
tilpner: not really
<clever>
bulldog: this appears as nix-env -iA foo.hello
<clever>
tilpner: how big is /nix/store/ylcq7flzzmnshrbf9gd8crfmxsgxh678-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src.drv ?
<clever>
tilpner: some filesystems will randomly truncate files
<clever>
tilpner: have you had any improper shutdowns recently?
<clever>
cant open links at the moment
<clever>
tilpner: what are the contents of it?
2017-09-26
<clever>
ertes-w: "nixos-rebuild build-vm" will automatically make a given configuration.nix file work under qemu, and generate a script to launch qemu
<clever>
oh, mis-interpreted the question, lol
<clever>
and /proc/<pid>/exe is a symlink to the executable for thatpid
<clever>
orivej: $$ is the pid of the shell that expanded it
<clever>
who else has tried to customize the nix-shell PS1?
<clever>
bgamari: the bash inside nix-shell is a dumber version and doesnt support a lot of flags
<clever>
moredhel1: the simplest option is to just run `nix-store --delete` against it (and dont force it)
<clever>
moredhel1: drv files are auto-created when an expression is evaulated
<clever>
moredhel1: to match whatever is currently mounted under /mnt
<clever>
moredhel1: re-run nixos-generate-config --root /mnt, and it will regenerate hardware-config
<clever>
moredhel1: i prefer nixos-install against a usb, because files persist, and i can use it for recovery, extracting data in repairs, and other useful stuff
<clever>
moredhel1: yep
<clever>
moredhel1: plan b, just run nixos-install against the usb stick, and now you have a fully self-contained nixos with whatever config you want
<clever>
moredhel1: plan a, make a custom iso (but you still need to do the zfs and rebuild-switch dance)
<clever>
moredhel1: 2 solutions
<clever>
moredhel1: it needs a reboot, but its live-media, the reboot reverts everything
<clever>
moredhel1: yeah
<clever>
moredhel1: then you can nix-channel --update and nixos-install (which will install 4.9.51)
<clever>
moredhel1: you need to nix-channel --rollback, then nixos-rebuild switch, to get a 4.9.46 version of zfs
<clever>
it made a 4.9.51 version of zfs, but you have 4.9.46
<clever>
yep, thats the problem
<clever>
moredhel1: what is in ls /run/current-system/kernel-modules/lib/modules/
<clever>
you must nixos-rebuild for zfs, before you change the channel (or nix-channel --rollback)
<clever>
but the kernel is that is running is old
<clever>
the nixpkgs now refers to a new kernel, and builds zfs for that new kernel
<clever>
did you run a nix-channel --update? (that can break it)
<clever>
did you touch nix-channel before that?
<clever>
moredhel1: due to licensing reasons, zfs cant be shipped on the iso image
<clever>
moredhel1: add boot.supportedFilesystems = [ "zfs" ]; to /etc/nixos/configuration.nix and nixos-rebuild test
<clever>
Infinisil: brb
<clever>
ij: and callPackage is a function within pkgs (part of nixpkgs)
<clever>
jellowj: imports is a special attribute in the nixos module system
<clever>
ij: import is a builtin, that just blindly loads a file and returns the top-level
<clever>
yep
<clever>
Infinisil: and then whatever you enabled in configuration.nix can use that virtual gpu
<clever>
Infinisil: by default, it opens an x11 window linked to the virtual gpu