@ -13,7 +13,7 @@ in
options = {
services . cntlm = {
services . cntlm = {
enable = mkOption {
default = false ;
@ -39,9 +39,9 @@ in
} ;
netbios_hostname = mkOption {
default = config . networking . hostName ;
type = types . uniq types . string ;
description = ''
The hostname of your workstation .
The hostname of your machine .
'' ;
} ;
@ -73,28 +73,28 @@ in
###### implementation
config = mkIf config . services . cntlm . enable {
services . cntlm . netbios_hostname = mkDefault config . networking . hostName ;
users . extraUsers = singleton {
name = " c n t l m " ;
description = " c n t l m s y s t e m - w i d e d a e m o n " ;
home = " / v a r / e m p t y " ;
name = " c n t l m " ;
description = " c n t l m s y s t e m - w i d e d a e m o n " ;
home = " / v a r / e m p t y " ;
} ;
jobs . cntlm = {
description = " c n t l m i s a n N T L M / N T L M S e s s i o n R e s p o n s e / N T L M v 2 a u t h e n t i c a t i n g H T T P p r o x y . " ;
jobs . cntlm =
{ description = " C N T L M i s a n N T L M / N T L M S e s s i o n R e s p o n s e / N T L M v 2 a u t h e n t i c a t i n g H T T P p r o x y " ;
startOn = " s t a r t e d n e t w o r k - i n t e r f a c e s " ;
environment = {
} ;
preStart = '' '' ;
daemonType = " f o r k " ;
daemonType = " f o r k " ;
exec =
''
$ { pkgs . cntlm } /bin/cntlm - U cntlm \
- c $ { pkgs . writeText " c n t l m _ c o n f i g " cfg . extraConfig }
'' ;
} ;
exec =
''
$ { pkgs . cntlm } /bin/cntlm - U cntlm \
- c $ { pkgs . writeText " c n t l m _ c o n f i g " cfg . extraConfig }
'' ;
} ;
services . cntlm . extraConfig =
''
@ -109,5 +109,7 @@ in
Listen $ { toString port }
'' ) c f g . p o r t }
'' ;
} ;
}