Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data InstallationMode
- data NixEnv = NixEnv {}
- data CachixException
- getInstallationMode :: NixEnv -> InstallationMode
- addBinaryCache :: BinaryCache -> InstallationMode -> IO ()
- isTrustedUser :: [Text] -> IO Bool
- getUser :: IO Text
Documentation
data InstallationMode Source #
Install NixConfLoc | |
UnsupportedNix1X | |
EchoNixOS | |
EchoNixOSWithTrustedUser | |
UntrustedRequiresSudo | |
Nix20RequiresSudo |
Instances
Eq InstallationMode Source # | |
Defined in Cachix.Client.InstallationMode (==) :: InstallationMode -> InstallationMode -> Bool # (/=) :: InstallationMode -> InstallationMode -> Bool # | |
Show InstallationMode Source # | |
Defined in Cachix.Client.InstallationMode showsPrec :: Int -> InstallationMode -> ShowS # show :: InstallationMode -> String # showList :: [InstallationMode] -> ShowS # |
data CachixException Source #
UnsupportedNixVersion Text | |
UserEnvNotSet Text | |
MustBeRoot Text | |
NixOSInstructions Text | |
AmbiguousInput Text | |
NoInput Text | |
NoConfig Text |
Instances
Show CachixException Source # | |
Defined in Cachix.Client.InstallationMode showsPrec :: Int -> CachixException -> ShowS # show :: CachixException -> String # showList :: [CachixException] -> ShowS # | |
Exception CachixException Source # | |
Defined in Cachix.Client.InstallationMode |
addBinaryCache :: BinaryCache -> InstallationMode -> IO () Source #
Add a Binary cache to nix.conf, print nixos config or fail